[ale] that same darn NFS problem SOLVED

James P. Kinney III jkinney at localnetsolutions.com
Mon Feb 17 16:32:17 EST 2003


Having reread my original 2xRam post I realized I erred. The recommended
swap ratio is  function of RAM size. 2x is recommended if less that 1G
of ram. A single swap space over 2G is size is NOT recommended (drive
latency issues). If more than 2G of swap is called for, it should be
distributed between drives. Ideally put the swap on the portion of the
hard drive that is quickest to access (in a high load system). More than
2G of swap can be on the same drive, but performance will be lessened.
The kernel docs have some good info on swap space.

On Mon, 2003-02-17 at 16:09, Chris Ricker wrote:
> On Mon, 17 Feb 2003, Michael D. Hirsch wrote:
> 
> > On Monday 17 February 2003 02:30 pm, Chris Ricker wrote:
> > > On Mon, 17 Feb 2003, James P. Kinney III wrote:
> > > > With a 2.4.x kernel and RAM <=4G swap=2xRAM
> > >
> > > That's not necessary. There was a bug in early 2.4.x that required
> > > swap=2xRAM for decent performance, but that's long since been fixed...
> > >
> > > You need enough swap to hold your working set. That could be anything
> > > from no swap to gigabytes, depending on what you do on that system....
> > 
> > Right, but the rational I heard is 
> > 
> > 1.  Having swap doesn't hurt
> > 2.  Unless you have so many processes and so much swap space that you get 
> > swap bound
> > 3. swap = 2 x RAM is a reasonable heuristic.  If you use much more than 
> > that you are probably swap bound, but up to that amount could really 
> > happen without getting swap bound.
> 
> The flip side is that on my box with 6 gigs of RAM which never swaps
> anyway, wasting 12 gigs of disk space is pointless.... You're right
> though in that disk space is relatively cheap (on most systems) and
> it doesn't really hurt. I just don't like it getting presented as a
> hard and fast rule, because it's not on modern systems....
> 
> later,
> chris
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
-- 
James P. Kinney III          \Changing the mobile computing world/
CEO & Director of Engineering \          one Linux user         /
Local Net Solutions,LLC        \           at a time.          /
770-493-8244                    \.___________________________./
http://www.localnetsolutions.com

GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics) <jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7 

 This is a digitally signed message part




More information about the Ale mailing list