Memory usage indication way off #71316

Closed
opened 2019-11-03 12:29:35 +01:00 by Paul Melis · 5 comments

System Information
Operating system: Arch Linux
Graphics card: GTX 970

Blender Version
Broken: 2.81 nightly build of 24/10 (892c3891ed)

Short description of error

After loading barbershop_interior_cpu.blend the memory indication in the status bar says 1.95 GiB on my system. But looking at the process memory for Blender with ps it's more than 5.5 GB:

$ ps -q 7852 -o cmd,rss,size
CMD                           RSS  SIZE
/home/melis/software/blende 5534100 7214936

This is without any rendering done, just loading the file.

Exact steps for others to reproduce the error

  1. Get barbershop scene (CPU version) from https://www.blender.org/download/demo-files/
  2. Load in Blender
  3. Allow script execution

By the way, lots of warning/error messages are shown in the console (ERROR (bke.anim_sys): ... invalid driver ..., dd_relation(Driver -> Driven Property) - Could not find op_to). Not sure those could be related to the memory issue.

**System Information** Operating system: Arch Linux Graphics card: GTX 970 **Blender Version** Broken: 2.81 nightly build of 24/10 (892c3891ed0b) **Short description of error** After loading barbershop_interior_cpu.blend the memory indication in the status bar says `1.95 GiB` on my system. But looking at the process memory for Blender with `ps` it's more than 5.5 GB: ``` $ ps -q 7852 -o cmd,rss,size CMD RSS SIZE /home/melis/software/blende 5534100 7214936 ``` This is without any rendering done, just loading the file. **Exact steps for others to reproduce the error** 1. Get barbershop scene (CPU version) from https://www.blender.org/download/demo-files/ 2. Load in Blender 3. Allow script execution By the way, lots of warning/error messages are shown in the console (`ERROR (bke.anim_sys): ... invalid driver ...`, `dd_relation(Driver -> Driven Property) - Could not find op_to`). Not sure those could be related to the memory issue.
Author

Added subscriber: @PaulMelis

Added subscriber: @PaulMelis

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Brecht Van Lommel self-assigned this 2019-11-06 15:30:53 +01:00

While it may be good to improve this, the memory usage indication in Blender is only for memory that Blender itself has explicitly allocated. External libraries, virtual memory, and other types of overhead are not counted.

While it may be good to improve this, the memory usage indication in Blender is only for memory that Blender itself has explicitly allocated. External libraries, virtual memory, and other types of overhead are not counted.
Author

In that case, it might make sense to simply add the memory the process uses. As the current description for that value reads The “Mem” label shows the calculated memory consumption by Blender. This can help to identify, when you are reaching the limits of your hardware. In the current setup it's not very useful for that purpose.

Case in point: loading the same file in 2.79a the process ends up using roughly half of the memory compared to 2.8, while the Mem indicator says 1595M (compared to 1950M for 2.8):

paulm@cmstorm 15:37:~$ ps -q 19350 -o cmd,rss,size
CMD                           RSS  SIZE
/home/paulm/software/blende 2706432 4226684
In that case, it might make sense to simply add the memory the process uses. As the current description for that value [reads](https://docs.blender.org/manual/en/latest/interface/window_system/status_bar.html) `The “Mem” label shows the calculated memory consumption by Blender. This can help to identify, when you are reaching the limits of your hardware.` In the current setup it's not very useful for that purpose. Case in point: loading the same file in 2.79a the process ends up using roughly half of the memory compared to 2.8, while the `Mem` indicator says 1595M (compared to 1950M for 2.8): ``` paulm@cmstorm 15:37:~$ ps -q 19350 -o cmd,rss,size CMD RSS SIZE /home/paulm/software/blende 2706432 4226684 ```
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
2 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#71316
No description provided.