mem_info_vram_used(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– mem_info_vram_used πŸ’–

okay so bestie, welcome to the Kernel API Manual, section 9 β€” this is the page for mem_info_vram_used and it's honestly kind of a vibe πŸ¦‹


✨ DESCRIPTION ✨

so the amdgpu driver ships a sysfs API whose whole job is reporting the current total VRAM available on the device πŸ‘‘ and the file that handles this is literally called mem_info_vram_used πŸ“

what does it give you? it returns the total amount of currently used VRAM in bytes πŸ’… that's it, that's the whole flex β€” one number, in bytes, no cap πŸ”₯

no extra params, no secret flags, no drama β€” just read the file and get your byte count, periodt ✨

πŸ” SEE ALSO πŸ”

like, go read these next, fr fr 🫢 β€” starting with the actual kernel source file this all lives in:

  • Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c 🧚

and then the whole friend group of related pages (yes, all of them, i'm not skipping a single one 😀):


and that's the whole page, bestie πŸ’œ this little cutie comes to you from the kernel file tree at ./drivers/gpu/drm/amd/amdgpu and it's dated October 2026 β€” go read your VRAM numbers, slay, and remember: bytes are the only unit that matters πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from