Incorrect VRAM quantity in the Status Bar ( GNU/Linux AMDGPU ) #81324

Open
opened 2020-09-30 14:02:50 +02:00 by Andrea Monzini · 11 comments

Hello, first bug report :)
A minor bug about the VRAM displayed in the status bar in my GNU/Linux AMDGPU system.

System Information
Operating system: Linux-5.4.0-7642-generic-x86_64-with-debian-bullseye-sid 64 Bits
Graphics card: Radeon RX 580 Series (POLARIS10, DRM 3.35.0, 5.4.0-7642-generic, LLVM 10.0.0) X.Org 4.6 (Core Profile) Mesa 20.0.8

Blender Version
Broken: version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash: 3e85bb34d0
Broken: 2.91.0 alpha
Worked: No

Short description of error
Displayed VRAM quantity in the status bar is wrong: 16 GB instead of 8 GB.

Exact steps for others to reproduce the error
In a similar system enable the Video Monitor option to show the GPU usage in the status bar.
Uploaded an image and system info file:
16GB.png
system-info.txt

Hello, first bug report :) A minor bug about the VRAM displayed in the status bar in my GNU/Linux AMDGPU system. **System Information** Operating system: Linux-5.4.0-7642-generic-x86_64-with-debian-bullseye-sid 64 Bits Graphics card: Radeon RX 580 Series (POLARIS10, DRM 3.35.0, 5.4.0-7642-generic, LLVM 10.0.0) X.Org 4.6 (Core Profile) Mesa 20.0.8 **Blender Version** Broken: version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash: `3e85bb34d0` Broken: 2.91.0 alpha Worked: No **Short description of error** Displayed VRAM quantity in the status bar is wrong: 16 GB instead of 8 GB. **Exact steps for others to reproduce the error** In a similar system enable the Video Monitor option to show the GPU usage in the status bar. Uploaded an image and system info file: ![16GB.png](https://archive.blender.org/developer/F8940079/16GB.png) [system-info.txt](https://archive.blender.org/developer/F8940088/system-info.txt)
Author

Added subscriber: @AndreaMonzini

Added subscriber: @AndreaMonzini
Member

Added subscriber: @Harley

Added subscriber: @Harley
Member

Thanks for this report. I might have to give this a think and do some further research as your result does not make a lot of sense.

First, it isn't just that the total is wrong, but both are wrong. Your capture shows a "used" amount of 8.8GiB when you are using a tenth of that. And I wouldn't even expect your hardware to report in that way at all...

Whether or not any card is going to have the option of showing VRAM amounts is based on whether it supports either of GL extensions 'GLEW_NVX_gpu_memory_info' or 'GLEW_ATI_meminfo'. I would expect your card to not support the former (with can report both total and free), but to support the later (which only reports free vram). In all cases the values returned are supposed to be a number of kilobytes. So I would expect your system to report something similar to this: VRAM 0.8 GiB Free not the version that shows both used and total.

Will look into it.

Thanks for this report. I might have to give this a think and do some further research as your result does not make a lot of sense. First, it isn't just that the total is wrong, but both are wrong. Your capture shows a "used" amount of 8.8GiB when you are using a tenth of that. And I wouldn't even expect your hardware to report in that way at all... Whether or not any card is going to have the option of showing VRAM amounts is based on whether it supports either of GL extensions 'GLEW_NVX_gpu_memory_info' or 'GLEW_ATI_meminfo'. I would expect your card to **not** support the former (with can report both total and free), but to support the later (which only reports free vram). In all cases the values returned are supposed to be a number of *kilobytes*. So I would expect your system to report something similar to this: `VRAM 0.8 GiB Free` not the version that shows both used and total. Will look into it.
Author

It seems that indeed there is 8 GiB more in both "used" VRAM and "Max" VRAM.

USED VRAM: 8.8 GiB while the correct value should be 0.8 GiB ( as i see in RadeonTop )
MAX VRAM: 16.0 GiB while the correct value should be 8.0 GiB

It seems that indeed there is 8 GiB more in both "used" VRAM and "Max" VRAM. USED VRAM: 8.8 GiB while the correct value should be 0.8 GiB ( as i see in RadeonTop ) MAX VRAM: 16.0 GiB while the correct value should be 8.0 GiB
Author

I did other research and i found that "GL_ATI_meminfo" seems correct while "GL_NVX_gpu_memory_info" seems not clear.
In this case Blender shows VRAM 9.0/16.0 GiB while it should be ~ 1.0/8.0 GiB ( like showed in RadeonTop )

So the "GL_NVX_gpu_memory_info" corrected valued should be "Dedicated video memory: 8192 MB" and not "Total available memory: 16384 MB"

Memory info (GL_ATI_meminfo):
    VBO free memory - total: 7119 MB, largest block: 7119 MB
    VBO free aux. memory - total: 8104 MB, largest block: 8104 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 8192 MB
    Total available memory: 16384 MB
    Currently available dedicated video memory: 7119 MB

Screenshot with Blender, RadeonTop and glxinfo:
Screenshot from 2020-09-30 21-07-40.png

More detailed info:

linux@pop-os:~$ glxinfo | egrep -i 'device|memory'
    Device: Radeon RX 580 Series (POLARIS10, DRM 3.35.0, 5.4.0-7642-generic, LLVM 10.0.0) (0x67df)
    Video memory: 8192MB
    Unified memory: no
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 7119 MB, largest block: 7119 MB
    VBO free aux. memory - total: 8104 MB, largest block: 8104 MB
    Texture free memory - total: 7119 MB, largest block: 7119 MB
    Texture free aux. memory - total: 8104 MB, largest block: 8104 MB
    Renderbuffer free memory - total: 7119 MB, largest block: 7119 MB
    Renderbuffer free aux. memory - total: 8104 MB, largest block: 8104 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 8192 MB
    Total available memory: 16384 MB
    Currently available dedicated video memory: 7119 MB
    GL_AMD_performance_monitor, GL_AMD_pinned_memory, 
    GL_EXT_framebuffer_object, GL_EXT_framebuffer_sRGB, GL_EXT_memory_object, 
    GL_EXT_memory_object_fd, GL_EXT_packed_depth_stencil, GL_EXT_packed_float, 
    GL_MESA_texture_signed_rgba, GL_NVX_gpu_memory_info, 
    GL_AMD_pinned_memory, GL_AMD_query_buffer_object, 
    GL_EXT_gpu_shader4, GL_EXT_memory_object, GL_EXT_memory_object_fd, 
    GL_MESA_texture_signed_rgba, GL_MESA_window_pos, GL_NVX_gpu_memory_info, 
    GL_EXT_memory_object, GL_EXT_memory_object_fd, GL_EXT_multi_draw_arrays, 
I did other research and i found that "GL_ATI_meminfo" seems correct while "GL_NVX_gpu_memory_info" seems not clear. In this case Blender shows VRAM 9.0/16.0 GiB while it should be ~ 1.0/8.0 GiB ( like showed in RadeonTop ) So the "GL_NVX_gpu_memory_info" corrected valued should be "Dedicated video memory: 8192 MB" and not "Total available memory: 16384 MB" ``` Memory info (GL_ATI_meminfo): VBO free memory - total: 7119 MB, largest block: 7119 MB VBO free aux. memory - total: 8104 MB, largest block: 8104 MB ``` ``` Memory info (GL_NVX_gpu_memory_info): Dedicated video memory: 8192 MB Total available memory: 16384 MB Currently available dedicated video memory: 7119 MB ``` Screenshot with Blender, RadeonTop and glxinfo: ![Screenshot from 2020-09-30 21-07-40.png](https://archive.blender.org/developer/F8941299/Screenshot_from_2020-09-30_21-07-40.png) More detailed info: ``` linux@pop-os:~$ glxinfo | egrep -i 'device|memory' Device: Radeon RX 580 Series (POLARIS10, DRM 3.35.0, 5.4.0-7642-generic, LLVM 10.0.0) (0x67df) Video memory: 8192MB Unified memory: no Memory info (GL_ATI_meminfo): VBO free memory - total: 7119 MB, largest block: 7119 MB VBO free aux. memory - total: 8104 MB, largest block: 8104 MB Texture free memory - total: 7119 MB, largest block: 7119 MB Texture free aux. memory - total: 8104 MB, largest block: 8104 MB Renderbuffer free memory - total: 7119 MB, largest block: 7119 MB Renderbuffer free aux. memory - total: 8104 MB, largest block: 8104 MB Memory info (GL_NVX_gpu_memory_info): Dedicated video memory: 8192 MB Total available memory: 16384 MB Currently available dedicated video memory: 7119 MB GL_AMD_performance_monitor, GL_AMD_pinned_memory, GL_EXT_framebuffer_object, GL_EXT_framebuffer_sRGB, GL_EXT_memory_object, GL_EXT_memory_object_fd, GL_EXT_packed_depth_stencil, GL_EXT_packed_float, GL_MESA_texture_signed_rgba, GL_NVX_gpu_memory_info, GL_AMD_pinned_memory, GL_AMD_query_buffer_object, GL_EXT_gpu_shader4, GL_EXT_memory_object, GL_EXT_memory_object_fd, GL_MESA_texture_signed_rgba, GL_MESA_window_pos, GL_NVX_gpu_memory_info, GL_EXT_memory_object, GL_EXT_memory_object_fd, GL_EXT_multi_draw_arrays, ```

Added subscriber: @iss

Added subscriber: @iss

I guess a stupid question, but I don't see VRAM stats on my machine. Is this HW or OS specific?

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: Radeon RX550/550 Series ATI Technologies Inc. 4.5.14736 Core Profile Context 20.8.3 27.20.12027.1001

I guess a stupid question, but I don't see VRAM stats on my machine. Is this HW or OS specific? System Information Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: Radeon RX550/550 Series ATI Technologies Inc. 4.5.14736 Core Profile Context 20.8.3 27.20.12027.1001
Author

Hello, just a quick update: same problem with 2.91.0 and 2.192 Alpha ( system updated to Pop!_OS 20.10 )

@iss i have not tested other OS but in GNU/Linux you have to right click on Blender Version and check "Video Memory "

screen.png

Hello, just a quick update: same problem with 2.91.0 and 2.192 Alpha ( system updated to Pop!_OS 20.10 ) @iss i have not tested other OS but in GNU/Linux you have to right click on Blender Version and check "Video Memory " ![screen.png](https://archive.blender.org/developer/F9526881/screen.png)
Member

Added subscriber: @ankitm

Added subscriber: @ankitm
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Confirming as per @Harley 's comment.

Confirming as per @Harley 's comment.
Philipp Oeser removed the
Interest
User Interface
label 2023-02-10 09:24:04 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#81324
No description provided.