Page MenuHome

Memory usage indication way off
Closed, ArchivedPublic

Description

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.

Details

Type
Bug

Event Timeline

Brecht Van Lommel (brecht) closed this task as Archived.Wed, Nov 6, 3:30 PM
Brecht Van Lommel (brecht) claimed this task.

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.

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