why does it need all 8 cores to run

Message boards : Number crunching : why does it need all 8 cores to run
Message board moderation

To post messages, you must log in.

AuthorMessage
Stanley A Bourdon

Send message
Joined: 6 Nov 12
Posts: 3
Credit: 203,661
RAC: 10
Message 502 - Posted: 16 Nov 2012, 20:24:30 UTC

Hi

why does it need all 8 cores to run?

Sb
Stanley


Boinc Wikipedia - the FAQ in active change
ID: 502 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Conan
Avatar

Send message
Joined: 5 Sep 11
Posts: 46
Credit: 6,869,320
RAC: 1,096
Australia
Message 505 - Posted: 20 Nov 2012, 12:00:09 UTC

It is a Multi-Threaded Application, meaning it will use as many cores (threads) as are available to process the work units.
Just like SimOne@Home does.

Conan
ID: 505 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Stanley A Bourdon

Send message
Joined: 6 Nov 12
Posts: 3
Credit: 203,661
RAC: 10
Message 507 - Posted: 27 Nov 2012, 17:05:44 UTC - in response to Message 505.  

thank you

they both confuse the scheduler and leave cores not working.
Stanley


Boinc Wikipedia - the FAQ in active change
ID: 507 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Bruce Kennedy

Send message
Joined: 8 Sep 11
Posts: 4
Credit: 1,048,224
RAC: 0
United States
Message 508 - Posted: 28 Nov 2012, 1:41:17 UTC
Last modified: 28 Nov 2012, 1:42:17 UTC

Actually yafu doesn't need all 8 cores to run..... if you trick it!

1. set all projects to no new work.
2. set ncpus in cc_config to # of cores you want to use for yafu. (5 or more)
3. read cc_config for change to take effect.
4. allow new work for yafu.
5. bump minimum work buffer up by 2 days in preferences.
6. downloaded yafu WUs only need # of cores entered in step 2, not all 8.
7. set ncpus back to 8 and repeat step 3.
8. drop minimum work buffer down by 2 days.
8. allow new work for other desired projects.
9. set yafu to no new work otherwise new WUs will take all 8 cores.
10. if needed, suspend any running tasks for a few seconds to get yafu started.

This will keep you crunching yafu for a couple of days and allow GPU and other CPU tasks to run as well. I have not tried setting ncpus to 4 or less. It may allow multiple yafu tasks to run at the same time and defeat the goal. This process takes a few minutes and it would be far better if yafu had a way to select the # of cores in project preferences. Another method is to fire up a virtual machine with the number of cores you want for yafu.
ID: 508 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
NATE1
Avatar

Send message
Joined: 17 Dec 11
Posts: 20
Credit: 3,079,237
RAC: 0
Message 634 - Posted: 5 Feb 2014, 12:26:25 UTC
Last modified: 5 Feb 2014, 12:29:34 UTC

there is another way now.
download boinc version 7.2.39, it's beta but works..
install.
create the following app_config.xml in the yafu directory. use text editor
this will over ride using up all of the cores.in this case it limits the number of threads to 2. so it does not keep your gpu projects apps from running or other ST apps from other projects that are getting close to deadline...
it also lets you run more than one yafu task at a time.
I did not come up with this, found it over on MW@H, a great big thank you to the person that posted it over on MW@H.. after you create the app_config.xml you will need to stop the BOINC client and restart for it to take effect...

<!-- YAFU -->
<app_config>
<!-- YAFU -->
<!-- YAFU -->
<app_version>
<app_name>yafu</app_name>
<plan_class>mt</plan_class>
<avg_ncpus>2</avg_ncpus>
<cmdline>--nthreads 2</cmdline>
</app_version>
</app_config>
ID: 634 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
NATE1
Avatar

Send message
Joined: 17 Dec 11
Posts: 20
Credit: 3,079,237
RAC: 0
Message 635 - Posted: 6 Feb 2014, 16:45:06 UTC

and in case your wondering if you change that app_config.xml to the following it will run like a ST task. just remember that when the yafu-x64-13401.exe is running ( that is on a 64 bit windows host) it will still try and use all of the cores, but that is for very short times, the avg_ncups and --nthreads part control the number of copies of the ecm and gnfs that it will start..

<!-- YAFU -->
<app_config>
<!-- YAFU -->
<!-- YAFU -->
<app_version>
<app_name>yafu</app_name>
<plan_class>mt</plan_class>
<avg_ncpus>1</avg_ncpus>
<cmdline>--nthreads 1</cmdline>
</app_version>
</app_config>
ID: 635 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
EmSti [BlackOps]

Send message
Joined: 20 Mar 12
Posts: 1
Credit: 995,449
RAC: 0
United States
Message 654 - Posted: 21 Mar 2014, 3:27:06 UTC - in response to Message 635.  

and in case your wondering if you change that app_config.xml to the following it will run like a ST task. just remember that when the yafu-x64-13401.exe is running ( that is on a 64 bit windows host) it will still try and use all of the cores, but that is for very short times, the avg_ncups and --nthreads part control the number of copies of the ecm and gnfs that it will start..

<!-- YAFU -->
<app_config>
<!-- YAFU -->
<!-- YAFU -->
<app_version>
<app_name>yafu</app_name>
<plan_class>mt</plan_class>
<avg_ncpus>1</avg_ncpus>
<cmdline>--nthreads 1</cmdline>
</app_version>
</app_config>



Thank you, very helpful
ID: 654 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Ralf02061973
Avatar

Send message
Joined: 16 Jan 16
Posts: 2
Credit: 4,322,624
RAC: 0
Germany
Message 805 - Posted: 17 Jan 2016, 19:20:16 UTC

hi

one question about this app_config file.
i used this Settings in my app_config file:

<app_config>

<app_version>
<app_name>yafu</app_name>
<plan_class>mt</plan_class>
<avg_ncpus>2</avg_ncpus>
<cmdline>--nthreads 2</cmdline>
</app_version>

<app_version>
<app_name>yafu-low</app_name>
<plan_class>mt</plan_class>
<avg_ncpus>2</avg_ncpus>
<cmdline>--nthreads 2</cmdline>
</app_version>

</app_config>

the Problem is i want run 2 threads with 2 cores.
but if i start boinc yafu running 3 threads with 2 cores-
what i did wrong?
i hope someone can help me.

greetings
Ralf
Boinc runs here on:
Intel i7-3770K + IntelHD4000
Android-Stick-ARM-Cotex-A17
Sony-Z5C-ARM-Cortex-A53/A57
Nvidia GT-630 / Nvidia GTX-750Ti
ID: 805 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
hsdecalc

Send message
Joined: 3 Apr 16
Posts: 3
Credit: 2,729,728
RAC: 0
Germany
Message 832 - Posted: 5 Apr 2016, 12:31:10 UTC

I see the same effect. But I think, it is because of short running tasks. The ecm.exe runs between 3-15 sec and it comes to overlap.
I use following settings:

<app_config>
<app_version>
<app_name>yafu</app_name>
<plan_class>mt</plan_class>
<avg_ncpus>4.0</avg_ncpus>
<max_ncpus>4.0</max_ncpus>
<cmdline>--nthreads 4</cmdline>
</app_version>
<app_version>
<app_name>yafu-low</app_name>
<plan_class>mt</plan_class>
<avg_ncpus>4.0</avg_ncpus>
<max_ncpus>4.0</max_ncpus>
<cmdline>--nthreads 4</cmdline>
</app_version>
<project_max_concurrent>1</project_max_concurrent>
</app_config>

project_max_concurrent
limited the project to start only one job/Wu.
One job is using 4 cpus. I can follow the progress in factor.log.
ID: 832 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote

Message boards : Number crunching : why does it need all 8 cores to run




Datenschutz / Privacy Copyright © 2011-2024 Rechenkraft.net e.V. & yoyo