cvs commit: src/usr.sbin/sysinstall label.c

Colin Percival cperciva at FreeBSD.org
Tue Aug 16 13:19:18 GMT 2005


cperciva    2005-08-16 13:19:18 UTC

  FreeBSD src repository

  Modified files:
    usr.sbin/sysinstall  label.c 
  Log:
  Change the default partition sizing code in order to
  1. Provide larger /, /var, and /tmp partitions (the last increase was
  in 2001, and we now have both larger hard drives and more space-hungry
  software.)
  2. If there is enough space available, allocate extra space to /var
  sufficient to store a crash dump.
  
  On systems where harddrivesize > 3 * RAMsize + 10GB, the default sizes
  will now be as follows:
  swap    RAMsize * 2
  /       512 MB
  /tmp    512 MB
  /var    1024 MB + RAMsize
  /usr    the rest (8GB or more)
  
  On systems where harddrivesize > RAMsize / 8 + 2 GB, the default sizes
  will be in the following ranges, with space allocated proportionally:
  swap    RAMsize / 8 -- RAMsize * 2
  /       256 MB      -- 512 MB
  /tmp    128 MB      -- 512 MB
  /var    128 MB      -- 1024 MB
  /usr    1536 MB     -- 8192 MB
  
  On systems with even less disk space, the existing behaviour is not
  changed.
  
  Approved by:    re (kensmith)
  MFC after:      1 day
                  (or once people stop arguing about colours of paint)
  
  Revision  Changes    Path
  1.149     +28 -9     src/usr.sbin/sysinstall/label.c


More information about the cvs-src mailing list