Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    top shows sleeping process occupying 100% CPU


    I found there was a user process occupying 100% CPU from top, but it's in "S"(sleeping) instead of "R"(running).
    The process is a Python program from a valid user.
    What could be the problem?
    Thanks!

  2. #2
    top output:

    top - 10:07:54 up 40 days, 16:52, 1 user, load average: 1.07, 1.12, 1.06
    Tasks: 165 total, 1 running, 164 sleeping, 0 stopped, 0 zombie
    Cpu(s): 12.5%us, 0.0%sy, 0.0%ni, 87.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
    Mem: 66011616k total, 57404440k used, 8607176k free, 291796k buffers
    Swap: 2096440k total, 160k used, 2096280k free, 50189492k cached

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    6313 user1 15 0 6343m 5.8g 1924 S 100.0 9.2 9473:09 cufflinks
    9568 root 15 0 12744 1140 808 R 0.3 0.0 0:00.19 top

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    13,959
    This is not unexpected. Note that 87.5% of your CPU cycles are in an "idle" state (87.5%id). So, only 12.5% of your cpu is in use in reality.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •