From owner-freebsd-questions Sun Feb 28 14:20:23 1999 Delivered-To: freebsd-questions@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id EFCA215327 for ; Sun, 28 Feb 1999 14:20:02 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id IAA16599; Mon, 1 Mar 1999 08:49:39 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id IAA13505; Mon, 1 Mar 1999 08:48:31 +1030 (CST) Message-ID: <19990301084831.M7279@lemis.com> Date: Mon, 1 Mar 1999 08:48:31 +1030 From: Greg Lehey To: Kent Stewart , Ben Smithurst Cc: Deepu Sebastian Joseph , freebsd-questions@FreeBSD.ORG Subject: Re: Swap Space References: <19990228181847.A20725@scientia.demon.co.uk> <36D9AD0E.9F17CDA@3-cities.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <36D9AD0E.9F17CDA@3-cities.com>; from Kent Stewart on Sun, Feb 28, 1999 at 12:54:38PM -0800 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sunday, 28 February 1999 at 12:54:38 -0800, Kent Stewart wrote: > Ben Smithurst wrote: >> >> Deepu Sebastian Joseph wrote: >> >>> I see that I might be just able to squeeze with: >>> / 20 MB >>> swap 20 MB >>> /usr 80 MB >>> /var 4 MB >>> Its given some where /+/usr should be 100MB. >> >> why not just >> >> / 104MB >> swap 20MB >> >> ? It will warn that having separate /, /usr and /var is a good idea, but >> it won't insist that you make them separate. I've recently installed >> FreeBSD on a machine with a small disk (400MB), and I just used >> something like 30 for swap, 380 for "/". On my machine "/" is a separate >> filesystem, but if you've got so little space it probably won't hurt to >> stick them all on one filesystem. >> >> Perhaps someone can tell me why my method is a bad idea, if it is. > > There are times when you want the system to go down in a nice manner. > When you fill the entire disk, it can be rather abrupt. I missed a > digit one time and tried to edit a 50MB file with vi on our Cray. I > filled what ever space vi used for tmp and the system stopped. That doesn't happen on FreeBSD. And the problem has nothing to do with whether you have one or several file systems. Ben is right: on such a tiny disk, you shouldn't have more than one file system. A 4 MB /var is just asking for trouble. On the other hand, 20 MB of swap isn't much, and all UNIX systems have problems when you run out of swap. It depends on what you're doing, but you could easily fill it up. You will need to keep a careful eye on swap usage (pstat -s). Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message