From owner-cvs-all Mon Jan 7 12:34:38 2002 Delivered-To: cvs-all@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id 78A7F37B417; Mon, 7 Jan 2002 12:34:32 -0800 (PST) Received: (from dillon@localhost) by apollo.backplane.com (8.11.6/8.9.1) id g07KYPI54890; Mon, 7 Jan 2002 12:34:25 -0800 (PST) (envelope-from dillon) Date: Mon, 7 Jan 2002 12:34:25 -0800 (PST) From: Matthew Dillon Message-Id: <200201072034.g07KYPI54890@apollo.backplane.com> To: Wilko Bulte Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/release/sysinstall install.c label.c sysinstall.h References: <200201070759.g077xUt53167@freefall.freebsd.org> <20020107141759.B9972@freebie.xs4all.nl> <200201071715.g07HFb312872@apollo.backplane.com> <20020107185251.A10846@freebie.xs4all.nl> 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 just got something like 'Too big swap' when I tried to install using :> :'A' on an Alpha DS20 using 4.5-RC0. This was on a 2GB disk, the machine :> :has 1.2GB of RAM. Would that combination of small disk versus lots of ram :> :be the culprit maybe? :> : :> :W/ :> :> 'Too big swap' during boot? During the sysinstall? I don't see : :During sysinstall just after typing 'A'. I will have to retry :at work if you want the exact error (I know.. me and my miserable :memory.. :-) : :W/ This one? label.c: msg = "Unable to create the swap partition. Too big?"; Was this on a totally empty disklabel? (no other partitions created?). We calculate swap at 2x main memory, up to a certain point. So it is probably trying to create 2.4GB of swap. Hmm. I could throw code in to prevent it from allocating swap space greater then 1/4 of available space. What do people think? This is primarily going to be a problem on systems with large amounts of memory and tiny amounts of hard disk space. Perhaps we should skip creating swap entirely in such cases. Say if (memory * 2) > (available_disk / 2) we would not create a swap. Or (memory * 2) > (available_disk / 4). Ideas? It's trivial to code the above conditional up, it would be placed at approximately line 1192 in /usr/src/release/sysinstall/label.c -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message