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


log in

Advanced search

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

Author Message
DanHansen@Denmark
Volunteer tester
Avatar
Send message
Joined: 14 Nov 12
Posts: 162
Credit: 512,531
RAC: 9,809
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

Profile Gundolf Jahn
Send message
Joined: 19 Sep 00
Posts: 3184
Credit: 354,909
RAC: 21
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

DanHansen@Denmark
Volunteer tester
Avatar
Send message
Joined: 14 Nov 12
Posts: 162
Credit: 512,531
RAC: 9,809
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

Profile Gundolf Jahn
Send message
Joined: 19 Sep 00
Posts: 3184
Credit: 354,909
RAC: 21
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]

Profile Ageless
Avatar
Send message
Joined: 9 Jun 99
Posts: 12127
Credit: 2,519,625
RAC: 353
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
____________
Jord

Loving awareness is free.

DanHansen@Denmark
Volunteer tester
Avatar
Send message
Joined: 14 Nov 12
Posts: 162
Credit: 512,531
RAC: 9,809
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

Profile arkayn
Volunteer tester
Avatar
Send message
Joined: 14 May 99
Posts: 3542
Credit: 46,076,772
RAC: 30,531
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.

____________

Profile Guy
Volunteer moderator
Send message
Joined: 3 Apr 99
Posts: 1987
Credit: 28,916,826
RAC: 132,947
United States
Message 1428671 - Posted: 14 Oct 2013, 20:50:45 UTC
Last modified: 21 Mar 2014, 21:53:36 UTC

--

Profile Ageless
Avatar
Send message
Joined: 9 Jun 99
Posts: 12127
Credit: 2,519,625
RAC: 353
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).
____________
Jord

Loving awareness is free.

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

Copyright © 2014 University of California