![]() | ||||||||||
Messages in this thread |
Pedro wrote: > On Wednesday 11 April 2007 16:48, Willy Tarreau wrote: > > On Wed, Apr 11, 2007 at 02:23:31AM -0300, Pedro wrote: > > > > > > As the OOM killer is not Posix, > > > > If you cannot control your application's memory usage, you'll have to > > finely tune the overcommit_ratio. > > 2) How should an application be written to not be killed by OOM? Try this: # echo -17 > /proc/<pid>/oom_adj Or this: # echo 2 > /proc/sys/vm/overcommit_memory # echo 95 > /proc/sys/vm/overcommit_ratio Or this: # ulimit -v [max vm] Thanks, and good luck with the OOM killer! -- Al - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | |||||||||
| Last update: 2007-04-12 05:03 [from the cache] ©2003-2008 | ||||||||||