CPU affinity

Just as the title says!
utopia-i
Boinc Warrant Officer Class 2
Boinc Warrant Officer Class 2
Posts: 338
Joined: Fri Sep 14, 2007 5:00 pm
Location: Edinburgh

#1 CPU affinity

Post by utopia-i »

Is it possible to run 100% on one of the cores only, not 50% on each.

my Mac Pro is a 4core quad - I'd like to run 100% on 1 core allowing 3 to be free at 100%

So when boinc mgr starts up its does a check on what the hardware config of the computer it is running on
Mon Jul 14 12:58:04 2008||Processor: 4 GenuineIntel Intel(R) Xeon(R) CPU 5150 @ 2.66GHz [x86 Family 6 Model 15 Stepping 6]
Mon Jul 14 12:58:04 2008||Processor features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM SSE3 MON DSCPL VMX EST TM2 SSSE3 CX16 TPR PDCM
Mon Jul 14 12:58:04 2008||OS: Darwin: 9.4.0
then it gets prefs ...
Mon Jul 14 12:58:05 2008||General prefs: from Cosmology@Home (last modified 30-Jun-2008 12:54:43)
Mon Jul 14 12:58:05 2008||Host location: none
Mon Jul 14 12:58:05 2008||General prefs: using your defaults
Mon Jul 14 12:58:05 2008||Reading preferences override file
and continues .... and I appreciate that boinc does throttle back when other apps start up and I decide to do some real work! :oops:
... is that apple pie I smell

Image
Nightlord

#2

Post by Nightlord »

You should be able to set the CPU affinity, so only one core does the work.

Easy enough in Windows, but I'm not sure how on a Mac :?
utopia-i
Boinc Warrant Officer Class 2
Boinc Warrant Officer Class 2
Posts: 338
Joined: Fri Sep 14, 2007 5:00 pm
Location: Edinburgh

#3

Post by utopia-i »

CPU affinity - thanks I'll google for that :lol:

I'm secretly, well openly, hoping for a boinc command line flag thingmagig

./run_client -usercpu=1 100% ...

there is boinc_cmd within the BOINC directory

[edit: http://www.linuxdevices.com/news/NS7543786562.html] is useful
... is that apple pie I smell

Image
User avatar
MacDitch
Moderator General
Moderator General
Posts: 1129
Joined: Tue Jun 06, 2006 9:19 am
Location: Ex-Edinburgh

#4

Post by MacDitch »

All you have to do is set the 'On multiprocessor systems, use at most xx processors' to 1 in your preferences, either @ the project or (more probably) on te individual machine.

If you set this to 1 it should use (up to) 100% of one core and ignore the rest of them.
Image Image
Post Reply Previous topicNext topic

Return to “Help”