Ask HN: I miss CTRL+ALT+DELETE, what's the Linux equivalent?
I've been using Linux for most of my life, and the Windows feature I miss most is CTRL+ALT+DELETE for recovering from freezes.
When your Linux system freezes, what do you do to recover functionality?
(At the point a Linux system has frozen, it's usually too late to summon a command prompt with Ctrl+Alt+F3. The Magic SysRq Key seems like it should be able to duplicate the functionality of CTRL+ALT+DELETE — but so far I haven't successfully used it to recover from freezes, and it isn't usually enabled on friend's computers.)
(
9 comments
| 3 points
| on HN
)
Another thing to research is tuning options like vm.min_free_kbytes, vm.swappiness, vm.lowmem_reserve_ratio, vm.user_reserve_kbytes, vm.admin_reserve_kbytes, vm.overcommit_ratio and vm.overcommit_memory in /etc/sysctl.conf to swap early, and reserve more memory for the kernel based on how much installed RAM you have available. Just setting vm.overcommit_ratio to 0 can solve some hung systems for a number of people at the expense of some applications not launching when memory is low. Another thing to research if you do not have enough RAM is zswap, especially useful to reduce writes to SSD's. To see if your kernel has zswap support:
[1] - https://www.kernel.org/doc/html/v4.15/admin-guide/sysrq.htmlI use SysRq to REISUB my machine — but I haven't found the SysRq key on Macbook keyboards; and haven't had the nerve to enable SysRq on friend's computers (which I often end up troubleshooting), since I didn't know much about it, what the security implications are, and whether 1 is an advisable value for kernel.sysrq
Those sysctl options could make a big difference; I've wondered about something like that, but assumed the optimal default was built in. Thank you! I'll try tinkering with those values.
You do have a hardware reset button?
ctrl+alt+f7 to go back to desktop
For a kernel panic or lockup I think it's a combination roughly similar to:
1. Ctr-Alt-PrintScreen
2. continue to hold Alt
3. R-I-S-U-B as a sequence, to make certain things happen and like syncing the file system