Thread (2 messages) 2 messages, 2 authors, 2000-10-06
  • (off-list ancestor, not in this archive)
  • Re: the new VM · Christoph Rohland <hidden> · 2000-09-25
  • Re: the new VM · Rik van Riel <hidden> · 2000-10-06

Re: the new VM

From: Rik van Riel <hidden>
Date: 2000-10-06 16:14:37

[replying to a really old email now that I've started work
 on integrating the OOM handler]

On 25 Sep 2000, Christoph Rohland wrote:
Rik van Riel [off-list ref] writes:
quoted
quoted
Because as you said the machine can lockup when you run out of memory.
The fix for this is to kill a user process when you're OOM
(you need to do this anyway).

The last few allocations of the "condemned" process can come
frome the reserved pages and the process we killed will exit just
fine.
It's slightly offtopic, but you should think about detached shm
segments in yout OOM killer. As many of the high end
applications like databases and e.g. SAP have most of the memory
in shm segments you easily end up killing a lot of processes
without freeing a lot of memory. I see this often in my shm
tests.
Hmmm, could you help me with drawing up a selection algorithm
on how to choose which SHM segment to destroy when we run OOM?

The criteria would be about the same as with normal programs:

1) minimise the amount of work lost
2) try to protect 'innocent' stuff
3) try to kill only one thing
4) don't surprise the user, but chose something that
   the user will expect to be killed/destroyed

regards,

regards,

Rik
--
"What you're running that piece of shit Gnome?!?!"
       -- Miguel de Icaza, UKUUG 2000

http://www.conectiva.com/		http://www.surriel.com/

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help