Easy way to know, which command/process is sleeping and in which kernel function using WCHAN?..

I quite oftenly use below command to know the same..

# ps -eopid,tt,user,fname,tmout,f,wchan

The important bit here is “WCHAN” field and the “COMMAND” field.. “WCHAN” points to the “sleeping function” in kernel mode..

*********** Truncated

Hope this helps!!

Leave a Reply

Your email address will not be published. Required fields are marked *