Enable
# echo 1 > /proc/sys/kernel/sysrq
Generate dump
# echo 'm' > /proc/sysrq-trigger
Trigger
- m - dump information about memory allocation
- t - dump thread state information
- p - dump current CPU registers and flags
- c - intentionally crash the system (useful for forcing a disk or netdump)
- s - immediately sync all mounted filesystems
- u - immediately remount all filesystems read-only
- b - immediately reboot the machine
- o - immediately power off the machine (if configured and supported)
View dump
# vi /var/log/messages
References