Need functionality similar to Memory Overcommit (aka Lazy Swap)

Due to heavy load at peak times my web server and other processes often runs out of memory and system starting swapping and became unresponsive.

Other os kernels (like Linux, FreeBSD) OOM (out-of-memory) process killer just kills such processes and system can handle such peak times.

As shown in this article http://developers.sun.com/solaris/articles/subprocess/subprocess.html#overcom Solaris do not have memory overcommit mode.

I'd like to have similar functionality on my Solaris 10. Can I somehow tell Solaris to not allow swap usage for particular user or processes (or the best - system wide)?

For instance, restrict apache from using swap and kill any child process which demands more memory than available. In dilemma between dead server and dead child process I'd prefer the second one.

[830 byte] By [rustama] at [2007-11-26 15:39:13]
# 1

No. That doesn't really exist.

You can create more virtual memory with 'swap -a' and some large swap files. In the case you're talking about (overcommit), then the memory will never be used, and there's no performance penalty.

If the memory is used, then you're not talking about overcommit at all, you're talking about memory usage.

You can always attempt to bound the use of memory with process limits. That's annoying to set up, but it may be worth it to you.

--

Darren

Darren_Dunhama at 2007-7-8 21:57:33 > top of Java-index,Solaris Operating System,Solaris 10 Features...