Groups
Sign in
Groups
psutil
Conversations
About
Send feedback
Help
Get the average CPU load (per core)
31 views
Skip to first unread message
George Papathanail
unread,
Jan 25, 2023, 10:26:28 AM
1/25/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to psutil
Hello everyone,
I am trying to implement a script in order to get the average per core utilization.
Is it possible to do this with the psutil?
Now I am using the psutil.cpu_percent(interval=1,percpu=True) but I want the average load.
Thank you!
Giampaolo Rodola'
unread,
Jan 25, 2023, 10:27:54 AM
1/25/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to psutil
psutil.getloadavg() is your friend:
https://psutil.readthedocs.io/en/latest/#psutil.getloadavg
George Papathanail
unread,
Jan 26, 2023, 8:09:10 AM
1/26/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to psutil
I saw this, but I don't see "the percpu argument", can I use this?
Reply all
Reply to author
Forward
0 new messages