[Bug 211860] New: keep display alive after oom
https://bugzilla.novell.com/show_bug.cgi?id=211860 Summary: keep display alive after oom Product: openSUSE 10.2 Version: Alpha 5 Platform: PowerPC OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Installation AssignedTo: yast2-maintainers@suse.de ReportedBy: olh@novell.com QAContact: jsrain@novell.com the kernel tends to kill processes that dont behave and use too much memory. see bug #209424 Unfortunatelty, the kernel kills also Xorg, which can not restore the graphics card state. If Xorg is killed, the system appears to be frozen. echo -n '-17' > /proc/$XORG_PID/oom_adj In theory the line above should keep X alive, bug #211859 talks about the practice. Either way, the yast startup scripts in the inst-sys have to make sure that Xorg is not killed. Documentation/filesystems/proc.txt: ... 2.12 /proc/<pid>/oom_adj - Adjust the oom-killer score ------------------------------------------------------ This file can be used to adjust the score used to select which processes should be killed in an out-of-memory situation. Giving it a high score will increase the likelihood of this process being killed by the oom-killer. Valid values are in the range -16 to +15, plus the special value -17, which disables oom-killing altogether for this process. 2.13 /proc/<pid>/oom_score - Display current oom-killer score ------------------------------------------------------------- ------------------------------------------------------------------------------ This file can be used to check the current score used by the oom-killer is for any given <pid>. Use it together with /proc/<pid>/oom_adj to tune which process should be killed in an out-of-memory situation. .. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=211860 lslezak@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|yast2-maintainers@suse.de |ms@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=211860 ms@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|ms@novell.com |sndirsch@novell.com ------- Comment #1 from ms@novell.com 2006-10-13 07:43 MST ------- something for Stefan I think -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=211860 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ms@novell.com AssignedTo|sndirsch@novell.com |ms@novell.com ------- Comment #2 from sndirsch@novell.com 2006-10-15 19:46 MST -------
Either way, the yast startup scripts in the inst-sys have to make sure that Xorg is not killed. Assigning back to Marcus therefore.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=211860 ms@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #3 from ms@novell.com 2006-10-16 03:19 MST ------- *hups* sorry yes this is my bug. fixed Index: startup/YaST2.call =================================================================== --- startup/YaST2.call (revision 33418) +++ startup/YaST2.call (revision 33420) @@ -58,6 +58,8 @@ server_running=0 break; fi + # server is running, detach oom-killer from it + echo -n '-17' > /proc/$xserver_pid/oom_adj server_running=1 break fi -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=211860 Olaf Hering <olh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Found By|Other |Development -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com