System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

tru64 / how to kill an uninterruptible sleeping process

SJO EGGER
Regular Advisor

tru64 / how to kill an uninterruptible sleeping process

hi

I have an uninterruptible sleeping process. is it posible to kill this prozess or ist a reboot the only way?

987604 pts/1 U + 0:00.01 scu -f /dev/tape/tape0

OS: Tru64 V5.1B-2

thank you
roland
6 REPLIES
Venkatesh BL
Honored Contributor

Re: tru64 / how to kill an uninterruptible sleeping process

There is no other easy way to kill a process like this. I guess 'reboot' is the way to go.
Johan Brusche
Honored Contributor

Re: tru64 / how to kill an uninterruptible sleeping process


What is the output of "ps -o pid,sig,wchan,state,cmd -p 987604" ?
The "wchan" migth tell us what it is waiting on. Maybe just putting the drive online with a cartdrige would undo the wait.

You could could check the stack of the process as follows:

kdbx -k /vmunix
(kdbx)set $pid=987604
(kdbx)where

Anyway, If you cannot satisfy what the process is waiting for, the only way out is a reboot.

_Johan_

_JB_
SJO EGGER
Regular Advisor

Re: tru64 / how to kill an uninterruptible sleeping process

i think we have to reboot. wchan brings a "*" back.

thanks you
roland
Mahesh_20
Advisor

Re: tru64 / how to kill an uninterruptible sleeping process

Hello,

Sometime back, I had researched following way to kill a process. Please try in your scenario and let me know.

Thanks and Best Regards.

Mahesh R. Gune

=============================================

# ps aux
Find the 'pid' of the process you want killed.

# kdbx -k /vmunix
dbx version 3.11.10
Type 'help' for help.

stopped at [thread_block:2097 ,0xfffffc00002a86c0]
Source not available
warning: Files compiled -g3: parameter values probably wrong

(kdbx) set $pid=
for example: (kdbx) set $pid=777

(kdbx) p (*(struct super_task *)thread.task) .proc.p_stat
3
(kdbx) a (*(struct super_task *)thread.task) .proc.p_stat=0
0
(kdbx) u
(kdbx) exit

Ravi_8
Honored Contributor

Re: tru64 / how to kill an uninterruptible sleeping process

Hi

You need to reboot, it's the only way to kill uninterruptable process
never give up
Ralf Puchner
Honored Contributor

Re: tru64 / how to kill an uninterruptible sleeping process

Mahesh,

maybe it is time to analyze what you have done with your kdbx command: If doing what you have suggested leads not to a killed process, it will only hide it from the process table nothing else..... ;-)

Help() { FirstReadManual(urgently); Go_to_it;; }