Cycles seems to not use more then 32 threads #84267

Closed
opened 2020-12-30 11:49:00 +01:00 by shaun · 9 comments

System Information
Ryzen Threadripper 2970WX 24c 48t
Operating system:
Windows 10 PRO
Graphics card:
4X GTX 1070 8GB

Blender Version
2.83.3 = 100% CPU Usage, I can see 44 Rendering Threads on the screen, (Orange Boxes, 44 of them) another 4 Orange Boxes are the 4x GPUs rendering very quickly
2.91.0 = 75% CPU Usage, I can see 32 Threads, blender seems to be stuck using only 32 threads maximum, including 4 threads for GPU
2.92.0 ALPHA = 75% CPU Usage, I can see 32 Threads, blender seems to be stuck using only 32 threads maximum, including 4 threads for GPU

Short description of error
The latest blender versions are not using as many cpu core threads.

Exact steps for others to reproduce the error
create any blender scene anything., cycles render.
on a system with the threadripper setting the threads use to auto or 48 does not make any difference.

on a system with less then 48 threads force 48 threads..

**System Information** Ryzen Threadripper 2970WX 24c 48t Operating system: Windows 10 PRO Graphics card: 4X GTX 1070 8GB **Blender Version** 2.83.3 = 100% CPU Usage, I can see 44 Rendering Threads on the screen, (Orange Boxes, 44 of them) another 4 Orange Boxes are the 4x GPUs rendering very quickly 2.91.0 = 75% CPU Usage, I can see 32 Threads, blender seems to be stuck using only 32 threads maximum, including 4 threads for GPU 2.92.0 ALPHA = 75% CPU Usage, I can see 32 Threads, blender seems to be stuck using only 32 threads maximum, including 4 threads for GPU **Short description of error** The latest blender versions are not using as many cpu core threads. **Exact steps for others to reproduce the error** create any blender scene anything., cycles render. on a system with the threadripper setting the threads use to auto or 48 does not make any difference. on a system with less then 48 threads force 48 threads..
Author

Added subscriber: @toxsickcity

Added subscriber: @toxsickcity

Added subscribers: @brecht, @rjg

Added subscribers: @brecht, @rjg

If I'm not mistaken you are intentionally limited to the number of physical cores since 2.91 according to #80080. However, the Ryzen Threadripper 2970WX has 24 cores, which doesn't match the reported 32 threads either. If I'm reading the specification of the CPU correctly it should be 24 + GPU threads.

@brecht I assume the lower utilization is expected due to the aforementioned changes, is that correct? I couldn't find any task that explains why this would now be bound to cores.

If I'm not mistaken you are intentionally limited to the number of physical cores since 2.91 according to #80080. However, the Ryzen Threadripper 2970WX has 24 cores, which doesn't match the reported 32 threads either. If I'm reading the specification of the CPU correctly it should be 24 + GPU threads. @brecht I assume the lower utilization is expected due to the aforementioned changes, is that correct? I couldn't find any task that explains *why* this would now be bound to cores.
Author

Hi
Thanks for reply.

So my threadripper has 24cores. But 48 Threads.

So with blender 2.9x I can only see 32 threads active.

So what usually happens is that we full cores will be used then the rest of the 4 SMT threads to reach the 32 threads you speak of. That's why I have the 75% usage. Because having the 24 full cores is the performance part!

Any reason why they limit it?
Seems really really odd as so many people in production would be using threadrippers..

Hi Thanks for reply. So my threadripper has 24cores. But 48 Threads. So with blender 2.9x I can only see 32 threads active. So what usually happens is that we full cores will be used then the rest of the 4 SMT threads to reach the 32 threads you speak of. That's why I have the 75% usage. Because having the 24 full cores is the performance part! Any reason why they limit it? Seems really really odd as so many people in production would be using threadrippers..
Campbell Barton changed title from Blender seems to not use more then 32 threads to Cycles seems to not use more then 32 threads 2021-01-08 02:33:24 +01:00

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

This is not expected, it's supposed to detect all virtual/logical cores. This is likely related to the switch to Intel TBB. We use that for both Cycles and multithreading in Blender in general now.

With my Ryzen 2990WX it seems to be correctly detecting all 64 virtual cores. I guess it's somehow detecting the wrong number for this particular CPU model.

To help narrow down the problem, can you try running blender --threads 48 from the command line and check if that makes it use all virtual cores?
https://docs.blender.org/manual/en/latest/advanced/command_line/launch/windows.html

This is not expected, it's supposed to detect all virtual/logical cores. This is likely related to the switch to Intel TBB. We use that for both Cycles and multithreading in Blender in general now. With my Ryzen 2990WX it seems to be correctly detecting all 64 virtual cores. I guess it's somehow detecting the wrong number for this particular CPU model. To help narrow down the problem, can you try running `blender --threads 48` from the command line and check if that makes it use all virtual cores? https://docs.blender.org/manual/en/latest/advanced/command_line/launch/windows.html
Author

Hi Brecht

Running blender via that command line does use 48 threads

The CPU does become fully utilised.

This is a good trick. Thankyou for letting me know about this one.
For some unknown reason running blender without the special command line is now using 48 threads normally.

I am suspecting a weird windows bug here.

I think maybe a windows update, or a power profile on the windows was limiting it.
All is good with the blender. Please close the case.

Hi Brecht Running blender via that command line does use 48 threads The CPU does become fully utilised. This is a good trick. Thankyou for letting me know about this one. For some unknown reason running blender without the special command line is now using 48 threads normally. I am suspecting a weird windows bug here. I think maybe a windows update, or a power profile on the windows was limiting it. All is good with the blender. Please close the case.

Changed status from 'Needs User Info' to: 'Resolved'

Changed status from 'Needs User Info' to: 'Resolved'
Brecht Van Lommel self-assigned this 2021-01-12 13:48:07 +01:00

Ok, thanks for testing.

Ok, thanks for testing.
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
3 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#84267
No description provided.