This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: How to kick process out of uninterruptible sleep?
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: riccardo dot murri at uzh dot ch
- Cc: systemtap at sourceware dot org
- Date: Wed, 09 Nov 2016 12:00:32 -0500
- Subject: Re: How to kick process out of uninterruptible sleep?
- Authentication-results: sourceware.org; auth=none
- References: <nvvc8m$g2a$1@blaine.gmane.org>
Riccardo Murri <riccardo.murri@uzh.ch> writes:
> [...] I have a server where a process got stuck in "uninterruptible
> sleep" during NFS access. [...] `ps -O wchan` shows it's stuck in
> `nfs_wait_bit_uninterruptible` [...]
AFAIK, a "kill -9" nukes such processes from userspace. From
a systemtap probe in process context, you can call
raise(9);
to kill the *current* task the same way, or
system(sprintf("kill -9 %d", pid));
to kill any other process (via userspace kill -9).
- FChE