gao-sun / eul

πŸ–₯️ macOS status monitoring app written in SwiftUI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CPU Usage pretty high on M1 Mac

Universumgames opened this issue Β· comments

commented

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"]
`

commented

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

Screenshot 2022-01-12 at 15 24 31

commented

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)

commented

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!

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

commented

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

Excited!

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?

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.

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

please see #243

Thanks for letting know!

I got the same issue, but it seems not only the M1.
got sample here, hope this can been fixed
1707376016298
Sample of eul.txt