Re: Memory hogs

Khimenko Victor (khim@sch57.msk.ru)
Fri, 16 Jul 1999 16:52:56 +0400 (MSD)


In <26824.932123562@www3.gmx.net> Bernd Paysan (bernd.paysan@gmx.de) wrote:
> Hi!

> I've myself seen some lethal memory hoggers in 2.2.x, and a friend also
> reported one to me. The symptom is simple: the system starts swapping like
> mad, and with the current hard disk speeds and not-too-large swap partitions,
> the swap space is full after a few seconds - while it's swapping that hard,
> you don't have a chance to recover, anyway. After the attack, not only the
> memory hogging app is killed, but a lot of other apps (often the X server
> itself) are kicked out, too. The X server is especially nasty, since it leaves
> the video card in an "unknown" state (for the OS), and with VC switch
> blocked.

> IMHO the behaviour to react on out of memory condition should be to kill
> the application that allocated most pages recently, and not randomly shoot at
> well-behaving apps. And second, the system should send a signal first,
> before the situation becomes so awful that the kernel has to take immediate
> actions. This would allow the X server to quit gracefully (the X server can be a
> memory hog, too: just try to create a pixmap several thousands pixel width
> and height).

Greeaatt idea. Can you cook up patch or something ? Andrea (andrea@suse.de)
Rik (riel@nl.linux.org) and others tried really hard to make things better but
so far no really acceptable (for Linus :-) solution was found AFAIK...

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/