Date: Sun, 14 Nov 1999 18:08:58 +0100 (CET) From: Oliver Fromme <olli@dorifer.heim3.tu-clausthal.de> To: freebsd-questions@FreeBSD.ORG Subject: Re: swap files? Message-ID: <199911141708.SAA16722@dorifer.heim3.tu-clausthal.de>
next in thread | raw e-mail | index | archive | help
In list.freebsd-questions you wrote (14 Nov 1999 17:46:23 +0100):
> We have a 2.2.8 system which is in production, and is running out
> of swap. We see a lot of signal 11 kills with apache (the latest
> stuff, too). I wonder if FreeBSD can do swap files. Much like
> Solaris can... you use a command to create a special file, and
> hand it off to swap.
Yes. You first use "dd if=/dev/zero ..." to create a file of
sufficient size somewhere, then use vnconfig to enable swapping
on it. Please refer to "man vnconfig" for all the details.
Note that you must have "pseudo-device vn" in your kernel (see
LINT). Also note that you cannot disable swapping on a file,
once you have enabled it (except by rebooting, of course).
Regards
Oliver
--
Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany
(Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de)
"In jedem Stück Kohle wartet ein Diamant auf seine Geburt"
(Terry Pratchett)
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911141708.SAA16722>
