Comment 8 for bug 768032

Revision history for this message
gpk (gpk-kochanski) wrote :

It crashes my computer in Natty. This is a serious bug, because it causes all kinds of havoc. Loss of data, for one thing.

However, this is not just a bug in gltext: it is a bug in xscreensaver. Xscreensaver should adjust the OOM killer to preferentially kill its subprocesses. A screensaver subprocess is *NOT* an important process -- it should not be allowed to run wild and endanger the operation of the rest of the system.

A simple manipulation in /proc/[pid]/oom_adj would solve the problem.

open("/proc/%d/oom_adj", "w").write("10\n")

would do the trick.