From owner-cvs-all Wed Jan 16 10:12: 4 2002 Delivered-To: cvs-all@freebsd.org Received: from gndrsh.dnsmgr.net (GndRsh.dnsmgr.net [198.145.92.4]) by hub.freebsd.org (Postfix) with ESMTP id ADB9D37B400; Wed, 16 Jan 2002 10:11:59 -0800 (PST) Received: (from freebsd@localhost) by gndrsh.dnsmgr.net (8.9.3/8.9.3) id KAA04336; Wed, 16 Jan 2002 10:11:10 -0800 (PST) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <200201161811.KAA04336@gndrsh.dnsmgr.net> Subject: Re: cvs commit: src/release/sysinstall install.c label.c sysinstall.h In-Reply-To: <200201072341.g07Nf5c56040@apollo.backplane.com> from Matthew Dillon at "Jan 7, 2002 03:41:05 pm" To: dillon@apollo.backplane.com (Matthew Dillon) Date: Wed, 16 Jan 2002 10:11:10 -0800 (PST) Cc: drosih@rpi.edu (Garance A Drosihn), wkb@freebie.xs4all.nl (Wilko Bulte), cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm a bit behind on email, but just in case someone cares about historical behavior the rule use to be ``swap should never use more than 10% of a spindles space''. IIRC this goes back to the mkfs V7 code. > :... > :that it will result in too little disk space for the other partitions. > :I imagine that deciding on a good algorithm will be more work than > :implementing it once it's decided upon... :-) > : > :Is 'available_space' the size of the entire available partition? I'm > :thinking it should be something like: > : > : non-swap partitions should get at LEAST as much as they would > : have gotten under the previous calculation > : then the maximum size of the swap partition should be some > : fraction of the space left after subtracting that amount > : from the total size of the partition. > : then after getting the size for the swap-partition defined, go > : back and calculate sizes for non-swap partitions. > : ... -- Rod Grimes - KD7CAX @ CN85sl - (RWG25) rgrimes@gndrsh.dnsmgr.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message