内核恐慌中“不同步”是什么意思?

时间:2013-10-11 01:35:04

标签: linux kernel panic

内核恐慌消息中的“不同步”是什么意思?

我已经读过,这意味着内核成功地将数据同步到磁盘,但我不确定。

一个典型的上下文是:“内核恐慌 - 不同步 - 试图杀死init!”

2 个答案:

答案 0 :(得分:6)

not syncing表示设备缓冲区尚未刷新到实际设备。我们这样做是为了防止数据损坏。

如果我们同步内核恐慌,我们可能会给用户带来很多麻烦。这是因为内核恐慌可能发生在任何地方,它可能会对其他模块和内核部分造成副作用。

答案 1 :(得分:0)

根据我的理解,内核恐慌有很多原因。我只是写下我理解的内容

在案件中

Freeing unused kernel memory: 96k init

Kernel panic - not syncing: No init found. Try passing init=option to kernel

常见原因是根文件系统映像(无论是ramdisk,Flash还是NFS root) 文件系统)does not have the supporting libraries for the binaries that the kernel is trying to execute

这意味着rootfs中可能不存在动态加载程序,因此当内核尝试执行某些程序时,它在rootfs中找不到所需的动态库。这里kernel try to sycn (i.e data to be written to the underlying filesystems) with your hard disk which having rootfs。当内核看到没有动态加载器时,内核会出现恐慌并抱怨不同步。