Message boards : Questions and problems : Problems limiting CPU usage on headless linux box
Message board moderation
Author | Message |
---|---|
Send message Joined: 23 Apr 20 Posts: 3 ![]() |
Hi all. I'm trying to limit cpu usage to half of the available CPUs on a couple of larger hyperthreaded Linux boxes. In the BOINC directory, I've created a global_prefs_override.xml: <global_preferences> <cpu_usage_limit>50.0</cpu_usage_limit> <max_ncpus_pct>50.0</max_ncpus.pct> </global_preferences> But on a 32-thread box, BOINC is still spawning 32 processes. Likewise on a 56-thread server (spawning 56 processes). Any suggestions? |
Send message Joined: 5 Oct 06 Posts: 5149 ![]() |
Do you have GUI control (BOINC Manager) available on that machine? If not, you may need to have access to the Boinccmd tool manual. Two possible problems: You need to read in the override file you've created - options --> Read local prefs file from the Manager, --read_global_prefs_override from boinccmd You (may) have to set Activity to 'run based on preferences' - 'Activity' menu in Manager, --set_run_mode auto from boinccmd. [That may not be needed for this change, but it's worth remembering it for some of the other options] |
Send message Joined: 23 Apr 20 Posts: 3 ![]() |
Sorry... as the title indicated, this is a headless box - no GUI. I presumed restarting BOINC would cause the global override file to be read. Is that not the case? That said, I ran "boinccmd --read_global_prefs_override" - and not seeing any difference. |
Send message Joined: 5 Oct 06 Posts: 5149 ![]() |
That's why I added boinccmd :-) But yes, if you've restarted the machine, that should have done it. You obviously have a second machine, with GUI, to post here. If they're on the same LAN, it's quick and easy to set up Controlling BOINC remotely - that would be worth doing, because then you could see the Event Log messages using the normal Manager across the LAN. That would make it much easier to see what was happening. |
Send message Joined: 14 Aug 19 Posts: 55 ![]() |
Hi all. I'm trying to limit cpu usage to half of the available CPUs on a couple of larger hyperthreaded Linux boxes. If this is the actual text, there's a typo. <max_ncpus_pct>50.0</max_ncpus.pct> should be <max_ncpus_pct>50.0</max_ncpus_pct> Team USA forum Follow us on Twitter Help us #crunchforcures! |
Send message Joined: 23 Apr 20 Posts: 3 ![]() |
Ah... sanity is restored. Thank you! |
Send message Joined: 14 Aug 19 Posts: 55 ![]() |
Great, glad I could help and it was an easy fix. Team USA forum Follow us on Twitter Help us #crunchforcures! |
Copyright © 2025 University of California.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software Foundation.