Date: Sun, 22 Dec 2024 14:34:01 -0800 From: Yuri <yuri@FreeBSD.org> To: Freebsd hackers list <freebsd-hackers@FreeBSD.org> Subject: How can the process be consuming significant CPU time and always have "nanslp" state? Message-ID: <c608bef0-0722-425d-9d12-ad036cefb97c@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------5XnjYgy0NUzYMj3SX2iT4p0X Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit I am running one long-running process that is always shown in ps(1) with WCPU between 50% and 400% and STATE=nanslp, like this: PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 61262 yuri 29 20 0 13G 5986M nanslp 2 161:47 85.55% python3.11 PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 61262 yuri 29 20 0 13G 5912M nanslp 5 164:25 121.84% python3.11 PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 61262 yuri 29 20 0 13G 5912M nanslp 2 164:52 158.78% python3.11 PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 61262 yuri 29 20 0 13G 5835M nanslp 4 172:58 234.43% python3.11 I sampled it hundreds of times, but STATE was always "nanslp". How can this be that the process is never in RUN or any other state, but it keeps running? Shouldn't STATE at least sometimes be RUN? Thanks, Yuri --------------5XnjYgy0NUzYMj3SX2iT4p0X Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body> <p><font face="monospace">I am running one long-running process that is always shown in ps(1) with WCPU between 50% and 400% and STATE=nanslp, like this:<br> </font></p> <p><font face="monospace"><br> </font></p> <p><font face="monospace"><span style="color:#000000;background-color:#ffffff;"> PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND </span><br> 61262 yuri 29 20 0 13G 5986M nanslp 2 161:47 85.55% python3.11<br> </font> <font face="monospace"><br> </font></p> <p><font face="monospace"><span style="color:#000000;background-color:#ffffff;"> PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND </span><br> 61262 yuri 29 20 0 13G 5912M nanslp 5 164:25 121.84% python3.11<br> </font> <font face="monospace"><br> </font></p> <p><font face="monospace"><span style="color:#000000;background-color:#ffffff;"> PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND </span><br> 61262 yuri 29 20 0 13G 5912M nanslp 2 164:52 158.78% python3.11<br> </font> <font face="monospace"><br> </font></p> <p><span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;"> PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND </span><br> 61262 yuri 29 20 0 13G 5835M nanslp 4 172:58 234.43% python3.11<br> <br> <br> </span></p> <p><font face="monospace">I sampled it hundreds of times, but STATE was always "nanslp".</font></p> <p><font face="monospace"><br> </font></p> <p><font face="monospace">How can this be that the process is never in RUN or any other state, but it keeps running?</font></p> <p><font face="monospace">Shouldn't STATE at least sometimes be RUN?</font></p> <p><font face="monospace"><br> </font></p> <p><font face="monospace"><br> </font></p> <p><font face="monospace">Thanks,</font></p> <p><font face="monospace">Yuri</font></p> <p><font face="monospace"><br> </font></p> </body> </html> --------------5XnjYgy0NUzYMj3SX2iT4p0X--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c608bef0-0722-425d-9d12-ad036cefb97c>