asitop icon indicating copy to clipboard operation
asitop copied to clipboard

Display issues on M3 Max

Open MALTF opened this issue 1 year ago • 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…

MALTF avatar Nov 24 '23 03:11 MALTF

Hi! I also have the same issue.

Screenshot 2023-11-29 at 5 59 36 AM

liyiyuian avatar Nov 29 '23 11:11 liyiyuian

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...

DucretJe avatar Nov 29 '23 20:11 DucretJe

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.

stncttr908 avatar Nov 29 '23 20:11 stncttr908

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

MALTF avatar Nov 30 '23 00:11 MALTF

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 avatar Nov 30 '23 00:11 liyiyuian

@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.

MALTF avatar Nov 30 '23 00:11 MALTF

@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

MALTF avatar Nov 30 '23 01:11 MALTF

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

pechaut78 avatar Dec 02 '23 06:12 pechaut78

Same issue here. M3 Max 40GPU

unizhu avatar Dec 08 '23 04:12 unizhu

+1 same issue on M3 Max

iamaziz avatar Dec 22 '23 22:12 iamaziz

same issue on M3 Max as well

samarthm314 avatar Dec 27 '23 19:12 samarthm314

Same issue here. M3 Max 30GPU.

sungwonida avatar Dec 27 '23 22:12 sungwonida

wanted to chime in - same issue M3 Max 40 CPU

gavi avatar Dec 29 '23 12:12 gavi

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 avatar Dec 29 '23 15:12 gavi

Just created #68

gavi avatar Dec 29 '23 15:12 gavi

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

MALTF avatar Jan 12 '24 03:01 MALTF

@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?

davedfx avatar Jan 26 '24 03:01 davedfx

So you recommend PUMAS instead of Asitop?

This is for your reference only!!!

MALTF avatar Jan 26 '24 05:01 MALTF

Same issue on M3 Max 40GPU

XRG is a good stand-in in the meantime

adamkdean avatar Feb 24 '24 22:02 adamkdean

this PR https://github.com/tlkh/asitop/pull/68 solved this issue on my end

iamaziz avatar Feb 25 '24 01:02 iamaziz

pip install git+https://github.com/gavi/asitop.git

It works fine for my M3 Max

firesh avatar Mar 28 '24 04:03 firesh