Skip to contentSkip to conversation

System hang problem.

DISCUSSION Al Boldi 1 participant 1 message Oct 4, 2006

lore
Share & tools
lore

Al Boldi

author
#0 lore raw
Quoted 9 lines · Manish Neema
Quoted 4 lines

What you can often do, if you have one application using much memory, is limiting *this application's* memory usage with ulimit. If the application correctly handles malloc()==NULL, then at least your system will behave stably.

The problem is its different application, different user each time (a typical large R&D environment). /etc/security/limits.conf allows to set max resident set size. Is there a way to limit based on the total virtual size?

You mean like: ulimit -v [total VMsize/runqueue]

I suppose, that this could easily be dynamically calculated by the kernel, for a tremendously inhibiting OOM-killer effect.

Thanks!

--
Al