This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to kick process out of uninterruptible sleep?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]