什么是SysRq
It is a 'magical' key combo you can hit which the kernel will respond to
regardless of whatever else it is doing, unless it is completely locked up.
如何使能SysRq?
内核配置SysRq
若使用SysRq,需要在内核配置时设置Magic SysRq key(CONFIG_MAGIC_SYSRQ)为Y,内核配置信息如下:
CONFIG_MAGIC_SYSRQ:
If you say Y here, you will have some control over the system even
if the system crashes for example during kernel debugging (e.g., you
will be able to flush the buffer cache to disk, reboot the system
immediately or dump some status information). This is accomplished
by pressing various keys while holding SysRq (Alt+PrintScreen). It
also works on a serial console (