user3064136
user3064136

Reputation: 99

How does linux kill D status process during reboot?

I know ths D status processes is uninterruptable sleep processes. 

Many people say to kill D status processes is to reboot the system. But how does reboot operation can kill the D status processes?

I find "init 0" will "kill -9 " all of the processes at last. But "kill -9 " can not kill D status process.

Someone tell me how?

Upvotes: 9

Views: 2877

Answers (2)

Yort
Yort

Reputation: 349

I use the yum update command to kill the D state process.

Upvotes: -1

jim mcnamara
jim mcnamara

Reputation: 16389

It does not kill them at all. Those processes in D state will not respond to any signal. kill generates signals -- they cannot be delivered to these processes. So, no kill.

The loss of process context when the kernel stops running allows nothing to persist, processes are kernel objects. The state D processes become history at that point.

If you see this often it usually means some kind of hardware problem, like a cdrom/DVD device. The D state means the process is blocking on some uninterruptable operation on a device.

This is a good question!

Upvotes: 9

Related Questions