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.

26 comments:

  1. Thanks a lot for this useful post. Keep Sharing this kind of information.

    Linux Course in Chennai | Linux Training in Chennai

    ReplyDelete
    Replies
    1. Great Article android based projects

      Java Training in Chennai

      Project Center in Chennai

      Java Training in Chennai

      projects for cse

      The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

      Delete
  2. 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

    ReplyDelete
  3. 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!

    ReplyDelete
  4. wonderful article contains lot of valuable information. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.
    AWS course in Chennai

    ReplyDelete
  5. This is very significant, and yet necessary towards just click this unique backlink: https://onohosting.com/

    ReplyDelete
  6. Ucuz, kaliteli ve organik sosyal medya hizmetleri satın almak için Ravje Medyayı tercih edebilir ve sosyal medya hesaplarını hızla büyütebilirsin. Ravje Medya ile sosyal medya hesaplarını organik ve gerçek kişiler ile geliştirebilir, kişisel ya da ticari hesapların için Ravje Medyayı tercih edebilirsin. Ravje Medya internet sitesine giriş yapmak için hemen tıkla: www.ravje.com

    İnstagram takipçi satın almak için Ravje Medya hizmetlerini tercih edebilir, güvenilir ve gerçek takipçilere Ravje Medya ile ulaşabilirsin. İnstagram takipçi satın almak artık Ravje Medya ile oldukça güvenilir. Hemen instagram takipçi satın almak için Ravje Medyanın ilgili sayfasını ziyaret et: instagram takipçi satın al

    Tiktok takipçi satın al istiyorsan tercihini Ravje Medya yap! Ravje Medya uzman kadrosu ve profesyonel ekibi ile sizlere Tiktok takipçi satın alma hizmetide sunmaktadır. Tiktok takipçi satın almak için hemen tıkla: tiktok takipçi satın al

    İnstagram beğeni satın almak için Ravje medya instagram beğeni satın al sayfasına giriş yap, hızlı ve kaliteli instagram beğeni satın al: instagram beğeni satın al

    Youtube izlenme satın al sayfası ile hemen youtube izlenme satın al! Ravje medya kalitesi ile hemen youtube izlenme satın almak için tıklayın: youtube izlenme satın al

    Twitter takipçi satın almak istiyorsan Ravje medya twitter takipçi satın al sayfasına tıkla, Ravje medya güvencesi ile organik twitter takipçi satın al: twitter takipçi satın al

    ReplyDelete
  7. your content is very inspiring and appriciating I really like it please visit my site for Satta King Result also check Satta king 24X7 and also check sattaking and for quick result check my site Satta matka and for super fast result check Satta king

    ReplyDelete





  8. I simply stumbled upon your weblog and desired to say that I have really enjoyed surfing your blog articles.
    Positive site, where did u come up with the info on this uploading?
    yorkie puppies for sale
    teacup yorkie puppies for sale
    yorkies for sale
    yorkie for sale
    yorkshire terrier for sale
    yorkie puppy for sale
    teacup yorkies for sale
    teacup yorkie for sale
    yorkie teacup for sale


    ReplyDelete

  9. This Blog Is really informative for us. Thanks For sharing this blog.
    Hii this is my first time visiting this web page this blog is really informative for me.
    teacup chihuahua for sale
    chihuahua puppies for sale
    teacup chihuahua puppies for sale
    chihuahua for sale
    teacup chihuahuas for sale
    tea cup chihuahua for sale
    chihuahua for sale near me
    applehead chihuahua for sale
    apple head chihuahua for sale
    https://www.yorkiespuppiessale.com/




    ReplyDelete


  10. Heya i'm for the first time here. I came across this board and I find
    It truly useful & it helped me out much. I hope to give something back
    and help others like you aided me.
    yorkies for sale near me
    yorkie for sale near me
    yorkie puppies near me
    yorkies near me
    yorkshire terrier for sale
    yorkie puppy for sale near me
    yorkie puppies for sale near me
    teacup puppies for sale near me
    teacup yorkie for sale
    https://www.chihuahuapuppiesforsale1.com/


    ReplyDelete


  11. Thanks very much for sharing an amazing content with us. we really do appreciate.
    teacup yorkies for sale
    teacup yorkies for sale near me
    yorkie teacup for sale
    yorkie puppies for sale
    yorkie puppy for sale
    teacup yorkie for sale
    yorkie for sale near me
    teacup yorkie near me
    teacup yorkie for sale near me
    Nice Post..Thanks for sharing this useful information! This is really interesting information to read.
    https://www.newdaypuppies.com/

    ReplyDelete






  12. https://www.myppuphouse.com/
    https://www.yorkiespuppiessale.com/
    https://www.myppuphouse.com/teacup-maltese-puppies-for-sale/
    https://www.myppuphouse.com/teacup-maltipoo-puppies-for-sale/
    https://www.myppuphouse.com/teacup-pomeranian-puppies-for-sale/
    https://www.myppuphouse.com/teacup-poodle-puppies-for-sale/
    https://www.myppuphouse.com/teacup-shih-tzu-puppies-for-sale/
    https://www.myppuphouse.com/teacup-yorkie-for-sale/
    https://www.newdaypuppies.com/





    ReplyDelete
  13. İnstagram takipçi satın al! İnstagram takipçi sitesi ile takipçi satın al sende sosyal medyada fenomen olmaya bir adım at. Sende hemen instagram takipçi satın almak istiyorsan tıkla:

    1- takipçi satın al

    2- takipçi satın al

    3- takipçi satın al

    ReplyDelete