*SOLVED* 2.6.18 crash w/ kernel log :: oom-killer [message #13111] |
Sun, 20 May 2007 20:31 |
rickb
Messages: 368 Registered: October 2006
|
Senior Member |
|
|
Hello. I have an openvz server with 4GB of memory which continually hits oom-killer after 15-60 minutes of activity- even though I think it has free memory left. I loaded 8GB of swap to try and guard against oom-killer but that did not help.
I have this crash report:
http://66.97.172.77/cr.txt
If this is a bug I will create a bugzilla incident but I want the devs opinion on this first since I may be interpretting it incorrectly.
2.6.18 kernel
Quote: | HighMem free:373380kB min:512kB low:4064kB high:7620kB active:2106760kB inactive:747916kB present:3407872kB pages_scanned:0 all_unreclaimable? no
Free swap = 8131196kB
Total swap = 8457336kB
|
my limited knowledge tells me this server has approx 4GB physical memory with 748MB unused, 8.4GB swap with 8.1GB unused. If this is the case, should/can oom-killer be triggered?
I loaded an older kernel for right now, to try and isolate the problem.
Thanks!
Rick
-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions
UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
[Updated on: Fri, 25 May 2007 10:42] by Moderator Report message to a moderator
|
|
|
|
|
|
Re: 2.6.18 crash w/ kernel log :: oom-killer [message #13120 is a reply to message #13119] |
Mon, 21 May 2007 06:53 |
rickb
Messages: 368 Registered: October 2006
|
Senior Member |
|
|
Thanks Vasily,
The node has 4GB mem, 8GB swap, problem does occur with 2.6.8 and 2.6.18. To my understanding, oom killer should not activate when there is swap or memory left. is this correct?
does the crash report I linked to, say that there is memory in the system? further, all of my ve privvmpages are set to 3GB which prevents any one ve from causing such a problem. Right before the system goes nutty with oomkiller, the mem free is around 1GB. In the crash report, I would expect the memory to be completely exhausted.
I am more interested in knowing if I am reading the oomkiller report properly. I feel if there is truly no memory left in the system, this is not an openvz problem, and an application being too hungry like you said. But, if there is memory left, and plenty of swap, I do not feel oomkiller should be woken up to do its dirty work.
-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions
UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
[Updated on: Mon, 21 May 2007 10:13] Report message to a moderator
|
|
|
|
|
Re: 2.6.18 crash w/ kernel log :: oom-killer [message #13180 is a reply to message #13140] |
Tue, 22 May 2007 22:53 |
rickb
Messages: 368 Registered: October 2006
|
Senior Member |
|
|
Pavel, thanks for your help so far. I attached the full kernel log of the "crash" in my previous message. Can you tell me if this oom killer action is normal/expected?
If the server is dangerously low on physical memory for kernel data (right on that ~800mb threshold), I would think the kernel would temporarily fail mallocs and start swapping user memory to the disk, rather then honoring the malloc and then invoking oomkiller. Or, as a last resort, honor mallocs using the swap.
Thanks!
Rick
-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions
UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
|
|
|
|
|