LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 922|回复: 1

怎样结束 D 状态的进程?

[复制链接]
发表于 2006-6-9 14:31:16 | 显示全部楼层 |阅读模式
比如 NFS 出错,客户端的 mount 的文件系统就会有问题,如果运行 df,这个进程的状态就是 D(ps: Uninterruptible sleep (usually IO))。

今天运行 vim 也是,突然不响应了,关闭窗口,重新编辑,结果第二个 vim 也变成了 D 状态,rm .file.sw* 也是。

这些进程都无法 kill,即使使用 kill -9

请问有什么办法终止这些进程?

谢谢
发表于 2006-6-10 06:40:49 | 显示全部楼层
Post by Chowroc
比如 NFS 出错,客户端的 mount 的文件系统就会有问题,如果运行 df,这个进程的状态就是 D(ps: Uninterruptible sleep (usually IO))。

今天运行 vim 也是,突然不响应了,关闭窗口,重新编辑,结果第二个 vim 也变成了 D 状态,rm .file.sw* 也是。

这些进程都无法 kill,即使使用 kill -9

请问有什么办法终止这些进程?

谢谢
Not too much you can do other than reboot. I suggest you add soft mount to the nfs exports to avoid hanging. For the vim issue you had, its probably the local device vim was trying to access is not available, so it dropped itself in a system call trap. You can try unload the module and see if it will release the device, such as floppy.. but you probably still have to reboot. This really shouldn't happen very often, otherwise, you should submit a bug to the kernel team.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表