Welcome to MilkyWay@home

CPU usage

Message boards : Number crunching : CPU usage
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile Edward Lim

Send message
Joined: 27 Aug 10
Posts: 9
Credit: 14,131,030
RAC: 0
Message 45693 - Posted: 22 Jan 2011, 15:59:19 UTC

Is there a way to limit CPU usage to 1 processor on a multi-processor machine. I have a 4 core machine and MilkyWay@Home N-Body Simulation uses all four cores thereby limiting WU processing.
ID: 45693 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Brickhead
Avatar

Send message
Joined: 20 Mar 08
Posts: 108
Credit: 2,607,924,860
RAC: 0
Message 45695 - Posted: 22 Jan 2011, 16:52:30 UTC - in response to Message 45693.  

There is a way, but I didn't understand what the problem is. If you were to limit CPU usage to 1 core (25% relative or 1 absolute in your preferences), surely that would limit WU processing?

If, however, you want to prevent N-Body WUs from hindering GPU work, that's already taken care of: The small portion of CPU work that the GPU WUs need takes priority over CPU WUs.
ID: 45695 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Edward Lim

Send message
Joined: 27 Aug 10
Posts: 9
Credit: 14,131,030
RAC: 0
Message 45698 - Posted: 22 Jan 2011, 18:07:15 UTC - in response to Message 45695.  

HI,
Doesn't it make sense to run other WU's utilizing the other 3 cores instead of monopolizing all 4 on 1 WU?
ID: 45698 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Brickhead
Avatar

Send message
Joined: 20 Mar 08
Posts: 108
Credit: 2,607,924,860
RAC: 0
Message 45704 - Posted: 22 Jan 2011, 20:56:59 UTC - in response to Message 45698.  

Ah, I see.

Performance-wise, I think one multi-threaded task can be just as efficient as several single-threaded ones. In other words, it can run four times as fast on four cores than it would on one.

However, I've seen at least one example where multi-threaded means incompatible: The GPU_ATI_5k science app over at DNETC. That one tries to use all available graphics processors, and although some have claimed success on two cards after a clean install of some driver versions, I've never gotten anything but errors on my four. My point is, when BOINC is so totally geared towards distributing tasks among several processors (be that GPUs or CPU cores), why do they bother? (Like... If you have four kids successfully riding to school each on their own bicycle, why would you even try to weld all those bicycles together?)

Oh well, back on track, I don't think you'll se any performance hit from having all four cores serve one N-Body WU.
ID: 45704 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Matt Arsenault
Volunteer moderator
Project developer
Project tester
Project scientist

Send message
Joined: 8 May 10
Posts: 576
Credit: 15,979,383
RAC: 0
Message 45707 - Posted: 23 Jan 2011, 0:47:34 UTC - in response to Message 45698.  

HI,
Doesn't it make sense to run other WU's utilizing the other 3 cores instead of monopolizing all 4 on 1 WU?
No
ID: 45707 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Edward Lim

Send message
Joined: 27 Aug 10
Posts: 9
Credit: 14,131,030
RAC: 0
Message 45712 - Posted: 23 Jan 2011, 7:25:04 UTC - in response to Message 45704.  

I wish my GPU could be of service, unfortunately (or not) I use Macs and Bionic has not found the resources to write programs for us Mac heads. CPU's vs GPU's ? GPU's win hands down. Such is life.
ID: 45712 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote

Message boards : Number crunching : CPU usage

©2024 Astroinformatics Group