oliver <[email protected]> writes:

> On Thu, Dec 08, 2011 at 09:04:50AM +0000, Anil Madhavapeddy wrote:
>> I think Ancient is exactly what you're looking for.
>> 
>> Just disable swap (which you should do anyway on a big modern server), and it
>> will let you keep in-memory, out-of-heap OCaml values that don't get scanned 
>> by
>> the GC.
> [...]
>
>
> Completely disabling swap can crash the system.

No it can't. Or at least that would be a serious bug.

With or without swap if you run out of memory the OOM killer activates
and your system goes down the drain. But it should never crash. Swap
just delays the inevitable.

> Better just fine tune it, so that it uses swapping less often.
>
> => on Linux swappiness can be set via /proc:   /proc/sys/vm/swappiness

What I saw is that often on a 16GB node people would start programs that
use up 15.99GB. As in try to maximize the memory they use. Now when some
other things run like a cron job the system would reach an OOM
situation. And that is where a little swap comes in handly.

So give the system 1GB swap so it can swap out enough of a 16GB batch
job to run cron and friends when they occasionally wake up. But nowhere
the amount the ancient swap = 2x ram rule would dictate.

MfG
        Goswin


-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to