From owner-cvs-all Mon Jan 7 12:46: 3 2002 Delivered-To: cvs-all@freebsd.org Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by hub.freebsd.org (Postfix) with ESMTP id AA43037B416; Mon, 7 Jan 2002 12:45:56 -0800 (PST) Received: (from wkb@localhost) by freebie.xs4all.nl (8.11.6/8.11.6) id g07Kjr412148; Mon, 7 Jan 2002 21:45:53 +0100 (CET) (envelope-from wkb) Date: Mon, 7 Jan 2002 21:45:53 +0100 From: Wilko Bulte To: Matthew Dillon Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/release/sysinstall install.c label.c sysinstall.h Message-ID: <20020107214553.A12121@freebie.xs4all.nl> References: <200201070759.g077xUt53167@freefall.freebsd.org> <20020107141759.B9972@freebie.xs4all.nl> <200201071715.g07HFb312872@apollo.backplane.com> <20020107185251.A10846@freebie.xs4all.nl> <200201072034.g07KYPI54890@apollo.backplane.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200201072034.g07KYPI54890@apollo.backplane.com>; from dillon@apollo.backplane.com on Mon, Jan 07, 2002 at 12:34:25PM -0800 X-OS: FreeBSD 4.5-PRERELEASE X-PGP: finger wilko@freebsd.org 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 On Mon, Jan 07, 2002 at 12:34:25PM -0800, Matthew Dillon wrote: > > :> :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?"; Yep, sounds very familiar ;) [/me promises to keep a notepad close to the testmachine next time] > Was this on a totally empty disklabel? (no other partitions created?). Hmm, no. I just pressed 'A' for autosizing. So it also created / tried to create a root partition I think. > 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). No swap at all will probably run you in sysinstall complaining somewhere else. I think I once saw it yell at me when I forgot to create swap. Or am I misremembering. Wilko -- | / o / /_ _ email: wilko@FreeBSD.org |/|/ / / /( (_) Bulte Arnhem, The Netherlands To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message