oom_kill - Out of memory Kill

  1. Enabling SysRq functions
  2. SysRq Shortcut


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:


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:


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:


Glenn Lyons VK4PK
Ver:gnl20191204 - pre published v0.9