Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jan 2002 12:34:25 -0800 (PST)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        Wilko Bulte <wkb@freebie.xs4all.nl>
Cc:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/release/sysinstall install.c label.c sysinstall.h
Message-ID:  <200201072034.g07KYPI54890@apollo.backplane.com>
References:  <200201070759.g077xUt53167@freefall.freebsd.org> <20020107141759.B9972@freebie.xs4all.nl> <200201071715.g07HFb312872@apollo.backplane.com> <20020107185251.A10846@freebie.xs4all.nl>

next in thread | previous in thread | raw e-mail | index | archive | help

:> :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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201072034.g07KYPI54890>