Re: Disk Layout/Partitioning Practices

From: Tom Mitchell (mitch48_at_sbcglobal.net)
Date: 01/31/04

  • Next message: Randy Kelsoe: "Re: Random System Crashes {Scanned}"
    To: fedora-list@redhat.com
    Date: Sat, 31 Jan 2004 09:45:15 -0800
    
    

    On Wed, Jan 28, 2004 at 11:34:19AM -0500, Kent Borg wrote:
    > On Wed, Jan 28, 2004 at 03:44:14PM +0000, Alan Dunkley wrote:
    > > On Wednesday 28 Jan 2004 3:01 pm, Ron Herardian wrote:
    > > > When installing everything and allowing for future updates and packages I
    > > > am using the following disk layout:
    > > >
    > > > Mount Point Size
    > > > /boot 100MB
    > > > / 500MB
    > > > /usr 4GB
    > > > /var 2GB
    > > > swap 2x physical RAM, e.g., 1GB
    > > > /home TBD, e.g., 1GB per user
    > > > /opt TBD/catchall [3rd party servers will be installed here]
    >
    > A couple suggestions:
    >
    > Swap: Just use 1 GB. It is big enough to be significant from a RAM
    > perspective, but it is still small and cheap in terms of disk sizes.

    This is a good place to start unless you have experience otherwise.

    > Put a lot of physical RAM in your machine, certainly.

    Yes, Yes, Yes... DRAM....

    Remember that Linux supports swap to files. If you need more swap space
    for a project you can add swap files at a later time.

    You do want enough DRAM + swap to permit your largest processes to do
    common things like "fork(); exec()" and not have the kernel return
    errors for want of virtual resources.

    Today DRAM is inexpensive and "disk-speed to DRAM-speed" ratios so
    large that you do not want much if any swap IO. With modern VM
    systems and concepts like shared pages, copy on write etc... the key
    value for a 'big' swap is kernel book keeping. The kernel must
    believe that it has has enough backing store in case you "touch"
    the pages the process requested.

    I happen to like testing various bounds and limits so my swap space is
    big. Big enough for two run away big processes (~6GB). In practice
    this is way too large and when swapping the box is worthless for
    interactive work.

    The classic 2xDRAM, 4xDRAM, 8xRAM swap rules had a lot to do with the
    balance of DRAM cost (expensive) to disk cost to system usefulness.

    Today time slices are very short. When time slices are compared to
    disk access time extensive swap IO does not make sense. When the
    effective runtime for a set of pages is larger than the disk IO time
    and overhead it can make sense. See stuff like job control, Ctl-Z
    stop, checkpoint and restart. On an interactive workstation swap IO
    does not make much sense.

    -- 
    	T o m  M i t c h e l l 
    	mitch48-at-sbcglobal-dot-net
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Randy Kelsoe: "Re: Random System Crashes {Scanned}"

    Relevant Pages

    • Re: Problem booting RAID1/mdadm system when one disk is unplugged
      ... My System has 2x120GB IDE disks with the an up-to-date Sarge install, running kernel 2.6.8-3 and configured for mirroring. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ... first disk BIOS presents, and partition number 6 on that disk. ... You always want to RAID1 the swap as well. ...
      (Debian-User)
    • Re: Breaking the 137GB barrier (LBA48)
      ... my Fedora Core 2 installation is not able to see more ... How is your BIOS set for this disk? ... after the kernel has been loaded at which time the kernel should see ... For swap there is no special need to be too generous ... ...
      (Fedora)
    • Re: Cant boot 2.6.20, get /dev/root error.
      ... Kernel panic - not syncing: ... So, I dont understand, - /dev/sda5 is my swap device, ... suspend to disk. ... If the swap partition has the flags that show you ...
      (Fedora)
    • Re: Cant boot 2.6.20, get /dev/root error.
      ... Kernel panic - not syncing: ... So, I dont understand, - /dev/sda5 is my swap device, ... suspend to disk. ... If the swap partition has the flags that show you ...
      (Fedora)
    • Suspend to disk: do we HAVE to use swap?
      ... Do we HAVE to use swap for suspend to disk? ... If we don't use swap we're obviously using the FS; ... the only files to be created are the ones the kernel will make; ...
      (Linux-Kernel)