From owner-freebsd-amd64@FreeBSD.ORG Thu Dec 11 04:32:36 2003 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 322B116A4CE for ; Thu, 11 Dec 2003 04:32:36 -0800 (PST) Received: from pandora.cs.kun.nl (pandora.cs.kun.nl [131.174.33.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB35E43D1D for ; Thu, 11 Dec 2003 04:32:34 -0800 (PST) (envelope-from adridg@cs.kun.nl) Received: from localhost by pandora.cs.kun.nl via odin.cs.kun.nl [131.174.33.33] with ESMTP id hBBCWG1q007153 (8.12.10/3.58); Thu, 11 Dec 2003 13:32:32 +0100 (MET) From: Adriaan de Groot To: amd64 freebsd Date: Thu, 11 Dec 2003 13:30:08 +0100 User-Agent: KMail/1.5.94 References: <3FD7F786.7010208@texoma.net> In-Reply-To: <3FD7F786.7010208@texoma.net> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200312111330.08052.adridg@cs.kun.nl> cc: Jimmie Houchin Subject: Re: Partitions X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Dec 2003 12:32:36 -0000 On Thursday 11 December 2003 05:50, Jimmie Houchin wrote: > Do I really need a 4gb swap partition/slice? > I have 4gb ram. 8 is suggested, no? Certainly if you've got a 220G drive, you can afford that? The story is sort of this: the VM is optimized for the situation that there's twice as much swap as memory. If you never hit swap (I don't, and I've only got 1G RAM, but then again I only do 12-way parallel compiles of C++ code and no physics simulations or model checking) that's not so bad, but if you _do_ end up using lots of swap, this may slow you down. Also, I believe that in case of kernel panics, you can get a complete dump in swap if you want, which would mean that you need at least as much as you have memory. So much for the i-think-so and old wives' tales stuff. (original suggestion) > / 256mb > /swap 4gb > /var 256mb > /tmp 256mb > /usr 228gb (the rest) Tastes vary. First off, /var contains logs that can get pretty big if you're a serveer. For workstation use, this is much less important. If you don't have a seperate /home, it goes in /usr/home. A large /tmp is useful for big compile jobs. Put it on another partition if you're a server. Locally, filling up / isn't as bad. For just /usr, 3G is usually enough _if_ you clean up ports regularly, (or set WRKDIRPREFIX), and have a nice big /usr/local for all the addons. I prefer that setup, since it means I can backup and restore system stuff in /usr separately from addons and ports stuff in /usr/local. My personal setup is /dev/ad4s1a 989M 451M 459M 50% / devfs 1.0K 1.0K 0B 100% /dev /dev/ad4s1d 989M 33M 877M 4% /var /dev/ad4s1e 19G 2.7G 15G 15% /usr /dev/ad4s1f 5.8G 1.0G 4.3G 19% /home-local /dev/ad4s1g 24G 8.4G 14G 38% /usr/local (see, no separate /tmp and I haven't cleaned it in a while) (/home-local is for when the NFS server is down) (note the usage in /usr) (/usr/local contains builds of Qt 3.[012] and KDE 3.[012]). Again, it's a matter of taste and you projected usage. -- pub 1024D/FEA2A3FE 2002-06-18 Adriaan de Groot If the door is ajar, can we fill it with door-jamb?