3/7/2024 0 Comments Unix process state# ps -eo ppid,pid,user,stat,pcpu,comm,wchan:32 | grep " D" Processes that are in uninterruptible sleep can be determined via the fourth column which would then show a D. This includes also processes which are interruptible. 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. ps -eo ppid,pid,user,stat,pcpu,comm,wchan:32 There are two ways to find more about the processes in D state.ฤก. Restarting the NFS server would resolve this particular issue. In the example above, the NFS server had failed while the client still had an active mount to it. Make sure your firmware and kernel disk drivers are updated. If performance becomes an issue, you may need to check the health of your disks. It is normal to see processes in a "D" state when the server performs I/O intensive operations. You can only clear them by rebooting the server or waiting for the I/O to respond. As the name implies, they are uninterruptible. You cannot kill "D" state processes, even with SIGKILL or kill -9. The vmstat and ps will not agree on the number of processes in a "D" state, so don't be too concerned. The vmstat command also shows the current processes that are "blocked" or waiting on I/O. The ps command shows a "D" on processes in an uninterruptible sleep state. Processes in a "D" or uninterruptible sleep state are usually waiting on I/O.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |