LINUX Command Boinc-client --> show %CPU used + repository ppa:costamagnagianfranco/boinc

Questions and Answers : Unix/Linux : LINUX Command Boinc-client --> show %CPU used + repository ppa:costamagnagianfranco/boinc
Message board moderation

To post messages, you must log in.

AuthorMessage
DanHansen@Denmark
Volunteer tester
Avatar

Send message
Joined: 14 Nov 12
Posts: 194
Credit: 5,881,465
RAC: 0
Denmark
Message 1427937 - Posted: 13 Oct 2013, 6:13:43 UTC

Hi boinc-friends ;)

I'm running several linux boxes and have a few questions I hope you can help me solve.

#1 I'm running linux/ubuntu on my computers and all computers are running the boinc-client only. Therefore I'm using the command line tool "boinccmd" to comunicate with the computers..
Does anyone know a command to check the current CPU time % setup? (e.g. Use at most: 50% of CPU time)

If possible, the command to check the other 2 fields as well.
On multiprocessors, use at most: --- processors
On multiprocessors, use at most: --- % of the processors

#2 I'm using the repository ppa:costamagnagianfranco/boinc to allways keep the boinc updated running the newest version of boinc, but I'm not sure if this works. I have been trying to update/upgrade ubuntu a few times, and I'm not sure anything changed.
Anybody who have an idea or know if this was a some kind of a test project only? In any case, it was a great idea!!!

Looking forward to hear from you...

Keep on crunching friends ;)

Kind Regards,
Dan Hansen
Denmark
ID: 1427937 · Report as offensive
Profile Gundolf Jahn

Send message
Joined: 19 Sep 00
Posts: 3184
Credit: 446,358
RAC: 0
Germany
Message 1427949 - Posted: 13 Oct 2013, 7:34:48 UTC - in response to Message 1427937.  

#1 I'm running linux/ubuntu on my computers and all computers are running the boinc-client only. Therefore I'm using the command line tool "boinccmd" to comunicate with the computers..
Does anyone know a command to check the current CPU time % setup? (e.g. Use at most: 50% of CPU time)

If possible, the command to check the other 2 fields as well.
On multiprocessors, use at most: --- processors
On multiprocessors, use at most: --- % of the processors

AFAIK, there's no command for that, but you can check in global_prefs.xml and global_prefs_override.xml for the <cpu_usage_limit> parameter. The other two are <max_cpus> and <max_ncpus_pct> respectively.

Gruß
Gundolf
Computer sind nicht alles im Leben. (Kleiner Scherz)

SETI@home classic workunits 3,758
SETI@home classic CPU time 66,520 hours
ID: 1427949 · Report as offensive
DanHansen@Denmark
Volunteer tester
Avatar

Send message
Joined: 14 Nov 12
Posts: 194
Credit: 5,881,465
RAC: 0
Denmark
Message 1427967 - Posted: 13 Oct 2013, 9:12:29 UTC

Hallo Gundolf..

Vielen dank für deine antwort ;)
OK, ich verstehen, aber

Wo finde ich die "global_prefs.xml and global_prefs_override.xml" und wie kann ich sie lesen? Mitt "VI"? Wollen Sie mir bitte zeigen, wie ich es tun?


Freundlichen Grüßen
Dan Hansen
Dänemark
ID: 1427967 · Report as offensive
Profile Gundolf Jahn

Send message
Joined: 19 Sep 00
Posts: 3184
Credit: 446,358
RAC: 0
Germany
Message 1428003 - Posted: 13 Oct 2013, 11:13:09 UTC - in response to Message 1427967.  
Last modified: 13 Oct 2013, 11:28:01 UTC

Those two files are located in the BOINC data directory (at least one of them; global_prefs_override.xml is only cretaed when you use the local preferences of the BOINC manager - which you don't do ;-).

I'm not sure if there's always a separate data directory with linux, but if you find the file client_state.xml, you've found the correct folder.

And yes, VI is fine, as is any text-reading tool (cat, tail, head, grep, ...), since the BOINC XML isn't a "real" XML anyway.

Gruß
Gundolf
[edit]Ach, und ich habe nicht auf Deutsch geantwortet, damit alle anderen Interessenten es auch verstehen können. ;-)[/edit]
ID: 1428003 · Report as offensive
Profile Jord
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 15184
Credit: 4,362,181
RAC: 3
Netherlands
Message 1428022 - Posted: 13 Oct 2013, 14:03:58 UTC - in response to Message 1428003.  
Last modified: 13 Oct 2013, 14:04:28 UTC

I'm not sure if there's always a separate data directory with linux, but if you find the file client_state.xml, you've found the correct folder.

Not by default under Linux and not when installed from repositories.
Possible when using the Berkeley Installer, as that puts everything in a subdirectory with the installer's name under the Home directory.

But else, see (in this case) http://boinc.berkeley.edu/wiki/Installing_BOINC_on_Ubuntu, where it says:

What the installer does

1. Puts the BOINC binaries (boinc, boinccmd and boincmgr) in /usr/bin .
2. Creates a configuration directory /etc/boinc-client containing files cc_config.xml, global_prefs_override.xml, gui_rpc_auth.cfg, and remote_hosts.cfg (It is a Debian convention that such files live under /etc)
3. Creates the working directory /var/lib/boinc-client/ for BOINC data files and the slots and projects directories. Also creates links from this directory to the files in /etc/boinc-client
4. Creates a user named boinc. For improved security, this boinc user owns the BOINC working directory and all the data files and sub-directories created under the working directory.
5. Creates the daemon "init" script, /etc/init.d/boinc-client, and a set of configuration options for the daemon at /etc/default/boinc-client
6. Sets up the daemon to autostart at boot time.


So in this case, look in /etc/boinc-client
ID: 1428022 · Report as offensive
DanHansen@Denmark
Volunteer tester
Avatar

Send message
Joined: 14 Nov 12
Posts: 194
Credit: 5,881,465
RAC: 0
Denmark
Message 1428131 - Posted: 13 Oct 2013, 18:14:03 UTC

Hi Jord and Gundolf,

Thanks for your replies...

Regarding "epository ppa:costamagnagianfranco/boinc". This means that it is still active!?!
Does any of you use this repository???

Regarding "global_prefs.xml and global_prefs_override.xml", I'm not quite sure which does what and how it's prioritized!? I have been reading and asking about the priority of the different computer setup's, because I wanted to know in which sequence the different setup's is read/used by boinc (boinc-client only, not boinc manager --> windows stuff) This I know..
The standard way, I guess, is that when you attach to a project, the "global settings" from the account page is used. Then if you change the setup on computer "A" using the boinccmd command line tool, this is what is used. And the "Global settings" is ignored on the next "update/contact to project server". But from this point and forward, I know nothing about how it's done..
Therefore, everything you can tell me and want to tell me about this will be greatly appreciated...

Kind Regards,
Dan/Denmark
ID: 1428131 · Report as offensive
Profile arkayn
Volunteer tester
Avatar

Send message
Joined: 14 May 99
Posts: 4438
Credit: 55,006,323
RAC: 0
United States
Message 1428188 - Posted: 13 Oct 2013, 20:45:59 UTC - in response to Message 1428131.  

Hi Jord and Gundolf,

Thanks for your replies...

Regarding "epository ppa:costamagnagianfranco/boinc". This means that it is still active!?!
Does any of you use this repository???

Kind Regards,
Dan/Denmark


This is the primary repository that we recommend to Ubuntu and Linux Mint users as it stays up to date with the all releases from Berkeley.


ID: 1428188 · Report as offensive
Profile Jord
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 15184
Credit: 4,362,181
RAC: 3
Netherlands
Message 1428696 - Posted: 14 Oct 2013, 21:43:21 UTC - in response to Message 1428131.  

(boinc-client only, not boinc manager --> windows stuff)

If by this you mean that BOINC Manager is only for Windows, then you're thinking it wrong. boinc-client is the client, boinc-manager is BOINC Manager, boinccmd is the BOINC command tool. These binaries are built for all default platforms (Linux, Windows and Macintosh).
ID: 1428696 · Report as offensive

Questions and Answers : Unix/Linux : LINUX Command Boinc-client --> show %CPU used + repository ppa:costamagnagianfranco/boinc


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.