Why is Linux so bad at killing processes that are taking all my memory and causing my computer to halt?

Reply to this note

Please Login to reply.

Discussion

No joy with `killall -HUP`?

How can I type that on a completely unresponsible computor?

CTRL+ALT+FN2 (tty 2)?

Can’t ssh in?

ssh doesn't work when there is an infinite loop in a process somewhere eating all the CPU and memory.

Use nice before your command

man nice

Fair enough, sir.

You don't even know which process?

In this specific case I did know what process and I managed to kill it before it hogged the entire computer, but other times I wasn't so lucky.

Running a Linux machine requires some dexterity.

Do you want an operating system? Or do you want an adventure? 🐧

Oof. Ctrl+Alt+F2 to a console and either go berserk on the process or create an additional swap on the fly using a swapfile. That might make the SSD hot though by swapping - depends on the process. Godspeed

No sysrq response either?

If it's using that many resources, it must be important!

Sounds like windows

Yep happens to me regularly.

oomkiller should be doing it's thing?

It sounds like you are using Windows. Never experienced that with Linux, that’s why people run Linux servers that can run years without reboot.

I had this problem before, I thought it was set up properly but apparently I didn't have swap memory set up properly.

Name an OS that is good at that.

Linux is "nice" to it's "children"

Have you reported the bug to maintainers?

It's not? Kill -9

hopefully you arent running steam client. it has a memory leak

that's why.

Need memory to run the process to kill processes?