我曾经听到这么一个故事: 一个年轻的程序员问一个老程序员(一个比较牛逼的公司的CTO) 年轻程序员: 你为什么这么牛X., 就好像没有你不会的。老程序员: 积累的。年轻程序员: 怎么才能积累到您的程度呢。我每天都在积累。但是似乎都没有感觉到进步。老程序员: 我从20岁开始做到了一件事情,直到今天,而且尽可能地保证不间断。年轻程序员: 到底是什么? 老程序员: 我每天保证自己有2个小时在学习新的东西。

kdump

上一篇 / 下一篇  2011-03-09 17:58:47

This is the short version of how kdump works: When the normal kernel (the 'boot' kernel) is booted, it reserves a part of system RAM it will normally never touch. This reservation is controlled by the crashkernel kernel commandline option.

当boot kernel 启动后,会预留一部分的内存,这些预留的内存被crashkernel 控制


During system startup an init script. loads another kernel (the 'kdump' kernel) into the reserved space. When a panic happens, control is transferred from the boot kernel to the kdump kernel. The kdump kernel boots up, using only the RAM reserved for it. It writes out a crash dump of the rest of RAM (the boot kernel's address space). Then it preforms a reboot, which will reset the machine and bring the boot kernel back up.

dump kernel 启动后,写出crash dump,然后重启,重新设置机器,然后带领boot kernel重新启动。


The main kernel that will be booted and run (until a crash happens, or new kernel is explicitly booted through kexec) is called the boot kernel. The only thing special about the boot kernel is that it needs a commandline option to prepare it for kdump/kexec use.


The kernel that gets booted when a crash happens, which performs the crash dump, is called the kdump kernel. This kernel needs to be built with support for being a kdump kernel, but that does not preclude its being used as a normal boot kernel.

kernel会重新启动,当crash 发生时,这个会执行故障转存的kernel 被称为kdump kernel.


TAG:

 

评分:0

我来说两句

Open Toolbar