mem_info_vram_used(9)
π 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 π€):
mem_info_vram_total(9)mem_info_vis_vram_total(9)mem_info_vis_vram_used(9)mem_info_vram_vendor(9)amdgpu_vram_mgr_vis_size(9)amdgpu_vram_mgr_bo_visible_size(9)amdgpu_vram_mgr_reserve_range(9)amdgpu_vram_mgr_query_page_status(9)amdgpu_vram_mgr_new(9)amdgpu_vram_mgr_del(9)amdgpu_vram_mgr_alloc_sgt(9)amdgpu_vram_mgr_free_sgt(9)amdgpu_vram_mgr_vis_usage(9)amdgpu_vram_mgr_clear_reset_blocks(9)amdgpu_vram_mgr_intersects(9)amdgpu_vram_mgr_compatible(9)amdgpu_vram_mgr_debug(9)amdgpu_vram_mgr_init(9)amdgpu_vram_mgr_fini(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms