Shachar Shemesh wrote:


Machine with 16GB ram and a bit of swap, running 32bit gentoo with (as far as I know) 3:1 memory split.


The symptoms:

Every so often the oom-killer kicks in, for no apparent reason. The processes it kills appear to be randomly chosen. Monitoring was not turned on, but there is no reason to suspect the 16GB+swap were nowhere near exhausted at the time.


My suggested diagnosis and recommendations:

The kernel only has 1GB with which to work, which causes it to run out of memory for managing the page tables. I recommended they:

Possible. Checking /proc/meminfo can be helpful.


- As a first stage, disable the swap.

This doesn't make much sense to me. What is it suppose to achieve?

Try to turn on the CONFIG_HIGHPTE kernel config options. It puts (some of the) page tables in high memory.

- As a second stage - switch to a 64bit kernel

Certainly a good idea if possible. Will be faster then CONFIG_HIGHPTE.

Also, is there any way to monitor how much kernel memory is in use? It seems that monitoring the "LowTotal" and "LowFree" values in /proc/meminfo may be what I'm looking for, but I'm not sure I'm reading the docs proprely.



Basically, you need enough free space in LowFree, for some definition of "enough".


Gilad


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to