LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-13-2005, 03:57 AM   #1
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
process really strange.


look at my process.


[root@localhost root]# ps -aux | grep dd
Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root 2835 0.0 0.2 1824 516 pts0 D 14:05 0:00 dd conv noerror if /dev/hdc of /root/mandrake_cd1.iso
root 2925 0.0 0.2 1936 632 pts4 R 14:13 0:00 grep dd
[root@localhost root]# kill -SIGKILL 2835
[root@localhost root]# kill -SIGKILL 2835
[root@localhost root]# kill -SIGKILL 2835
[root@localhost root]# kill -SIGKILL 2835
[root@localhost root]# kill -SIGKILL 2835
[root@localhost root]# kill -9 2835
[root@localhost root]# kill -9 2835
[root@localhost root]# kill -9 2835
[root@localhost root]# kill -9 2835
[root@localhost root]# kill -9 2835
[root@localhost root]# kill -9 2835
[root@localhost root]# kill -9 2835
[root@localhost root]# kill -9 2835
[root@localhost root]#
This process takes a high number of strokes to kill???
why does this much kill signal??
can u figure this out?
 
Old 10-13-2005, 04:27 AM   #2
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
This process was probably writing to the disk at the time you tried to kill it - the key here is the D flag from ps:

A quote from the man page:
Quote:
PROCESS STATE CODES
Here are the different values that the s, stat and state output specifiers
(header "STAT" or "S") will display to describe the state of a process.
D Uninterruptible sleep (usually IO)
R Running or runnable (on run queue)
S Interruptible sleep (waiting for an event to complete)
T Stopped, either by a job control signal or because it is being traced.
W paging (not valid since the 2.6.xx kernel)
X dead (should never be seen)
Z Defunct ("zombie") process, terminated but not reaped by its parent.
As you can see, the D stands for an uninterruptible sleep, in this case probably caused by IO.

The repeated signal sending probably didn't help at all, it just took a long time for the uninterruptible sleep to end and the first signal to be received.

So, see the man page for ps for more details.
 
Old 10-13-2005, 04:56 AM   #3
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
yeah i understand thanks.
is there any way to suddenly kill this kind of "D Uninterruptible sleep (usually IO"?
 
Old 10-13-2005, 10:57 AM   #4
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
Nope - it's uninterruptible.
 
Old 01-22-2006, 10:17 PM   #5
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
I always logged in to this kind of process hanging problem.So it continuously running.There should be a key u know to off the process even if the process is uninterruptible.
 
Old 01-26-2006, 09:33 AM   #6
subratabera
LQ Newbie
 
Registered: Jan 2006
Posts: 17

Rep: Reputation: 0
I am also facing a same kind of problem. I have a pppd process with "Ds -- Disk Sleep" process status. Its parent is init. Is there any way to kill this process without restarting my computer. Please help...
 
Old 01-26-2006, 07:13 PM   #7
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
If it's in D state it's completely unkillable. It may be accessing disk DMA buffers or other hardware dependent resources. Sudden termination might cause thise buffers to become corrupted. if you frequently get processes stuck in the D state reading to/from the disk you should look into the possibility that your disk is going bad, as this should not happen.
 
Old 01-27-2006, 06:23 AM   #8
magic_ghost
LQ Newbie
 
Registered: Jan 2006
Location: Oxford, England
Distribution: Mandrake 2006
Posts: 14

Rep: Reputation: 0
Could you not just stop it from running at startup?
 
Old 01-30-2006, 02:20 AM   #9
subratabera
LQ Newbie
 
Registered: Jan 2006
Posts: 17

Rep: Reputation: 0
No. This is pppd process which is stucking whenever I try to connect to the Internet. I can't avoid running this process. But whenever it get stuck, I have to reboot my PC to connect to Internet again. Is there a way to maually kill the pppd process with "Disk Sleep" status or is there a way to run the pppd process within another process (I mean shell), so that I can kill the shell to kill the stucked pppd process. Please help & sorry for my poor English...
 
Old 01-30-2006, 03:34 AM   #10
BenJoBoy
LQ Newbie
 
Registered: Nov 2005
Location: Sloveina
Distribution: Distro? What || how do you mean?
Posts: 4

Rep: Reputation: 0
hmmm, try ifdown first on the interface pppd is using to connect. or try some other pppoe deamon.
 
Old 01-30-2006, 04:15 AM   #11
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
To explain a little what the "uninterruptability" means.
Basically, the process is calling your system (kernel) to perform some action, typically related to IO (ie reading from/writing to disk, accessing a certain device like a modem, etc).
When the kernel is trying to perform the system call (ie actually handle the IO request), it sometimes needs to be uninterruptable. As posted already, a nice example would be when an interrupt of the kernel's routine would mess up your hardware (buffers, etc).

The bottomline is that you shouldn't interrupt this process at all. That's why they are made "uninterruptible".
If programs stay in this state a long time, then there's most likely a problem with using/accessing your hardware. For instance, your disk controller can be unresponsive (ie if the disk is going bad or was mounted the wrong way). Or your modem doesn't respond to the kernel's requests.
So, you should try looking at your system logs to see what exactly is going wrong and try to fix that. Killing an uninterruptible process isn't desirable and also impossible (except by a reboot).
 
Old 01-31-2006, 01:09 PM   #12
subratabera
LQ Newbie
 
Registered: Jan 2006
Posts: 17

Rep: Reputation: 0
Thankyou BenJoBoy & timmeke for your kind replies.
I am using kubuntu Linux 5.10. BenJoBoy can you please explain what are other ppp daemons are available in kubuntu Linux and also how to use them (especially ifdown & pppoe deamon).
 
Old 02-01-2006, 01:46 AM   #13
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
"ifdown" isn't a daemon. It's just a program you can use to check if a network interface is "down" (ie not up and running). "ifup" is it's counterpart.
 
Old 02-02-2006, 11:52 AM   #14
subratabera
LQ Newbie
 
Registered: Jan 2006
Posts: 17

Rep: Reputation: 0
Thanks for your reply timmeke.

Subrata Bera.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how a father process know which child process send the signal SIGCHLD icoming Programming 10 07-20-2010 07:26 AM
Strange issue about SuSE (installation process) Lechium SUSE / openSUSE 2 03-31-2005 03:00 PM
Strange process -:0 ugge Linux - General 3 03-04-2005 12:34 PM
Bash Scripting - child process affecting parent process mthaddon Linux - General 1 05-02-2004 01:19 PM
Strange Process Hamma Linux - Software 4 10-07-2003 06:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration