Processes in an Uninterruptible Sleep (D) State
This document (7002725) is provided subject to the disclaimer at the end of this document.
SUSE Linux Enterprise Server 10
SUSE Linux Enterprise Server 9
Novell Open Enterprise Server 11 (OES 11) Linux
Novell Open Enterprise Server 2 (OES 2)
Novell Open Enterprise Server 1 (OES 1)
#==[ Checking Health of Processes ]=================#
# egrep " D| Z" /var/log/nts_x64-7_090210_1117/psout.vNO31896
root 707 23884 0.0 0.0 0 0 Z 00:00:00 [ncs-resourced.p]<defunct>
root 3816 2949 0.0 0.0 6012 656 D 00:02:52 hald-addon-storage
root 23830 1 0.0 0.0 0 0 D 00:01:03 [MPK Thread]
root 23831 1 0.0 0.0 0 0 D 00:00:09 [MPK Thread]
root 23839 1 0.0 0.0 0 0 D 00:00:07 [MPK Thread]
root 23844 1 0.0 0.0 0 0 D 00:00:00 [MPK Thread]
root 23884 1 0.0 0.1 32348 4240 D 00:00:00 /usr/bin/python /opt/novell/ncs/bin/ncs-resourced.py /etc/opt/novell/ncs
If performance becomes an issue, you may need to check the health of your disks. Make sure your firmware and kernel disk drivers are updated.
In the example above, there is heavy disk activity shown in the "io" columns and the server is currently swapping to disk. The example more likely represents a memory issue, rather than a disk I/O issue.
There are two ways to find more about the processes in D state.
1. ps -eo ppid,pid,user,stat,pcpu,comm,wchan:32
This prints a list of all processes where in the last column either a '-' is displayed when the process is running or the name of the kernel function in which the process is sleeping if the process is currently sleeping. This includes also processes which are interruptible. Processes that are in uninterruptible sleep can be determined via the fourth column which would then show a D.
2. echo w > /proc/sysrq-trigger
This command produces a report and a list of all processes in D state and a full kernel stack trace to /var/log/messages. This shows much more information than the first option described above.
This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7002725
- Creation Date:21-FEB-09
- Modified Date:08-NOV-12
- NovellOpen Enterprise Server
- SUSESUSE Linux Enterprise DesktopSUSE Linux Enterprise Server
Did this document solve your problem? Provide Feedback