Maniphest T84267

Cycles seems to not use more then 32 threads
Closed, Resolved

Assigned To
Brecht Van Lommel (brecht)
Authored By
shaun (toxsickcity)
Dec 30 2020, 11:49 AM
Tags
  • BF Blender
Subscribers
Brecht Van Lommel (brecht)
Robert Guetzkow (rjg)
shaun (toxsickcity)

Description

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..

Event Timeline

shaun (toxsickcity) created this task.Dec 30 2020, 11:49 AM
Robert Guetzkow (rjg) added subscribers: Brecht Van Lommel (brecht), Robert Guetzkow (rjg).EditedDec 31 2020, 1:53 PM

If I'm not mistaken you are intentionally limited to the number of physical cores since 2.91 according to T80080. 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 Van Lommel (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.

shaun (toxsickcity) added a comment.EditedDec 31 2020, 1:59 PM

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 (campbellbarton) renamed this task from Blender seems to not use more then 32 threads to Cycles seems to not use more then 32 threads.Jan 8 2021, 2:33 AM
Brecht Van Lommel (brecht) changed the task status from Needs Triage to Needs Information from User.Jan 11 2021, 4:24 PM

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

shaun (toxsickcity) added a comment.Jan 11 2021, 11:13 PM

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.

Brecht Van Lommel (brecht) closed this task as Resolved.Jan 12 2021, 1:48 PM
Brecht Van Lommel (brecht) claimed this task.

Ok, thanks for testing.