Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

DeanL

macrumors 65816
Original poster
May 29, 2014
1,363
1,302
London
Since the CPU and the GPU share the RAM on Apple Silicon, how can I view the amount of RAM currenly used by the GPU vs the CPU?
 
  • Like
Reactions: rm5
You need to probe it through IOKit but there is some tools already implemented this to make your life easier. For example, XRG implemented GPU VRAM usage monitoring on Apple Silicon: https://github.com/mikepj/XRG/blob/main/Data Miners/XRGGPUMiner.m

You can download their latest release here

That is a convoluted way to get information that can be accessed by a single function call: https://developer.apple.com/documentation/metal/mtldevice/2915745-currentallocatedsize?language=objc

Edit: a no, it seems this Metal function only tracks application usage. Way to write informative documentation, Apple.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.