On Sun, 2 Mar 1997 21:12:31 +0100, Herve R.-P. <regad@micronet.fr> wrote:>Digging further more, the dream would be to have *all* of the unused>local disk space available for swap. Then, no need to do anything>manually, except, maybe, adding a disk :-)

I already have something similar on my machine:I used swapd from Nick Holloway <Nick.Holloway@alfie.demon.co.uk>

It's rather old (at least 2 years) and basically it watches /proc/meminfoevery x seconds and creates swap files on the fly. It's not perfect, but itworks :-) (On my system, I have it look every second).

I submitted a patch to Nick for the new /proc/meminfo setup, but I don'tthink he ever made a new release.

Swapd 1.3 should be available easily. ftpsearch tells me:tsx-11.mit.edu /pub/linux/sources/sbin/swapd-1.3.tar.gz

For the patch, since I can't garantee that my ftp server will be up forever,and since it's not too big, here it is:(The patch is not great either, but it also works :-D)

/*- * The intention was that `debug' would control the amount of logging that- * occurred. However, setlogmask is currently broke (fixed in future- * release of libc). So, if you want the extra logging, define DEBUG.+ * Set debug if you want memory info (can be toggled with SIGUSR1) [MM] */ int debug = 0; /* -D */