mem_info_vis_vram_used(9)
π mem_info_vis_vram_used β a page from the Kernel API Manual π
okay bestie, so this one is genuinely short and sweet, which honestly? slay. no cap. π
β¨ DESCRIPTION β¨
so the amdgpu driver ships a sysfs API for reporting the current total of used visible VRAM β literally the whole vibe of this page π«Ά
the file mem_info_vis_vram_used is the one that does this, and it returns the total amount of currently used visible VRAM in bytes, periodt. that's it. that's the whole thing. iconic behavior honestly π
it's giving "just read the file and go" energy, and we love a low-effort main character πΈ
π SEE ALSO π
the kernel file lives right here, sweetie π§
./drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
and here's the whole friend group, all of them, in order, no one left behind π
mem_info_vram_total(9)mem_info_vis_vram_total(9)mem_info_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)
go read them. all of them. iykyk πβ¨
and that's the whole page, bestie β brought to you by the good people at ./drivers/gpu/drm/amd/amdgpu, stamped October 2026, and answering to the name mem_info_vis_vram_used(9). bye diva π
π
π¦ 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