kdump (Linux)
Appearance
kdump is a feature of the
/proc/vmcore during the handling of a kernel crash, or it can be automatically saved to a locally accessible file system, to a raw device, or to a remote system accessible over network.[1][2]
Internals
In the event of a kernel crash, kdump preserves system consistency by
kernel image built specifically for that purpose, or the primary kernel image can be reused on architectures that support relocatable kernels.[1][3][4][5]
: 5–6
The contents of main memory (
In addition to the functionality that is part of the Linux kernel, additional
Linux distributions provide additional utilities that simplify the configuration of kdump's operation, including the setup of automated saving of memory dump files.[6][7][8] Created memory dump files can be analyzed using the GNU Debugger (gdb), or by using Red Hat's dedicated crash utility.[9][10]
History
kdump functionality, together with kexec, was merged into the
Linux kernel mainline in kernel version 2.6.13, which was released on August 29, 2005.[11]
See also
- debugfs – a Linux kernel's RAM-based file system specifically designed for debugging purposes
- kdump (BSD)– a BSD utility for viewing trace files generated by the ktrace utility
- Linux kernel oops – a potentially non-fatal deviation from correct behavior of the Linux kernel
- ProcDump – a utility for creating core dumps of applications based on performance triggers
References
- ^ a b c d Jonathan Corbet (October 27, 2004). "Crash dumps with kexec". LWN.net. Retrieved August 9, 2014.
- ^ "13.2 About Kdump (Chapter 13: Support Diagnostic Tools)". Oracle Corporation. 2012. Retrieved August 9, 2014.
- ^ a b c Vivek Goyal; Eric W. Biederman; Hariprasad Nellitheertha (June 14, 2006). "Kdump: A Kexec-based Kernel Crash Dumping Mechanism" (PDF). lse.sourceforge.net. Retrieved August 9, 2014.
- ^ a b c "Linux kernel documentation: Documentation/kdump/kdump.txt". kernel.org. August 12, 2013. Retrieved August 9, 2014.
- ^ Takashi Iwai (July 26, 2006). "Debugging using Kdump" (PDF). SUSE. Retrieved August 9, 2014.
- ^ "29.2.2. Using the Kernel Dump Configuration Utility (Red Hat Enterprise Linux 6 Deployment Guide)". Red Hat. Retrieved August 9, 2014.
- ^ "kexec and kdump: Basic kdump Configuration (System Analysis and Tuning Guide)". SUSE. April 25, 2014. Retrieved August 9, 2014.
- Fedora. April 9, 2014. Retrieved August 9, 2014.
- ^ David Anderson (August 27, 2010). "White Paper: Red Hat Crash Utility". Red Hat. Retrieved August 9, 2014.
- ^ "kexec and kdump: Analyzing the Crash Dump (System Analysis and Tuning Guide)". SUSE. April 25, 2014. Retrieved August 9, 2014.
- ^ "Linux kernel 2.6.13". kernelnewbies.org. August 29, 2005. Retrieved August 9, 2014.
External links
- Official website
- Kdump, a Kexec-based Kernel Crash Dumping Mechanism, IBM, 2005, by Vivek Goyal, Eric W. Biederman, and Hariprasad Nellitheertha
- Using Kdump for examining Linux kernel crashes, June 21, 2017, by Pratyush Anand
- Kdump: Usage and internals, Red Hat, June 2017, by Pratyush Anand and Dave Young