Partial use of many CPUs vs. Complete use of one CPU?

Message boards : Number crunching : Partial use of many CPUs vs. Complete use of one CPU?

To post messages, you must log in.

AuthorMessage
Matthew Widjaja

Send message
Joined: 13 Mar 20
Posts: 1
Credit: 537,491
RAC: 0
Message 93392 - Posted: 4 Apr 2020, 16:04:56 UTC

Hi all! First time I've used Rosetta@home in a while in light of COVID. I had a technical question. My computer has 4 CPUs and an AMD GPU (which my understanding would suggest that the GPU isn't particularly used by Rosetta@Home).

To optimize Rosetta@Home, would it be better for me to dedicate 1 or 2 of the CPUs at 100% CPU Time or to dedicate all of my CPUs at 50% CPU Time? Is there even a difference?

Thanks!
ID: 93392 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Mod.Sense
Volunteer moderator

Send message
Joined: 22 Aug 06
Posts: 4018
Credit: 0
RAC: 0
Message 93405 - Posted: 4 Apr 2020, 19:08:20 UTC

Yes there is a difference. Using 4 CPUs 50% of the time means 4 tasks running, consuming memory, contending for L2 cache, etc.

Better to run 2 CPUs at 100% of the time.
Rosetta Moderator: Mod.Sense
ID: 93405 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Profile Chilean
Avatar

Send message
Joined: 16 Oct 05
Posts: 711
Credit: 26,694,507
RAC: 0
Message 93412 - Posted: 4 Apr 2020, 19:26:10 UTC - in response to Message 93392.  

Hi all! First time I've used Rosetta@home in a while in light of COVID. I had a technical question. My computer has 4 CPUs and an AMD GPU (which my understanding would suggest that the GPU isn't particularly used by Rosetta@Home).

To optimize Rosetta@Home, would it be better for me to dedicate 1 or 2 of the CPUs at 100% CPU Time or to dedicate all of my CPUs at 50% CPU Time? Is there even a difference?

Thanks!


In my opinion, if your CPU has HT, set it 50% number of threads when working on the PC. If you have a dedicated PC running nothing but Rosetta, then set it to 100% number of threads.

I always leave the CPU time setting at 100%. Much rather have half of my threads running @ 100% than having the whole CPU switching on and off every so many seconds. Kinda makes me think there'd be way more thermal stress that way (heating and cooling so often between 100% usage and 0% usage).
ID: 93412 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Millenium

Send message
Joined: 20 Sep 05
Posts: 68
Credit: 184,283
RAC: 0
Message 93414 - Posted: 4 Apr 2020, 19:40:19 UTC

I agree with keeping cpu time 100% and acting on cpu numbers if you have to reduce the workload. Have the processes run at 100%, just have less of them. So if you really need to half the workload on your 4 core cpu, slap in a 50% so you will run only 2 WUs concurrently.


the GPU isn't particularly used by Rosetta@Home

Rosetta@home is a CPU only project indeed.
ID: 93414 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Profile yoerik
Avatar

Send message
Joined: 24 Mar 20
Posts: 128
Credit: 169,525
RAC: 0
Message 93435 - Posted: 4 Apr 2020, 22:10:18 UTC - in response to Message 93405.  

I've got my 4 cores set to run 99% of the time - does that change the dynamics?
ID: 93435 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
JoshuaScholar

Send message
Joined: 26 Mar 20
Posts: 18
Credit: 232,183
RAC: 0
Message 93467 - Posted: 5 Apr 2020, 8:19:14 UTC

I'm not happy what happens when you set the CPU to anything but 100% because the program shuts all of the threads down together and brings them back up together, which makes the temperature of the whole CPU package continually bounce which also confuses my fan control program.

It has to be a worst case for the longevity of your motherboard and cpu to have the machine continually cycle from 0 to 100% just slow enough for the cpu package temp to bounce for months on end.
ID: 93467 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Sid Celery

Send message
Joined: 11 Feb 08
Posts: 1966
Credit: 38,188,338
RAC: 11,005
Message 93485 - Posted: 5 Apr 2020, 11:23:57 UTC - in response to Message 93467.  

I'm not happy what happens when you set the CPU to anything but 100% because the program shuts all of the threads down together and brings them back up together, which makes the temperature of the whole CPU package continually bounce which also confuses my fan control program.

It has to be a worst case for the longevity of your motherboard and cpu to have the machine continually cycle from 0 to 100% just slow enough for the cpu package temp to bounce for months on end.

My understanding is that the switching onoff of the CPUs is it does it multiple times per second. I'd be very surprised if the fan control programme responded on the same scale. Maybe it does, but I'd be surprised.

And speaking as someone who's just had a motherboard failure on my main desktop while running at 100% everything 247 for a few years, the demands on the system are pretty excessive at the best of times. But at least I know I've got full value out of what's failed <sigh>
ID: 93485 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Bryn Mawr

Send message
Joined: 26 Dec 18
Posts: 373
Credit: 10,598,406
RAC: 8,429
Message 93537 - Posted: 5 Apr 2020, 18:41:38 UTC - in response to Message 93485.  


My understanding is that the switching onoff of the CPUs is it does it multiple times per second. I'd be very surprised if the fan control programme responded on the same scale. Maybe it does, but I'd be surprised.

And speaking as someone who's just had a motherboard failure on my main desktop while running at 100% everything 247 for a few years, the demands on the system are pretty excessive at the best of times. But at least I know I've got full value out of what's failed <sigh>


On all of the systems I’ve run it drops all of the cores for a second or two every 15 to 60 seconds depending on the percentage used so it isn’t as subtle as you expect.
ID: 93537 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Sid Celery

Send message
Joined: 11 Feb 08
Posts: 1966
Credit: 38,188,338
RAC: 11,005
Message 93560 - Posted: 5 Apr 2020, 21:23:15 UTC - in response to Message 93537.  

My understanding is that the switching onoff of the CPUs is it does it multiple times per second. I'd be very surprised if the fan control programme responded on the same scale. Maybe it does, but I'd be surprised.

And speaking as someone who's just had a motherboard failure on my main desktop while running at 100% everything 247 for a few years, the demands on the system are pretty excessive at the best of times. But at least I know I've got full value out of what's failed <sigh>

On all of the systems I’ve run it drops all of the cores for a second or two every 15 to 60 seconds depending on the percentage used so it isn’t as subtle as you expect.

Perhaps I'm getting distracted by one of those sidebar apps I used to run under Vista (a fair while ago) that showed CPU utilisation going 0-100-0-100 a few hundred time per minute. I don't know for sure it was accurate

I'm back running btw, with only a few hours to go before my deadlines. More failures coming...
ID: 93560 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Sid Celery

Send message
Joined: 11 Feb 08
Posts: 1966
Credit: 38,188,338
RAC: 11,005
Message 93575 - Posted: 5 Apr 2020, 23:38:00 UTC - in response to Message 93560.  

I'm back running btw, with only a few hours to go before my deadlines. More failures coming...

20 tasks aborted by the server for not starting before their deadline. Oh the irony...
At least some more came down
ID: 93575 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Millenium

Send message
Joined: 20 Sep 05
Posts: 68
Credit: 184,283
RAC: 0
Message 93671 - Posted: 6 Apr 2020, 19:46:00 UTC - in response to Message 93435.  

But why lol. Just keep them at 100%.
ID: 93671 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Sesson

Send message
Joined: 23 Mar 20
Posts: 2
Credit: 513,889
RAC: 0
Message 94089 - Posted: 10 Apr 2020, 16:55:49 UTC
Last modified: 10 Apr 2020, 16:57:08 UTC

I am running at 100% time and 100% to 75% cores with HT enabled, while I underclock the CPU to reduce temperature and noise.
ID: 94089 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
bkil
Avatar

Send message
Joined: 11 Jan 20
Posts: 97
Credit: 4,433,288
RAC: 0
Message 95988 - Posted: 4 May 2020, 6:31:04 UTC - in response to Message 93392.  
Last modified: 4 May 2020, 6:32:39 UTC

According to my measurement, I always apply the "partial use of all cores" philosophy. It can be easily tested a thermally-constrained system.

If I set it to only use 1-2 cores, it will dial up the fans to 100% RPM and throttle like mad, but if I run over all cores and modulate the computing cores idle time in sync by hand in 50% of the time, the fans are spinning at a quiet setting (BOINC's CPU usage modulation doesn't seem to be that efficient).

This is related to turbo boost, power increasing with the square of voltage, allowing HT (almost 30-50% gain for negligible additional power), and package power saving optimizations.
ID: 95988 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote

Message boards : Number crunching : Partial use of many CPUs vs. Complete use of one CPU?



©2024 University of Washington
https://www.bakerlab.org