Monday, 27 May 2013

How to make sure, that certain functionality (like Alt+Ctrl+F1 switching into tty) is available in havily swapping system?

How to make sure, that certain functionality (like Alt+Ctrl+F1 switching into tty) is available in havily swapping system?

At the moment, when I accidentally launch application that eats a lot of memory (that causes system to heavily swap), the system become so unresponsive (waiting hours just to see the mouse move/or switching to the tty1 with Alt+Ctrl+F1) that it effectively means I need to REISUB (= hard reboot) and lost ALL of my current, not saved work.
In Windows world, some parts of the kernel are never swapped out (like mouse movement or Alt+Ctrl+Del combination) and even in a very bad out-of-memory situation I can recover under in under 5 minutes by calling Task Manager and killing the offending application.
Surely I must be missing something, I can't imagine that the whole Linux system can be brought to its knees with something so simple and innocent as preview with imagemagick a multi page tiff book (the imgemagick happens to load all the pages of the image uncompressed into the memory first...)
I heard about the experimental BFQ I/O scheduler, maybe this could help?

No comments:

Post a Comment