Re: Swap space question



nicolas angel wrote:
Hi, i would to ask something about swap space:

i quote from the book "How Linux Works—What Every Super-User Should Know"

"Reserve two to five times as much disk space as you have real memory for
swap.

I don't know when this was published, but the early 2.4 kernels had a
reworked memory management system that meant you needed at least as much
swap as memory before swap helped at all. So 2x was a sensible default
for most users.

2.2 and earlier, and later 2.4 and all 2.6 kernels didn't have this, and
any amount of swap *could* be used.

These days, the best rule of thumb is "don't worry about it too much".

Hope this helps,

James.

--
E-mail: james@ | "But alas, we don't need a car, so I have a bus timetable
aprilcottage.co.uk | and one day the buses will read it too."
| -- Telsa Gwynne

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Help track a memory leak in 2.6.0..14
    ... all kernels since 2.6.0 as a Gentoo machine. ... slows down to a stall and hard disk spins ad infinum. ... BTW, adding swap just slows down the process, but result is the same. ... how do I debug what process gets memory and doesn't release it? ...
    (Linux-Kernel)
  • Re: Heaps and Foreigners
    ... >> can ask for the memory and get a pointer to it. ... cause unfathomable deaths when swap space gets low or is exhausted. ... It's probably because there is some reserve memory to print out errors ... of RAM and disk space) and virtual swap (which is just a number managed ...
    (comp.lang.lisp)
  • Re: Is Greenspun enough?
    ... Most OSes memory map executables directly from the file system so code doesn't pollute the file cache or swap space. ...
    (comp.lang.lisp)
  • Re: [PATCH] io-controller: Add io group reference handling for request
    ... Find the io group bio belongs to. ... anonymous pages (swap) you still need the page tracking functionality ... so fair to charge the current task for the whole activity. ... is some other memory hungry application which is forcing these swap outs. ...
    (Linux-Kernel)
  • Re: [kde-linux] VM and Swap problems
    ... swap is half full the system starts removing swap until it is exactly ... Maybe one of your applications leak memory (I have a webpage ... to two times RAM. ... Unused memory will be used as disk buffers. ...
    (KDE)