Closed qwertychouskie closed 6 months ago
That's because the AMDGPU driver returns the usable heap size instead of the total heap size.
https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c#L752-L778
Good to know. Also, just to confirm, is the value returned by the kernel and radeontop in MiB (base 2) or MB (base 10)?
MiB
float vram = 100.0f * results->vram / vramsize; float vrammb = results->vram / 1024.0f / 1024.0f; float vramsizemb = vramsize / 1024.0f / 1024.0f;
https://github.com/clbr/radeontop/blob/master/ui.c#L155-L157
Awesome, thanks for the insight!
However,
radeontop
shows487M
total. Why is this?