Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

"python3" process by "Nobody" using up 30-50% CPU constantly - Help identifying root cause.

Featured Replies

Hi all, 

since a few days ago I saw that the power consumption has gone up by ~20W for my idle Unraid server (6.12.9). I have not made any changes to the server for a few weeks (apart from regular docker updates if available), and I cannot identify a reason why this has suddenly happened. 

When checking the system with "top" I can see that a "python3" command by the user "nobody" is consistently using around 30-50% CPU (see also attached image). I cannot identify any docker updates that went hand in hand with it so I do not think it was a docker update or plugin update that led to this. 

My server is a

Intel® Core™ i3-10300 CPU @ 3.70GHz

ASUSTeK COMPUTER INC. TUF GAMING B560M-PLUS WIFI , Version Rev 1.xx

Is there any way to find out where this python3 command originates from? It is really driving up my power consumption and I need to get this sorted out. If any logs would help, please let me know which ones would be helpful or if there is an easy way for me to check. 

THanks in advance for any help.
 

Screenshot 2024-05-20 at 4.52.09 PM.png

Solved by MAM59

  • Community Expert


 

lsof -p 27139



You can find the exe easily by these ways, just try it yourself.

https://stackoverflow.com/questions/606041/how-do-i-get-the-path-of-a-process-in-unix-linux
 

ll /proc/<PID>/exe

pwdx <PID>

lsof -p <PID> | grep cwd


since we know the pid:

27139 we can use other commands to get that data. If i'm understanding you correctly yo want the execution path:

try 
readlink -f /proc/27139/exe
pwdx 27139

 

  • Community Expert
  • Solution

The "path to the exe" won't be very helpful, because python is an interpreter so knowing WHERE python is located is not sufficient.

 

You need to find the commanline arguments of that python task to see which script it is executing.

 

You can find this out by issuing:

 

ps -axf | grep python

 

Sample:

root@F:~# ps axf | grep python
22554 pts/2    S+     0:00          \_ grep python
19645 ?        Ssl    7:08          \_ python3 -m homeassistant --config /config
29547 ?        Ssl    0:07      |   \_ python3 /app/calibre-web/cps.py
19031 ?        S      0:04      \_ /usr/bin/python3 /usr/bin/websockify -D --web=/usr/share/novnc/ --cert=/etc/ssl/novnc.pem 8080 localhost:5900
23412 ?        S      0:01          \_ /usr/bin/python3 /usr/bin/websockify -D --web=/usr/share/novnc/ --cert=/etc/ssl/novnc.pem 8080 localhost:5900

here several pythons are working at the same time, so compare the pid (first number) to the one you have seen in top.

 

  • 2 weeks later...
  • Author

Thanks both of you. MAM59 your solution worked smoothly and it was Bazaar going a little crazy. After correcting my settings it is back to normal levels :). 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.