From owner-freebsd-hackers Tue Feb 6 00:56:32 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id AAA09862 for hackers-outgoing; Tue, 6 Feb 1996 00:56:32 -0800 (PST) Received: from ns.pa-consulting.com (ns.pa-consulting.com [193.118.224.1]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id AAA09855 for ; Tue, 6 Feb 1996 00:56:28 -0800 (PST) Received: from SMTPGATE.PA-CONSULTING.COM by ns.pa-consulting.com (8.6.4) id JAA17374; Tue, 6 Feb 1996 09:03:36 GMT Received: by SMTPGATE.PA-CONSULTING.COM with Microsoft Mail id <31178897@SMTPGATE.PA-CONSULTING.COM>; Tue, 06 Feb 96 08:57:59 PST From: Duncan Barclay To: freebsd-hackers Date: Tue, 06 Feb 96 08:47:00 PST Message-ID: <31178897@SMTPGATE.PA-CONSULTING.COM> Encoding: 38 TEXT X-Mailer: Microsoft Mail V3.0 Sender: owner-hackers@freebsd.org Precedence: bulk Hi I had this idea over the weekend whilst I was slowly running out of swap on my machine at home and not noticing. I am going to write a daemon to keep an eye on the ammount of swap used and add extra to the system using the vn driver. if a threshold is crossed. I ensivige this to be useful to people with home machines which are rebooted most days and dont always need loads of swap space. The swap files created would be deleted on the next reboot by rc or as part of the daemon configuration. Questions: Has anyone done it before. Would a fstab like config script be better than automatically finding spare vnodes in /dev and allocating space. ie. #file vnode size threshold # to create on /usr/tmp/swapfile1 /dev/vn0a 12M 80% /usr/tmp/swapfile2 /dev/vn0b 12M 80% /disk2/tmp/swapfile /dev/vn0c 24M 90% where the threshold is the percentage of currently used swap. Should the swap usage be looked at over a long time to determine threshold or be faily reactive? Would it be useful to others? Any thoughts would be helpful. Thanks Duncan Barclay duncan.barclay@pa-consulting.com