oom_kill - Out of memory Kill

Contents:
  1. Enabling SysRq functions
  2. SysRq Shortcut

[Top][Home]

The SysRq key can run a bunch of kernel-level commands, eg oom_kill.
oom_kill will kill the process taking up the most memory.
In most cases this should unfreeze Ubuntu.

You can run oom_kill from the keyboard with the following shortcut:


[Top][Home]


Enabling SysRq functions

For security reasons, SysRq keyboard functions are often disabled by default.
To enable them, edit /etc/sysctl.d/10-magic-sysrq.conf and chnge kernel.sysrq = 1:



[Top][Home]

SysRq Shortcut

Most laptops don’t have a physical SysRq key. Instead use the keyboard combination fn + s.

Sometimes the SysRq key is only recognised on release.
To run oom_kill on these machines, after enabling it, do the following:



[Top][Home]


Glenn Lyons VK4PK
glenn@LyonsComputer.com.au
Ver:gnl20191204 - pre published v0.9