I know the OOM killer is invoked when out of memory. And this answer here: https://askubuntu.com/questions/440326/how-can-i-turn-off-swap-permanently says that it can potentially cause a hard reboot.

I would like to confirm how accurate that answer is in addition to finding out how or why disabling the swap can cause hard reboots. Does anyone know?

The reason why I ask is I've been investigating reboots on a certain machine and I just realized the swap was disabled on this machine. Would like to confirm my theory of the lack of swap causing hard reboots but also a logical explanation for why this occurs.

  • askubuntu.com/questions/440326/… is the pertinent comment there: not having swap doesn't cause reboots, running out of (RAM+swap) potentially does, because I guess PID 1 can get OOMed. Or any of the dozens of services that you de facto need — if sshd gets killed, the machine is technically running and serving, but you might not be able to log in without a reboot. Nov 24 at 5:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.