Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go »
No member browsing this thread
Thread Status: Active
Total posts in this thread: 19
Posts: 19   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 2430 times and has 18 replies Next Thread
sepmsk
Cruncher
Russia
Joined: Dec 31, 2007
Post Count: 24
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Boinc-client ignores "number of CPUs" centralized setting at profile

Hi,

I'm running boinc in headless setup (without GUI) on Linux Debian 11 on one of my machines. I see this machine in WCG devices list and see that it received my customized profile. The problem is the client applies only part of CPU settings. I configured CPU utilization at max 50% in the profile and also set:
On multiprocessors, at most use: 4 processors
On multiprocessors, use: 100 % of processors

Boinc client indeed operates with 50% CPU utilization but takes all CPUs, not just 4 I configured. This is a fresh setup, I didn't touch any local configs yet.

How can I have boinc use at most 4 processors?

Thank you!
----------------------------------------
[Edit 2 times, last edit by sepmsk at Feb 6, 2022 7:34:19 PM]
[Feb 6, 2022 7:28:24 PM]   Link   Report threatening or abusive post: please login first  Go to top 
PMH_UK
Veteran Cruncher
UK
Joined: Apr 26, 2007
Post Count: 741
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Boinc-client ignores "number of CPUs" centralized setting at profile

I'm not sure the description is accurate of "The number of processors used will be the lesser of the two fields below.".
Suggest try reducing % of CPUs.

Paul.
----------------------------------------
Paul.
[Feb 6, 2022 9:13:32 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Grumpy Swede
Master Cruncher
Svíþjóð
Joined: Apr 10, 2020
Post Count: 1884
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Boinc-client ignores "number of CPUs" centralized setting at profile

Local preferences in the client, overrides global preferences.
----------------------------------------

[Feb 6, 2022 11:26:14 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Mike.Gibson
Ace Cruncher
England
Joined: Aug 23, 2007
Post Count: 11823
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Boinc-client ignores "number of CPUs" centralized setting at profile

sepmsk

I am not sure what you are trying to get. How many threads do you have? Are you trying to use 4, or 50% of 4 which is 2?

Mike
[Feb 7, 2022 12:09:33 AM]   Link   Report threatening or abusive post: please login first  Go to top 
ca05065
Senior Cruncher
Joined: Dec 4, 2007
Post Count: 325
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Boinc-client ignores "number of CPUs" centralized setting at profile

As far as I am aware, if BOINC is told to restrict the number of CPUs to use, it does not lock a specific work unit to a specific CPU core.
[Feb 7, 2022 8:39:57 AM]   Link   Report threatening or abusive post: please login first  Go to top 
BobbyB
Veteran Cruncher
Canada
Joined: Apr 25, 2020
Post Count: 583
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Boinc-client ignores "number of CPUs" centralized setting at profile

I used % of CPUs to use to make this work some time ago (no more)

I just did it now on a 4 core machine. Told it 74% and at once 2 running tasks stopped Windows 10 client 7.14.3

I then tried an 8 core machine Ubuntu 20.04.1 client 7.16.6 at 49% and 5 tasks stopped; changed it to 50% and 1 task started again.

Both are set at 100% of CPU time

I'm doing this using the BOINC manager running on another machine and connect to the target remotely via my LAN.

Neither of these 2 machines are headless but I did try a headless Ubuntu once (just to see) and I could still connect to it using the Boinc manager (GUI).
----------------------------------------
[Edit 5 times, last edit by BobbyB at Feb 7, 2022 3:50:28 PM]
[Feb 7, 2022 3:27:55 PM]   Link   Report threatening or abusive post: please login first  Go to top 
BobbyB
Veteran Cruncher
Canada
Joined: Apr 25, 2020
Post Count: 583
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Boinc-client ignores "number of CPUs" centralized setting at profile

I'm at the machine now and here is what changes when I do it using the Boinc Manager GUI

/etc/boinc-client/global_prefs_override.xml was changed in this field:

<max_ncpus_pct>100.000000</max_ncpus_pct>
[Feb 7, 2022 4:16:15 PM]   Link   Report threatening or abusive post: please login first  Go to top 
sepmsk
Cruncher
Russia
Joined: Dec 31, 2007
Post Count: 24
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Boinc-client ignores "number of CPUs" centralized setting at profile

Hi all, many thanks for the help! This machine has 6 cores and I'm trying to have boinc use 4 cores only. I would prefer not to change "On multiprocessors, use: 100 % of processors" parameter since a have another 4 core machine attached to this profile and I'm just fine with boinc using 4 cores (100% of CPUs) there.

I configured
<global_preferences>
<max_cpus>4</max_cpus>
</global_preferences>

in /etc/boinc-client/global_prefs_override.xml file on this 6 core machine and issued
$ sudo -u boinc boinccmd --read_global_prefs_override
command. However, I still see 6 wcgrid tasks running instead of 4. What am I missing?
----------------------------------------
[Edit 2 times, last edit by sepmsk at Feb 7, 2022 11:42:56 PM]
[Feb 7, 2022 11:39:56 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Mike.Gibson
Ace Cruncher
England
Joined: Aug 23, 2007
Post Count: 11823
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Boinc-client ignores "number of CPUs" centralized setting at profile

Why not have 2 profiles? There are 4 available.

Another alternative is to introduce a module app_config.xml to specify the maximum number of any particular project on a particular machine.

You can not restrict to 0. That can be done in Available Projects.

<?xml version="1.0" encoding="UTF-8"?><app_config>
<app><name>arp1</name><max_concurrent>8</max_concurrent></app>
<app><name>mcm1</name><max_concurrent>1</max_concurrent></app>
<app><name>hst1</name><max_concurrent>1</max_concurrent></app>
<app><name>opn1</name><max_concurrent>8</max_concurrent></app>
</app_config>

That has to be done on each machine individually.

Mike
----------------------------------------
[Edit 3 times, last edit by Mike.Gibson at Feb 8, 2022 3:06:30 AM]
[Feb 8, 2022 3:02:09 AM]   Link   Report threatening or abusive post: please login first  Go to top 
BobbyB
Veteran Cruncher
Canada
Joined: Apr 25, 2020
Post Count: 583
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Boinc-client ignores "number of CPUs" centralized setting at profile

I gave the answer above. My solutions has nothing to do with profiles in WCG. It's on the machine itself using whatever profile you like (default, work, home, or school).

I just use profiles for which projects this profile will allow and how many of each (Project Limits and Available Projects). The rest of the parameters are default. (Processor Usage, Graphics Card Usage, Graphics, Disk Usage, Memory Usage, Network Usage, and Workunit Cache Settings.

edit this file: /etc/boinc-client/global_prefs_override.xml

change this line:
<max_ncpus_pct>100.000000</max_ncpus_pct>
to
<max_ncpus_pct>67.000000</max_ncpus_pct>

then boinccmd --read_global_prefs_override

If 67.000000 gives you more than 4 tasks then use 66.000000

Edit: and to make sure this is correct I just did this from a terminal line as if the machine were in headless mode.. Set to 50.000000 read the override file and 4 of 8 tasks stopped then reset to 100% and all 8 run again.
----------------------------------------
[Edit 4 times, last edit by BobbyB at Feb 8, 2022 7:16:30 AM]
[Feb 8, 2022 6:56:18 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Posts: 19   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Post new Thread