Blender memory management improvement? Rammap.exe to clear improves stability #62205

Closed
opened 2019-03-05 10:49:15 +01:00 by shaun · 12 comments

System Information
Operating system: windows 10 pro 64bit
GTX 1070

Blender Version
All of 2.79
Solution is outside app to clear standby memory

Short description of error
When system memory become used increasingly over time via blender operations.. stability improves inside blender (no crashing) when I use Rapmap to clear standby memory

Exact steps for others to reproduce the error
Working in a complex scene which uses a fair bit of system memory... Or using a blend file which is known to crash when baking a physics simulation.. and Let's say 50% of system memory used in windows device manager.
As things such as baking physics or using add-ons like flip fluids standby memory starts filling up in windows task manager..
Even though there is let's say 60% system memory is used in windows. The remaining 40% is standby memory (stuff that's no longer needed but can be used again quickly)
When standby is using the rest of the memory blender crashes or at least... Has a very high percentage of crashing compared to when the standby memory is not filling the remaining memory.
A simple sysinternals app (rammap.exe) selecting clear standby will clear memory usage and trying to repeat the baking of the fluid or physics.. will work fine!

I would give this solution an almost 100% improvement on stability!

Would there in any way possible to add a feature in blender which auto clear standby memory.. and having this option in settings..
Would work like detection system memory amount vs standby amount. If it exceeds xx percent to clear it?

It's a good idea and would save very complex baking from crashing..

I have been using this rammap program for years . It's really good and hope the Devs take a look and demo my method and see if anything can be done for blender?

**System Information** Operating system: windows 10 pro 64bit GTX 1070 **Blender Version** All of 2.79 Solution is outside app to clear standby memory **Short description of error** When system memory become used increasingly over time via blender operations.. stability improves inside blender (no crashing) when I use Rapmap to clear standby memory **Exact steps for others to reproduce the error** Working in a complex scene which uses a fair bit of system memory... Or using a blend file which is known to crash when baking a physics simulation.. and Let's say 50% of system memory used in windows device manager. As things such as baking physics or using add-ons like flip fluids standby memory starts filling up in windows task manager.. Even though there is let's say 60% system memory is used in windows. The remaining 40% is standby memory (stuff that's no longer needed but can be used again quickly) When standby is using the rest of the memory blender crashes or at least... Has a very high percentage of crashing compared to when the standby memory is not filling the remaining memory. A simple sysinternals app (rammap.exe) selecting clear standby will clear memory usage and trying to repeat the baking of the fluid or physics.. will work fine! I would give this solution an almost 100% improvement on stability! Would there in any way possible to add a feature in blender which auto clear standby memory.. and having this option in settings.. Would work like detection system memory amount vs standby amount. If it exceeds xx percent to clear it? It's a good idea and would save very complex baking from crashing.. I have been using this rammap program for years . It's really good and hope the Devs take a look and demo my method and see if anything can be done for blender?
Author

Added subscriber: @toxsickcity

Added subscriber: @toxsickcity
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Does the same problem happen in Blender 2.8?

Is there anything you can do coding wise to "fix" this in Blender?

I'm not absolutely sure if this is a bug or a feature request. Maybe it would be better discuss this topic on https://devtalk.blender.org first. Maybe someone can create a patch for it.

Does the same problem happen in Blender 2.8? Is there anything you can do coding wise to "fix" this in Blender? I'm not absolutely sure if this is a bug or a feature request. Maybe it would be better discuss this topic on https://devtalk.blender.org first. Maybe someone can create a patch for it.
Author

I have not tried 2.8 for this.

I can experiment a little and let you know.

I don't code sorry. Wish I knew how to. The closest I have come to is using Arduino and the code is super simple and always get help as I don't understand half of what's going on.. anyways that's off topic haha

I can see if my complex scenes that have baking issues also get resolved with 2.8

If It does I will post on the forum you said to

I have not tried 2.8 for this. I can experiment a little and let you know. I don't code sorry. Wish I knew how to. The closest I have come to is using Arduino and the code is super simple and always get help as I don't understand half of what's going on.. anyways that's off topic haha I can see if my complex scenes that have baking issues also get resolved with 2.8 If It does I will post on the forum you said to

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-03-05 11:55:12 +01:00

This is outside the scope of the bug tracker in any case. In general I don't think we can or should do these kind of system-wide memory changes from Blender, better would be switch to a better memory allocator on Windows as we already do on Linux.

This is outside the scope of the bug tracker in any case. In general I don't think we can or should do these kind of system-wide memory changes from Blender, better would be switch to a better memory allocator on Windows as we already do on Linux.
Author

In #62205#632664, @brecht wrote:
This is outside the scope of the bug tracker in any case. In general I don't think we can or should do these kind of system-wide memory changes from Blender, better would be switch to a better memory allocator on Windows as we already do on Linux.

Would you be able to recommend any specific app your speaking about?

> In #62205#632664, @brecht wrote: > This is outside the scope of the bug tracker in any case. In general I don't think we can or should do these kind of system-wide memory changes from Blender, better would be switch to a better memory allocator on Windows as we already do on Linux. Would you be able to recommend any specific app your speaking about?

I'm not referring to an application, but a change that we developers could make into Blender.

I'm not referring to an application, but a change that we developers could make into Blender.
Author

Is this something that blender developers are considering?

I have heard a few times and read on forums that some users have faced random weirdness regarding ram usage?

Is this something that blender developers are considering? I have heard a few times and read on forums that some users have faced random weirdness regarding ram usage?
Member

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo
Member

You can't just swap out the memory allocator on windows, it doesn't work the way it does on linux, most things link directly into the ms crt and there's no supported way of hooking that.

You can't just swap out the memory allocator on windows, it doesn't work the way it does on linux, most things link directly into the ms crt and there's no supported way of hooking that.
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#62205
No description provided.