OOM-killer prevention for master kdeinit process
Lubos Lunak
l.lunak at suse.cz
Wed Aug 2 16:07:08 BST 2006
On Wednesday 02 August 2006 15:09, Lubos Lunak wrote:
> Hello,
>
> short summary: Out Of Memory handling on Linux sucks, KDE can suffer badly
> from it, kernel devels are unable to do anything about it, so let's again
> work around things ourselves.
...
> Now, who's the setuid guru here :)? Is the attached (KDE3) patch ok? I'd
> prefer not to have security people going after me. The setuid stuff is
> copied from artswrapper, the privileges are dropped immediately so I hope
> there's no problem.
Ok, scratch the patch, I wasn't able to attach gdb to processes launched via
such kdeinit (and I was wondering why people use wrappers for it). Here's
another attempt with a wrapper, again more or less copy&paste from
artswrapper. This way kdeinit is only affected when launched during KDE
startup, but that's hopefully enough.
On Wednesday 02 August 2006 15:59, Robert Knight wrote:
> > PS: Just in case somebody wonders why I hate OOM handling on Linux so
> > much then the answer is that my 1G RAM work machine with no swap at all
> > being trashed to death is probably the top reason why I reboot it (not
> > that I reboot that often otherwise).
>
> What on earth is using up that 1GB?
Whatever happens to fill it up, e.g. accidental parallel linking when
building kdebase is good for that. But that's not the point at all, the
problem is that instead of killing whatever is responsible for running short
on memory it instead kills kdeinit.
--
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o. e-mail: l.lunak at suse.cz , l.lunak at kde.org
Drahobejlova 27 tel: +420 2 9654 2373
190 00 Praha 9 fax: +420 2 9654 2374
Czech Republic http://www.suse.cz/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kinit.patch
Type: text/x-diff
Size: 4754 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060802/27981422/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: startkde.patch
Type: text/x-diff
Size: 509 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060802/27981422/attachment-0001.patch>
More information about the kde-core-devel
mailing list