Re: Swap Size Importance?




On Sep 29, 2006, at 9:06 AM, Jerry McAllister wrote:

On Fri, Sep 29, 2006 at 08:52:58AM -0700, Chris wrote:


Is there any shortfall in performance or reliability to running
production with swap equal in size to the 8gb of system memory? I

doesn't matter much. But, if you run enough to actually cause
paging - which goes to swap space - then it becomes an issue. Also,

I am assuming that real paging of active processes is death to that server anyway and means something else has to be throttled back with tuning of network bufs, apache or mysql. Same for crash dumps, can't run a server that is taking dumps or you lose your traffic.

I think some things that get pulled to execute often can get left
in swap space and accessed more quickly that all the way from main
disk each time. eg the system keeps track of what it has in swap and
it is more efficient to read from swap - less overhead. But someone

This is the part that concerned me. If one views a top on well running system and sees no swapping, I wanted to make certain there is no magic going on behind the scenes where processes have been mapped to swap in such a way that I could be currently benefitting from swap being higher than actual and not know it. If top is an accurate read on whether the system has placed high use processes in swap then it would suggest the first post is correct, and a memory rich system, where you configure to never exceed real memory, wastes that storage taken in swap. For expensive drives, given the sizes we use in RAM now, it's hard to justify. In the case of attempting this raid-5 configuration, it equates to the loss of 24G in scsi storage. I will run with 8g on the system drive.

Thank you very much for the responses.
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Optimum page file size for 1 GB?
    ... consensus on the 'best' setting I should use for page file please? ... paging altogether. ... i.e. when the total working-set exceeds real memory size. ... Still, you can disable swap on Linux and it works pretty well, at ...
    (comp.sys.ibm.pc.hardware.storage)
  • Re: WARNING: Sorry, no swap space to grow stack for pid 4456
    ... > What I meant was on another machine, swap -l shows ... Virtual memory is made up of three "resources" that are put together ... if RAM isn't available, the data is written to the file instead of swap. ... state of affairs might be to have a little swap space used every now ...
    (comp.unix.solaris)
  • Re: Slow FC4, perhaps swap is to blame
    ... kind of memory leak that builds up in the swap space over time. ... I did manage to find a command which I somehow got to work at least ...
    (Fedora)
  • Summary swap rules.
    ... So it looks as if swap is mostly not used anymore and can be kept pretty ... Tim Bradshaw stated what I privately felt- that 1:1 swap to memory is ... so it's really only around for memory leaks and core dumps. ... think) which are written to swap space. ...
    (SunManagers)
  • Re: swap space size
    ... I believe this was just a rule of thumb when memory was so expensive. ... And if it stops swapping, ... "two times 'so much'" swap space have? ...
    (Debian-User)