tlkh/asitop

Display issues on M3 Max

MALTF opened this issue · 21 comments

The CPU usage is incorrect (E-CPU, P-CPU Always display 100%) and memory bandwidth is not displayed, ANE Usage has always been 0, May I know when the M3 Max can be adapted?

M3 Max powermetrics

https://github.com/tlkh/asitop

The homepage display looks like this
asitop_readme.png…

Hi! I also have the same issue.

Screenshot 2023-11-29 at 5 59 36 AM

The thing is that it doesn't really detect the chip's data, it's hardcoded (here) and as you can see there are no M2 pro/max/ultra nor M3/pro/max
And I have no idea where to find those value to help...

The thing is that it doesn't really detect the chip's data, it's hardcoded (here) and as you can see there are no M2 pro/max/ultra nor M3/pro/max And I have no idea where to find those value to help...

Taking a quick glance it seems to be a rounded value of the bandwidth in GB/sec, so it should be fairly easy to add.

https://en.wikipedia.org/wiki/Apple_M1#Variants
https://en.wikipedia.org/wiki/Apple_M2#Variants
https://en.wikipedia.org/wiki/Apple_M3#Variants

As for the TDP, it looks like it could just be the published or independently measured TDP in watts.

@liyiyuian How long can you use your Mac with a pure battery on a regular basis?

Hey there! So, I’ve had this device for just a couple of days now. I’ve been running multiple Jupyter kernels and processing hundreds of gigabytes of data on it, which means I can use it for like 3-5 hours straight. However, if I process data remotely, I get around 10 hours.

@liyiyuian I use Android studio, Google Browser and some chat software every day, and use about 8-9 hours from the lowest to the eighth gear.

@liyiyuian Using Bandwidth to test memory throughput did not reach the official advertised 400GB/s memory bandwidth.
Graphs generated by bandwidth
Apple Mac15,9 Apple M3 Max aarch64 macOS 14 1 1

Also the ANE usage is incorrect, when it uses it like for 4%, let's say, it will stay at 4%

Same issue here. M3 Max 40GPU

+1 same issue on M3 Max

same issue on M3 Max as well

Same issue here. M3 Max 30GPU.

gavi commented

wanted to chime in - same issue M3 Max 40 CPU

gavi commented

Seems like line 88 in parsers.py the idle ratio for cluster is showing as 0. This causes this line

cpu_metric_dict[name+"_active"] = int((1 - cluster["idle_ratio"])*100)

to show 100 for the cluster. This might be a bug in the underlying powermetrics command in Mac.

The individual cores idle ratio seems ok. I think the simple patch would be to just average the individual cores. I will see if I can do a PR

gavi commented

Just created #68

@gavi #68
This displays more accurately on the M3 Max 40GPU version ->Power Usage Monitor for Apple Silicon .

@gavi #68 This displays more accurately on the M3 Max 40GPU version ->Power Usage Monitor for Apple Silicon .

So you recommend PUMAS instead of Asitop?

So you recommend PUMAS instead of Asitop?

This is for your reference only!!!

Same issue on M3 Max 40GPU

XRG is a good stand-in in the meantime

this PR #68 solved this issue on my end