Thursday, February 23, 2017
What is D state process and how to check ? And what is the impact of it ?
To check the d state prcoess
#ps axl | awk '$10 ~ /D/'
#ps -aux
D state occurs when the process is in uninterruptible sleep. This state is bad, because you can't do anything with the process in D state. Fortunately, process normally remains in such state not for so long. But if you have a heap of D state processes then some logic in system is disrupt. If that is happening, the very important thing is to determine where this unlucky sleep occurs. It is easy to do with ps command with l option. WCHAN column shows the name of the kernel function where the process is sleeping:
State D means uninterruptible sleep, which usually means IO. When the IO completes the process will change state. If you think a specific process is hung you can truss or strace it to see what it is doing. i.e.
strace -p <pid of process>
If it does nothing for a long time it is more than likely stuck.
It may nothing to do with which disk folder.
The D state process effect cpu/processor scheduling.
Theoretically, D state still occupying cpu/processor resources.
So if too many D state processes, the cpus are busy on scheduling and re-scheduling (that is why we see high system load).
So the result could be unpredictable.
How to clear D-state process ?
D-state process is nothing but uninterruptible sleep. When doing IO, the process is locked as uninterruptible so the data will not be corrupted. When IO finished, the process will not be D-sate
But for some reason the IO could not be finished or hung, then the process may stick in D. in this cases we need to reboot the server to clear D-state process.
Labels:
LINUX
Subscribe to:
Post Comments (Atom)
Thanks a lot for this useful post. Keep Sharing this kind of information.
ReplyDeleteLinux Course in Chennai | Linux Training in Chennai
Very informative article, Which you have shared here about the D state process. After reading your article I got very much information and it resolved many of my doubts. If anyone interested to know more about the PS Command in Linux, Visit linoxide
ReplyDeleteTo Build Your Careers with JAVA...Visit Here and Explore it...
ReplyDeleteJava training in chennai | Java training in annanagar | Java training in omr | Java training in porur | Java training in tambaram | Java training in velachery
This is an excellent tip especially to those new to the blogosphere. Short however exact data… Thank you for sharing this one. An unquestionable requirement read live post!
ReplyDeleteyoutube abone satın al
ReplyDeletetrendyol indirim kodu
cami avizesi
cami avizeleri
avize cami
no deposit bonus forex 2021
takipçi satın al
takipçi satın al
takipçi satın al
takipcialdim.com/tiktok-takipci-satin-al/
instagram beğeni satın al
instagram beğeni satın al
btcturk
tiktok izlenme satın al
sms onay
youtube izlenme satın al
no deposit bonus forex 2021
tiktok jeton hilesi
tiktok beğeni satın al
binance
takipçi satın al
uc satın al
sms onay
sms onay
tiktok takipçi satın al
tiktok beğeni satın al
twitter takipçi satın al
trend topic satın al
youtube abone satın al
instagram beğeni satın al
tiktok beğeni satın al
twitter takipçi satın al
trend topic satın al
youtube abone satın al
takipcialdim.com/instagram-begeni-satin-al/
perde modelleri
instagram takipçi satın al
instagram takipçi satın al
takipçi satın al
instagram takipçi satın al
betboo
marsbahis
sultanbet
ucuz takipçi
ReplyDeleteucuz takipçi
tiktok izlenme satın al
binance güvenilir mi
okex güvenilir mi
paribu güvenilir mi
bitexen güvenilir mi
coinbase güvenilir mi
Smm panel
ReplyDeleteSmm Panel
iş ilanları
instagram takipçi satın al
hirdavatciburada.com
beyazesyateknikservisi.com.tr
servis
tiktok jeton hilesi
Adobe XD 54.0.12 Crack is a powerful, collaborative, and easy-to-use platform that helps you and your team create designs for websites. Adobe Experience Design CC Crack
ReplyDeleteNo worries if you have failed in love think that he or she wasn't the right person for you. Love your life and love yourself. Love Failure Quotes
ReplyDelete