CUDA memory leak #45131

Closed
opened 2015-06-21 01:56:22 +02:00 by Andy Buchanan · 10 comments

System Information
OS X 10.10.3 (14D136)
NVIDIA GeForce GTX 775M 2048MB
(Late 2013 27" iMac with latest released Yosemite)

CUDA Driver Version: 7.0.36
GPU Driver Version 10.2.7 310.41.25f01

Blender Version
2.75rc1 Date 2015-06-10 15:39 Hash: bff8b5d
Worked: Not sure, 2.71 maybe, it's been a bit flaky for a while.

GPU rendering appears to leak the CUDA memory such that extended operation is impossible without a reboot.

Execute normal model/light/material/render workflow. After a number of renders the GPU rendering will fail to operate with a CUDA out of memory error message.
Larger scenes exhaust memory quicker. Also using GPU rendering for render preview seems to be the worst possible option.

NOTE. After GPU rendering usage, with or without errors the rest of the OS X experiences some non-terminal graphical corruption, so probably the driver is at least partially implicated.

**System Information** OS X 10.10.3 (14D136) NVIDIA GeForce GTX 775M 2048MB (Late 2013 27" iMac with latest released Yosemite) CUDA Driver Version: 7.0.36 GPU Driver Version 10.2.7 310.41.25f01 **Blender Version** 2.75rc1 Date 2015-06-10 15:39 Hash: bff8b5d Worked: Not sure, 2.71 maybe, it's been a bit flaky for a while. GPU rendering appears to leak the CUDA memory such that extended operation is impossible without a reboot. Execute normal model/light/material/render workflow. After a number of renders the GPU rendering will fail to operate with a CUDA out of memory error message. Larger scenes exhaust memory quicker. Also using GPU rendering for render preview seems to be the worst possible option. NOTE. After GPU rendering usage, with or without errors the rest of the OS X experiences some non-terminal graphical corruption, so probably the driver is at least partially implicated.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @JiggyWig

Added subscriber: @JiggyWig

Added subscriber: @Sergey

Added subscriber: @Sergey

It's quite tricky to leak memory on CUDA, all memory is getting freed when CUDA context is being closed and CUDA context is forced to be closed when application quits.

So unless you can confirm that re-starting blender frees GPU memory it's likely to be a bug in the driver which we cant' really help with.

It's quite tricky to leak memory on CUDA, all memory is getting freed when CUDA context is being closed and CUDA context is forced to be closed when application quits. So unless you can confirm that re-starting blender frees GPU memory it's likely to be a bug in the driver which we cant' really help with.
Author

I put rc2 through its paces tonight for a couple of hours. So far I could not find a procedure to definitely leak CUDA memory, but getting anywhere near the limit ( around 1.1Gb on my 2Gb card. ) starts the video driver corruption problems. Additionally using gpu preview render near the memory limit produced two hard hangs requiring reboot, behaviour also seen on 2.74 but NOT 2.73a.

I'm sure you're right that it's probably the driver at fault. Alas, they don't seem to be in any hurry to update it again.

I put rc2 through its paces tonight for a couple of hours. So far I could not find a procedure to definitely leak CUDA memory, but getting anywhere near the limit ( around 1.1Gb on my 2Gb card. ) starts the video driver corruption problems. Additionally using gpu preview render near the memory limit produced two hard hangs requiring reboot, behaviour also seen on 2.74 but NOT 2.73a. I'm sure you're right that it's probably the driver at fault. Alas, they don't seem to be in any hurry to update it again.

Added subscriber: @mont29

Added subscriber: @mont29

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2015-06-30 23:00:02 +02:00

Archiving this for now, looks like we cannot do much about it currently…

Archiving this for now, looks like we cannot do much about it currently…

Added subscriber: @ryango

Added subscriber: @ryango

better on el capitan? doesn't seem so. anyone find workarounds?

better on el capitan? doesn't seem so. anyone find workarounds?
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#45131
No description provided.