Site icon New Generation Enterprise Linux

Stop guessing why your process is stuck in uninterruptible sleep

Process & Resource Monitoring (Top/Htop/Ps/Systemd)

Stop guessing why your process is stuck in uninterruptible sleep

đź§© The Challenge

You ever see a process sitting there in a D state, chewing on your load average, and flat-out refusing to die no matter how many times you throw a kill -9 at it? It’s infuriating when you know it’s hung on I/O but you can’t tell which drive or mount point is actually causing the grief.

đź’ˇ The Fix

Dig into the process wait channel to see exactly where the kernel is stuck waiting for a response. It saves you from rebooting the whole box just to clear a single stale NFS handle.

ps -eo pid,state,wchan:20,comm | grep -v 'S\|R'

⚙️ Why It Works

That wchan column shows the kernel function the process is executing, which usually points directly at the hardware or network subsystem holding things up. Finding out you’re stuck on an nfs_wait_bit_killable instead of a local disk controller is the difference between a quick umount -f and a panic.

🚀 Pro-Tip: Pipe that into watch if you want to see the wait channel flicker as the process tries to recover.

Linux Tips & Tricks | © ngelinux.com | 9/28/2026

0 0 votes
Article Rating
Exit mobile version