Limiting CPU & RAM from Linux Terminal

Message boards : Questions and problems : Limiting CPU & RAM from Linux Terminal
Message board moderation

To post messages, you must log in.

AuthorMessage
Daniel_G

Send message
Joined: 7 Sep 08
Posts: 2
United Kingdom
Message 20026 - Posted: 7 Sep 2008, 15:18:00 UTC

Hi,

I'm currently running BOINC from a remote linux terminal, but I can't figure out how to limit the CPU and RAM usage.

I start BOINC with "./boinc" from inside a screen session, and everything runs fine, but it always uses 4/4 processors, where as I only want it to use 3/4 processors.

Any ideas?

Cheers,
Daniel.
ID: 20026 · Report as offensive
andrew.kingwell

Send message
Joined: 8 Aug 08
Posts: 3
United Kingdom
Message 20031 - Posted: 7 Sep 2008, 17:49:37 UTC - in response to Message 20026.  

...I start BOINC with "./boinc" from inside a screen session, and everything runs fine, but it always uses 4/4 processors, where as I only want it to use 3/4 processors...


Try editing the "global_prefs_override.xml" file in the BOINC directory and amend the line

<max_ncpus_pct>100.000000</max_ncpus_pct>

to
<max_ncpus_pct>75.000000</max_ncpus_pct>


This will set the BOINC client to use 3/4 of your processors when it re-reads the settings files on startup. From the command line you will need to issue

boinccmd --read_global_prefs_override

to get the revised settings used at once.

Andrew
ID: 20031 · Report as offensive
Daniel_G

Send message
Joined: 7 Sep 08
Posts: 2
United Kingdom
Message 20033 - Posted: 7 Sep 2008, 19:36:46 UTC

Excellent, I was looking through the directory trying to find a config file and I have no idea how I managed to miss that...

Thank you sir!
ID: 20033 · Report as offensive

Message boards : Questions and problems : Limiting CPU & RAM from Linux Terminal

Copyright © 2019 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.