mem_info_vram_total(9)
π mem_info_vram_total(9) π
okay so real quick β this page lives in the Kernel API Manual, and it's one of those tiny-but-iconic ones. buckle up, it's short and it slays.
β¨ NAME β¨
mem_info_vram_total β the little sysfs file that tells you how much VRAM your GPU is working with π
π DESCRIPTION π
hiii bestie so here's the tea π: the amdgpu driver ships a whole sysfs API whose entire job is reporting stuff about the device, and this particular file is the one that hooks you up with the current total VRAM available on the device.
the file is called mem_info_vram_total, and when you read it, it hands back the total amount of VRAM in bytes π₯ that's it, that's the whole vibe. no cap, it's giving "small file, big responsibility."
so yeah β one file, one number, in bytes. periodt. π
π¦ SEE ALSO π¦
the whole squad, in the order they appear, don't @ me:
mem_info_vis_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)
and the source file for all of it, literally right here:
Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
ngl if you're digging into VRAM accounting, the amdgpu_vram_mgr_* crew above is your main character energy starting point π«Ά
okay that's the page!! mwah π this one comes to you from ./drivers/gpu/drm/amd/amdgpu, dated October 2026, manual name Kernel API Manual, page mem_info_vram_total(9) β go read your VRAM total bestie, ily, bye π§β¨π
π¦ 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