mem_info_vis_vram_total(9)
π mem_info_vis_vram_total(9) π
okay so real talk, this is a page from the Kernel API Manual and it's honestly so niche but so important, bestie. buckle up π
β¨ NAME β¨
mem_info_vis_vram_total β the lil sysfs file that tells you how much visible VRAM your amdgpu device has rn π
π¦ DESCRIPTION π¦
so the amdgpu driver ships a sysfs API, right? and its whole job is reporting the current total visible VRAM available on the device. iconic behaviour, no notes π
the file you wanna look at is called mem_info_vis_vram_total, and that's the one doing the work here β it returns the total amount of visible VRAM in bytes. bytes, bestie. not megabytes, not vibes. bytes. πβ¨
like literally, that's it. that's the whole function of the file. read it, get a number, know your total visible VRAM. slay π«Ά
π SEE ALSO π
the kernel file, live and in person:
./drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
and the whole friend group of related pages, fr fr:
mem_info_vram_total(9)mem_info_vram_used(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)
go read them all, they're all bangers π₯
and that's the tea, bestie π this page lives in ./drivers/gpu/drm/amd/amdgpu, dated October 2026 β screenshot it, memorise it, tell your friends ππ§β¨
π¦ 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