Tasks not using multiple threads
log in

Advanced search

Message boards : Number crunching : Tasks not using multiple threads

Author Message
Werinbert
Send message
Joined: 9 Dec 14
Posts: 14
Credit: 10,009,744
RAC: 0
Message 7357 - Posted: 25 Feb 2021, 16:36:46 UTC

In attempting to run "average" and "long" tasks on multiple threads I have set my app_config to

<app_version>
<app_name>srbase5</app_name>
<cmdline>-t4</cmdline>
<avg_ncpus>4</avg_ncpus>
</app_version>
<app_version>
<app_name>srbase6</app_name>
<cmdline>-t4</cmdline>
<avg_ncpus>4</avg_ncpus>
</app_version>

And then restarted Boinc. Boinc allocates 4 threads to the task but the task only runs on one thread not 4 as desired leaving the other 3 threads running idle.
____________
35376214*3^107944-1 is prime! (20 Dec 2014)

Profile rebirther
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 2 Jan 13
Posts: 7479
Credit: 43,655,567
RAC: 40,568
Message 7358 - Posted: 25 Feb 2021, 16:49:03 UTC - in response to Message 7357.

In attempting to run "average" and "long" tasks on multiple threads I have set my app_config to


srbase5
-t4
4


srbase6
-t4
4


And then restarted Boinc. Boinc allocates 4 threads to the task but the task only runs on one thread not 4 as desired leaving the other 3 threads running idle.


Can you try to remove the avg_ncpus line and restart?

Werinbert
Send message
Joined: 9 Dec 14
Posts: 14
Credit: 10,009,744
RAC: 0
Message 7359 - Posted: 25 Feb 2021, 17:01:01 UTC

Removed the avg_ncpus. Now Boinc allocates only one thread and the task only runs on one thread...so the result is the same as if I never set up the app_config.
____________
35376214*3^107944-1 is prime! (20 Dec 2014)

Profile rebirther
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 2 Jan 13
Posts: 7479
Credit: 43,655,567
RAC: 40,568
Message 7360 - Posted: 25 Feb 2021, 17:14:30 UTC - in response to Message 7359.

Removed the avg_ncpus. Now Boinc allocates only one thread and the task only runs on one thread...so the result is the same as if I never set up the app_config.


hmm strange, ok readd the line and add this to cc_config.xml:

<cc_config> <log_flags> <cpu_sched>1</cpu_sched> <cpu_sched_debug>1</cpu_sched_debug> </log_flags> </cc_config>


I cant test it, Iam using BM 6.10.60. I dont know whats wrong with the client.

wwwwww
Send message
Joined: 27 Feb 17
Posts: 9
Credit: 56,853,601
RAC: 164,901
Message 7361 - Posted: 25 Feb 2021, 17:35:50 UTC - in response to Message 7359.

Maybe you can try to restart your computer? Or go to option -> read config files in Boinc manager.

Werinbert
Send message
Joined: 9 Dec 14
Posts: 14
Credit: 10,009,744
RAC: 0
Message 7362 - Posted: 25 Feb 2021, 17:53:58 UTC

I don't know what is wrong with the client either...


On one of my computers (Win 7 / Intel) I added back the avg_ncpus, then made the changes to the cc_config file and now things are running as expected...

However, the other computer (Win 10 / Ryzen) is still not working right after making the readjustments.
____________
35376214*3^107944-1 is prime! (20 Dec 2014)

Profile rebirther
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 2 Jan 13
Posts: 7479
Credit: 43,655,567
RAC: 40,568
Message 7363 - Posted: 25 Feb 2021, 17:55:46 UTC - in response to Message 7362.

I don't know what is wrong with the client either...


On one of my computers (Win 7 / Intel) I added back the avg_ncpus, then made the changes to the cc_config file and now things are running as expected...

However, the other computer (Win 10 / Ryzen) is still not working right after making the readjustments.


The cc_config entries are only for logging to see what the client is doing, you can disable these with 0

Werinbert
Send message
Joined: 9 Dec 14
Posts: 14
Credit: 10,009,744
RAC: 0
Message 7365 - Posted: 26 Feb 2021, 0:06:59 UTC

I still haven't solved the problem for the Win 10 computer. However for for the one machine that seems to be working with the multithread.....why is the run time the same (or nearly so) as the CPU time? Rather than run time around 1/4 of CPU time.
____________
35376214*3^107944-1 is prime! (20 Dec 2014)

Werinbert
Send message
Joined: 9 Dec 14
Posts: 14
Credit: 10,009,744
RAC: 0
Message 7366 - Posted: 26 Feb 2021, 5:17:01 UTC

Since my comment on run time, the reported run times of my tasks are now equal to the time between task sent and task received by the server.... and unfortunately not the time that the task took to run.
____________
35376214*3^107944-1 is prime! (20 Dec 2014)

Profile rebirther
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 2 Jan 13
Posts: 7479
Credit: 43,655,567
RAC: 40,568
Message 7367 - Posted: 26 Feb 2021, 6:07:45 UTC - in response to Message 7366.

Since my comment on run time, the reported run times of my tasks are now equal to the time between task sent and task received by the server.... and unfortunately not the time that the task took to run.


Maybe the boinc wrapper doesnt calculate the runtime with -t4


Post to thread

Message boards : Number crunching : Tasks not using multiple threads


Main page · Your account · Message boards


Copyright © 2014-2024 BOINC Confederation / rebirther