Page 1 of 1

#1 CPU affinity

Posted: Fri Jul 25, 2008 12:20 pm
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:

#2

Posted: Fri Jul 25, 2008 12:28 pm
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 :?

#3

Posted: Fri Jul 25, 2008 12:39 pm
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

#4

Posted: Fri Jul 25, 2008 9:12 pm
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.