eul icon indicating copy to clipboard operation
eul copied to clipboard

CPU Usage pretty high on M1 Mac

Open Universumgames opened this issue 3 years ago β€’ 11 comments

It's not really a bug, but more an annoyance. The CPU usage of eul on my M1 Pro is pretty high with idling around 100% in the Activity Monitor (probably taking one full efficiency core?).

Screenshots Screenshot 2022-01-12 at 12 53 02

Context

  • eul version: v1.6.2
  • macOS version: 12.2
  • Device model: MacBook M1 Pro 16" 512 GB 16 GB

Debug Output Nothing interesting going on here, but if you wish so...

Terminal output of running eul for around 5 seconds and opening menu

` βš™οΈ loaded data from user defaults preference { "temperatureUnit" : "celius", "cpuMenuDisplay" : "usagePercentage", "fontDesign" : "default", "appearance" : "auto", "showCPUTopActivities" : true, "showRAMTopActivities" : true, "checkStatusItemVisibility" : true, "showIcon" : true, "textDisplay" : "compact", "networkRefreshRate" : 3, "upgradeMethod" : "autoUpdate", "language" : "en", "smcRefreshRate" : 5, "showNetworkTopActivities" : true } SMC init error unknown(kIOReturn: -536870206, SMCResult: 0) πŸ”‹ battery info 80 100 0 0 false false good acPower πŸ”‹ battery info 80 100 0 0 false false good acPower βš™οΈ loaded data from user defaults EulComponent { "activeComponents" : [ "CPU", "Memory", "Network", "Disk" ], "availableComponents" : [ "GPU", "Battery" ], "showComponents" : false } βš™οΈ loaded data from user defaults EulMenuComponent { "availableComponents" : [

], "activeComponents" : [ "CPU", "GPU", "Memory", "Network", "Battery", "Bluetooth", "Disk" ], "showComponents" : true } shell with ["system_profiler SPDisplaysDataType -xml"] βš™οΈ loaded data from user defaults componentConfig { "converted" : true, "configs" : [ { "diskSelection" : "", "showIcon" : true, "showGraph" : false, "networkPortSelection" : "", "component" : "CPU" }, { "showIcon" : true, "component" : "Battery", "diskSelection" : "", "showGraph" : false, "networkPortSelection" : "" }, { "showIcon" : true, "component" : "Network", "diskSelection" : "", "showGraph" : false, "networkPortSelection" : "" }, { "showIcon" : true, "component" : "Disk", "diskSelection" : "", "showGraph" : false, "networkPortSelection" : "" }, { "showIcon" : true, "component" : "GPU", "diskSelection" : "", "showGraph" : false, "networkPortSelection" : "" }, { "showIcon" : true, "component" : "Memory", "diskSelection" : "", "showGraph" : false, "networkPortSelection" : "" } ] } πŸ”‹ battery info 80 100 0 0 false false good acPower shell with ["networksetup -listnetworkserviceorder"] shell with ["ifconfig"] network services order [eul.Info.NetworkPort(port: Optional("USB 10/100/1000 LAN"), device: "en6"), eul.Info.NetworkPort(port: Optional("Wi-Fi"), device: "en0"), eul.Info.NetworkPort(port: Optional("Thunderbolt Bridge"), device: "bridge0")] network active interfaces ["en0", "awdl0", "llw0", "en6"] network current active interfaces NetworkPort(port: Optional("USB 10/100/1000 LAN"), device: "en6") shell with ["netstat -bI en6"] πŸ”΅πŸ¦· state update 5 shell with ["networksetup -listnetworkserviceorder"] shell with ["ifconfig"] network services order [eul.Info.NetworkPort(port: Optional("USB 10/100/1000 LAN"), device: "en6"), eul.Info.NetworkPort(port: Optional("Wi-Fi"), device: "en0"), eul.Info.NetworkPort(port: Optional("Thunderbolt Bridge"), device: "bridge0")] network active interfaces ["en0", "awdl0", "llw0", "en6"] network current active interfaces NetworkPort(port: Optional("USB 10/100/1000 LAN"), device: "en6") shell with ["netstat -bI en6"] πŸ”‹ battery info 80 100 0 0 false false good acPower shell with ["networksetup -listnetworkserviceorder"] shell with ["ifconfig"] network services order [eul.Info.NetworkPort(port: Optional("USB 10/100/1000 LAN"), device: "en6"), eul.Info.NetworkPort(port: Optional("Wi-Fi"), device: "en0"), eul.Info.NetworkPort(port: Optional("Thunderbolt Bridge"), device: "bridge0")] network active interfaces ["en0", "awdl0", "llw0", "en6"] network current active interfaces NetworkPort(port: Optional("USB 10/100/1000 LAN"), device: "en6") shell with ["netstat -bI en6"] shell with ["networksetup -listnetworkserviceorder"] shell with ["ifconfig"] network services order [eul.Info.NetworkPort(port: Optional("USB 10/100/1000 LAN"), device: "en6"), eul.Info.NetworkPort(port: Optional("Wi-Fi"), device: "en0"), eul.Info.NetworkPort(port: Optional("Thunderbolt Bridge"), device: "bridge0")] network active interfaces ["en0", "awdl0", "llw0", "en6"] network current active interfaces NetworkPort(port: Optional("USB 10/100/1000 LAN"), device: "en6") shell with ["netstat -bI en6"] πŸ”‹ battery info 80 100 0 0 false false good acPower shell with ["networksetup -listnetworkserviceorder"] shell with ["ifconfig"] network services order [eul.Info.NetworkPort(port: Optional("USB 10/100/1000 LAN"), device: "en6"), eul.Info.NetworkPort(port: Optional("Wi-Fi"), device: "en0"), eul.Info.NetworkPort(port: Optional("Thunderbolt Bridge"), device: "bridge0")] network active interfaces ["en0", "awdl0", "llw0", "en6"] network current active interfaces NetworkPort(port: Optional("USB 10/100/1000 LAN"), device: "en6") shell with ["netstat -bI en6"] πŸ”΅πŸ¦· connected devices [] shell pipe with ["top -l 0 -n 6 -stats pid,command,rsize -s 5 -orsize"] shell pipe with ["top -l 0 -u -n 5 -stats pid,cpu,command -s 5"] good to launch good to launch data received for ["top -l 0 -u -n 5 -stats pid,cpu,command -s 5"] CPU top is updating data received for ["top -l 0 -n 6 -stats pid,command,rsize -s 5 -orsize"] shell with ["ps -p 47432 -o comm="] shell with ["ps -p 47556 -o comm="] shell with ["ps -p 47544 -o comm="] shell with ["ps -p 381 -o comm="] shell with ["ps -p 92015 -o comm="] shell with ["ps -p 47621 -o comm="] shell with ["nettop -L 1 -P -x -J bytes_in,bytes_out"] βœ… status item is visible πŸ”‹ battery info 80 100 0 0 false false good acPower shell with ["networksetup -listnetworkserviceorder"] network top is updating shell with ["ifconfig"] network services order [eul.Info.NetworkPort(port: Optional("USB 10/100/1000 LAN"), device: "en6"), eul.Info.NetworkPort(port: Optional("Wi-Fi"), device: "en0"), eul.Info.NetworkPort(port: Optional("Thunderbolt Bridge"), device: "bridge0")] network active interfaces ["en0", "awdl0", "llw0", "en6"] network current active interfaces NetworkPort(port: Optional("USB 10/100/1000 LAN"), device: "en6") shell with ["netstat -bI en6"] data received for ["top -l 0 -n 6 -stats pid,command,rsize -s 5 -orsize"] data received for ["top -l 0 -u -n 5 -stats pid,cpu,command -s 5"] shell with ["ps -p 49336 -o comm="] shell with ["ps -p 47432 -o comm="] shell with ["ps -p 4276 -o comm="] shell with ["ps -p 47556 -o comm="] shell with ["ps -p 0 -o comm="] shell with ["ps -p 47544 -o comm="] shell with ["ps -p 94081 -o comm="] shell with ["ps -p 381 -o comm="] shell with ["ps -p 381 -o comm="] CPU top is updating shell with ["ps -p 92015 -o comm="] shell with ["ps -p 47621 -o comm="] shell with ["nettop -L 1 -P -x -J bytes_in,bytes_out"] shell with ["networksetup -listnetworkserviceorder"] network top is updating shell with ["ps -p 353 -o comm="] shell with ["ps -p 449 -o comm="] shell with ["ifconfig"] shell with ["ps -p 47314 -o comm="] shell with ["ps -p 47427 -o comm="] network services order [eul.Info.NetworkPort(port: Optional("USB 10/100/1000 LAN"), device: "en6"), eul.Info.NetworkPort(port: Optional("Wi-Fi"), device: "en0"), eul.Info.NetworkPort(port: Optional("Thunderbolt Bridge"), device: "bridge0")] network active interfaces ["en0", "awdl0", "llw0", "en6"] network current active interfaces NetworkPort(port: Optional("USB 10/100/1000 LAN"), device: "en6") shell with ["netstat -bI en6"] shell with ["ps -p 47429 -o comm="] shell with ["ps -p 47544 -o comm="] shell with ["ps -p 47560 -o comm="] πŸ”‹ battery info 80 100 0 0 false false good acPower shell with ["nettop -L 1 -P -x -J bytes_in,bytes_out"] shell with ["networksetup -listnetworkserviceorder"] network top is updating shell with ["ps -p 47331 -o comm="] shell with ["ifconfig"] shell with ["ps -p 47427 -o comm="] network services order [eul.Info.NetworkPort(port: Optional("USB 10/100/1000 LAN"), device: "en6"), eul.Info.NetworkPort(port: Optional("Wi-Fi"), device: "en0"), eul.Info.NetworkPort(port: Optional("Thunderbolt Bridge"), device: "bridge0")] network active interfaces ["en0", "awdl0", "llw0", "en6"] network current active interfaces NetworkPort(port: Optional("USB 10/100/1000 LAN"), device: "en6") shell with ["netstat -bI en6"] shell with ["ps -p 47429 -o comm="] shell with ["ps -p 47560 -o comm="] data received for ["top -l 0 -n 6 -stats pid,command,rsize -s 5 -orsize"] data received for ["top -l 0 -u -n 5 -stats pid,cpu,command -s 5"] shell with ["ps -p 49336 -o comm="] shell with ["ps -p 47432 -o comm="] shell with ["ps -p 4276 -o comm="] shell with ["ps -p 94081 -o comm="] shell with ["ps -p 47556 -o comm="] shell with ["ps -p 0 -o comm="] shell with ["ps -p 47544 -o comm="] shell with ["ps -p 381 -o comm="] shell with ["ps -p 381 -o comm="] CPU top is updating shell with ["ps -p 92015 -o comm="] shell with ["ps -p 47621 -o comm="] shell with ["nettop -L 1 -P -x -J bytes_in,bytes_out"] network top is updating shell with ["ps -p 353 -o comm="] shell with ["networksetup -listnetworkserviceorder"] shell with ["ps -p 47314 -o comm="] shell with ["ps -p 47427 -o comm="] shell with ["ifconfig"] shell with ["ps -p 47429 -o comm="] network services order [eul.Info.NetworkPort(port: Optional("USB 10/100/1000 LAN"), device: "en6"), eul.Info.NetworkPort(port: Optional("Wi-Fi"), device: "en0"), eul.Info.NetworkPort(port: Optional("Thunderbolt Bridge"), device: "bridge0")] network active interfaces ["en0", "awdl0", "llw0", "en6"] network current active interfaces NetworkPort(port: Optional("USB 10/100/1000 LAN"), device: "en6") shell with ["netstat -bI en6"] shell with ["ps -p 47544 -o comm="] shell with ["ps -p 47560 -o comm="] πŸ”‹ battery info 80 100 0 0 false false good acPower shell with ["nettop -L 1 -P -x -J bytes_in,bytes_out"] network top is updating shell with ["ps -p 449 -o comm="] shell with ["networksetup -listnetworkserviceorder"] shell with ["ps -p 47427 -o comm="] shell with ["ps -p 47429 -o comm="] shell with ["ifconfig"] network services order [eul.Info.NetworkPort(port: Optional("USB 10/100/1000 LAN"), device: "en6"), eul.Info.NetworkPort(port: Optional("Wi-Fi"), device: "en0"), eul.Info.NetworkPort(port: Optional("Thunderbolt Bridge"), device: "bridge0")] network active interfaces ["en0", "awdl0", "llw0", "en6"] network current active interfaces NetworkPort(port: Optional("USB 10/100/1000 LAN"), device: "en6") shell with ["netstat -bI en6"] shell with ["ps -p 47544 -o comm="] shell with ["ps -p 47560 -o comm="] data received for ["top -l 0 -u -n 5 -stats pid,cpu,command -s 5"] data received for ["top -l 0 -n 6 -stats pid,command,rsize -s 5 -orsize"] shell with ["ps -p 49336 -o comm="] shell with ["ps -p 47432 -o comm="]

shell with ["ps -p 4276 -o comm="] shell with ["ps -p 47556 -o comm="] shell with ["ps -p 94081 -o comm="] shell with ["ps -p 47544 -o comm="] shell with ["ps -p 0 -o comm="] shell with ["ps -p 381 -o comm="] shell with ["ps -p 381 -o comm="] shell with ["ps -p 92015 -o comm="] CPU top is updating shell with ["ps -p 47621 -o comm="] shell with ["nettop -L 1 -P -x -J bytes_in,bytes_out"] network top is updating shell with ["ps -p 353 -o comm="] shell with ["ps -p 449 -o comm="] shell with ["networksetup -listnetworkserviceorder"] shell with ["ps -p 47314 -o comm="] shell with ["ps -p 47331 -o comm="] shell with ["ifconfig"] shell with ["ps -p 47427 -o comm="] network services order [eul.Info.NetworkPort(port: Optional("USB 10/100/1000 LAN"), device: "en6"), eul.Info.NetworkPort(port: Optional("Wi-Fi"), device: "en0"), eul.Info.NetworkPort(port: Optional("Thunderbolt Bridge"), device: "bridge0")] network active interfaces ["en0", "awdl0", "llw0", "en6"] network current active interfaces NetworkPort(port: Optional("USB 10/100/1000 LAN"), device: "en6") shell with ["netstat -bI en6"] shell with ["ps -p 47429 -o comm="] shell with ["ps -p 47544 -o comm="] shell with ["ps -p 47560 -o comm="] πŸ”‹ battery info 80 100 0 0 false false good acPower data received fordata received for ["top -l 0 -u -n 5 -stats pid,cpu,command -s 5"] ["top -l 0 -n 6 -stats pid,command,rsize -s 5 -orsize"] shell with ["ps -p 49336 -o comm="] shell with ["ps -p 47432 -o comm="] shell with ["ps -p 47556 -o comm="] shell with ["ps -p 4276 -o comm="] shell with ["ps -p 47544 -o comm="] shell with ["ps -p 94081 -o comm="] shell with ["ps -p 381 -o comm="] shell with ["ps -p 92015 -o comm="] shell with ["ps -p 0 -o comm="] shell with ["ps -p 381 -o comm="] shell with ["ps -p 47621 -o comm="] CPU top is updating [shell with ["networksetup -listnetworkserviceorder"] shell with ["ifconfig"] network services order [eul.Info.NetworkPort(port: Optional("USB 10/100/1000 LAN"), device: "en6"), eul.Info.NetworkPort(port: Optional("Wi-Fi"), device: "en0"), eul.Info.NetworkPort(port: Optional("Thunderbolt Bridge"), device: "bridge0")] network active interfaces ["en0", "awdl0", "llw0", "en6"] network current active interfaces NetworkPort(port: Optional("USB 10/100/1000 LAN"), device: "en6") shell with ["netstat -bI en6"] `

Universumgames avatar Jan 12 '22 11:01 Universumgames

Update to cpu usage after apparently 6 hours (CPU time) or rather 3 hours realtime...

Screenshot 2022-01-12 at 15 24 31

Universumgames avatar Jan 12 '22 14:01 Universumgames

quitting and reopening the application decreases the CPU usage down to <5% when the menu is open and disappears from the first "page" ~20 entries when the menu is closed ( <1% CPU usage)

Universumgames avatar Jan 12 '22 14:01 Universumgames

It is not optimized for any Apple Silicon devices. We have been waiting since @gao-sun has gotten a new Pro machine but he has not done so yet, but we are all hoping for an M1 version soon!

MusaAqeel avatar Jan 14 '22 08:01 MusaAqeel

I'm working on it. Will publish a new version once complete.

gao-sun avatar Jan 14 '22 08:01 gao-sun

I'm working on it. Will publish a new version once complete.

Excited!

MusaAqeel avatar Feb 16 '22 06:02 MusaAqeel

Thank you! I just discovered the app, amazed, but then found it eat like 1-2 cores of my M1, so had to shut it down for now. Hope it will be an easy transition!

And by the way, is there any way I can buy you a cup of coffee or support you in some other way?

alexander-potemkin avatar Feb 17 '22 15:02 alexander-potemkin

I don't think it's an M1 issue. I saw this happening on Intel Mac as well. Restart of EUL usually fixed it for a while.

xeron avatar Feb 22 '22 18:02 xeron

To support this thesis, on M1 it doesn’t start eating the processor immediately after the start.

alexander-potemkin avatar Feb 22 '22 20:02 alexander-potemkin

please see #243

gao-sun avatar Mar 04 '22 09:03 gao-sun

Thanks for letting know!

alexander-potemkin avatar Mar 04 '22 10:03 alexander-potemkin