| Index | Recent Threads | Unanswered Threads | Who's Active | Guidelines | Search |
| World Community Grid Forums
|
| No member browsing this thread |
|
Thread Status: Active Total posts in this thread: 65
|
|
| Author |
|
|
adriverhoef
Master Cruncher The Netherlands Joined: Apr 3, 2009 Post Count: 2346 Status: Offline Project Badges:
|
Thank you, Tony, that's very nice to hear, and to see an example of using the output of "wcgresults".
----------------------------------------Did you also have 'an idea' (your machine's statistics website) and then build more and more? Since the script spits out ANSI strings to highlight all machine names (using -dq), did that pose any difficulty? An alternative output would be to highlight the time and to put the 'queue' of each machine unhighlighted on a new line, like this (proposing the option -Q, it's just an idea): $ while sleep 3600; do wcgresults -dQQ; done 15:08:34 device_a mcm1:9 oet1:4 zika:1 device_b scc1:3 device_c mcm1:9 16:08:36 device_a mcm1:5 oet1:6 zika:3 device_b scc1:3 device_c mcm1:11 17:08:38 device_a mcm1:3 oet1:7 zika:3 device_b scc1:3 device_c mcm1:12 etc. The results with -dQ (omitting the AppNames, just counting the total current number of WUs per machine) would then be: $ while sleep 3600; do wcgresults -dQ; done 15:08:34 device_a 14 device_b 3 device_c 9 16:08:36 device_a 14 device_b 3 device_c 11 17:08:38 device_a 13 device_b 3 device_c 12 etc. If that makes it easier for someone ... Or, if you're only interested in the current queue of tasks on your local machine (also just an idea): $ wcgresults -tt 13 tasks: 9 downloaded, 3 uploaded, 1 uploading (R) = Running; (S) = Suspended; (.) = Ready to report MCM1_0130341_2677_3(.) SCC1_0000088_Bct-C_99068_1(R) etc. There are just so many possibilities! ![]() [Edit 1 times, last edit by adriverhoef at Feb 12, 2017 9:27:03 AM] |
||
|
|
TonyEllis
Senior Cruncher Australia Joined: Jul 9, 2008 Post Count: 286 Status: Offline Project Badges:
|
Sure - it has grown - but almost finished :-) - just waiting for my USB thermometer to be delivered and that's it... see http://www.phoronix.com/scan.php?page=article...st-temper-linux&num=1
----------------------------------------Thanks for the ideas - just # WIP and # active systems was all I was after... my script just sums and counts the numbers - ignores the machine names so ascii codes not a problem... Here in Australia we are currently experiencing catastrophic heat-wave conditions with temperatures up to 46 C (115 F). My office has no air-conditioning so I have been forced to write a linux script to continuously monitor the CPU temperature and modify <cpu_usage_limit> to limit CPU temp e.g. http://www.sraellis.tk/frame-28-boinc_adjust.html and http://www.sraellis.tk/frame-28-cputemp.html - was more effective than I thought would be possible... Across New South Wales state 76 bush fires are burning and 21 of those are not under control. Many are having to flee their homes and several have nothing but ashes and debris to return to. I live right beside a nature reserve and can practically touch the gum trees from my balcony - bad news if they catch on fire.
Run Time Stats https://grassmere-productions.no-ip.biz/
----------------------------------------[Edit 3 times, last edit by TonyEllis at Feb 13, 2017 7:04:07 PM] |
||
|
|
adriverhoef
Master Cruncher The Netherlands Joined: Apr 3, 2009 Post Count: 2346 Status: Offline Project Badges:
|
Across New South Wales state 76 bush fires are burning and 21 of those are not under control. Many are having to flee their homes and several have nothing but ashes and debris to return to. I live right beside a nature reserve and can practically touch the gum trees from my balcony - bad news if they catch on fire. That would be very bad news, Tony. My girlfriend lived in New South Wales in a nature reserve, in Hazelbrook (Blue Mountains National Park). |
||
|
|
thunder7
Senior Cruncher Netherlands Joined: Mar 6, 2013 Post Count: 238 Status: Offline Project Badges:
|
What arguments do I use to get the jobs on each device that are actually running at the moment? It seems 'in progress' means 'has been downloaded to run as a cpu becomes available'
-w -d shows only 26 occurences of a hostname with has 80 threads running, so that's not it. Using -l 8192 with that doesn't change this number. -dq shows me 1236 projects in progress on the 80 thread machine, so that's not it either. |
||
|
|
SekeRob
Master Cruncher Joined: Jan 7, 2013 Post Count: 2741 Status: Offline |
Probably by quizzing the client_state.xml file. For instance, a running job has a <slot>#</slot> tag and a leading <active_task> and closing </active_task>. Of course, if there are preempted tasks due rush hour, you could have more active than there are threads.
----------------------------------------<active_task> <project_master_url>http://www.worldcommunitygrid.org/</project_master_url> <result_name>OET1_0004609_x4GV6p_rig_52453_0</result_name> <active_task_state>1</active_task_state> <app_version_num>719</app_version_num> <slot>1</slot> <checkpoint_cpu_time>0.000000</checkpoint_cpu_time> <checkpoint_elapsed_time>0.000000</checkpoint_elapsed_time> <checkpoint_fraction_done>0.000000</checkpoint_fraction_done> <checkpoint_fraction_done_elapsed_time>0.000000</checkpoint_fraction_done_elapsed_time> <current_cpu_time>434.890600</current_cpu_time> <once_ran_edf>0</once_ran_edf> <swap_size>48648192.000000</swap_size> <working_set_size>27643904.000000</working_set_size> <working_set_size_smoothed>27287120.000000</working_set_size_smoothed> <page_fault_rate>0.000000</page_fault_rate> <bytes_sent>0.000000</bytes_sent> <bytes_received>0.000000</bytes_received> </active_task> Not sure though what this has anything to do with the topics WCG API that allows extracting info from the Result Status data set on the website. [Edit 1 times, last edit by SekeRob* at Apr 14, 2017 9:15:43 AM] |
||
|
|
adriverhoef
Master Cruncher The Netherlands Joined: Apr 3, 2009 Post Count: 2346 Status: Offline Project Badges:
|
What arguments do I use to get the jobs on each device that are actually running at the moment? You would have to use the -r option that I introduced in version 1.19 of wcgresults. But ... you can only run it on the device itself to get meaningful results. There is no way to tell that a job is running on another device than your current one, as far as I can tell. This is version 1.30.1 of 'wcgresults'. Save the code below to a file called 'wcgresults', then change the values of MEMBER=… and VERIFY=… when/while editing the file to reflect the credentials of your account, chmod +x it and move it to your ~/bin directory. --- CUT HERE --- snip 8< --- snip 8< --- snip 8< --- snip 8< --- snip 8< --- snip 8< #!/bin/sh[Edit 1 times, last edit by adriverhoef at Apr 14, 2017 1:52:03 PM] |
||
|
|
adriverhoef
Master Cruncher The Netherlands Joined: Apr 3, 2009 Post Count: 2346 Status: Offline Project Badges:
|
What's new in version 1.30.1 of 'wcgresults' since version 1.18?
----------------------------------------- Option -t has been added to see the current queue on your device. - Option -r has been added to see the current running tasks on your device. - Option -c has been added to compute the optimal size of the jobcache on your device. - Options -E, -O, -S, -V have been packed into one option -i. - Option -A has been added to suppress ANSI-code. - Option -q now also reports a total count (use with option -d). - Option -x has been added to retry all current file transfers on your device. - Option -m has been added to show all tasknames on your device (with ”report deadline” and ”fraction done”). - A processnumber was added to generate unique filenames. - Option -z has been added to show all suspended tasks on your device. - Option -T has been added as an extension of option -t to show only one taskname per line. [Edit 3 times, last edit by adriverhoef at Apr 14, 2017 6:18:05 PM] |
||
|
|
TonyEllis
Senior Cruncher Australia Joined: Jul 9, 2008 Post Count: 286 Status: Offline Project Badges:
|
WOW - thanks once again adriverhoef for that update..
---------------------------------------- Changed my script to using -Adq so have been able to drop "| sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" which was used to remove the ANSI codes plus have a count now already calculated at the end of the line simplifying my script. So... the only count required in my script is the number of devices, a simple exercise... "wcgresults" is used to generate the stats graphed at this url... http://www.sraellis.tk/frame-17-wcg_wip.html
Run Time Stats https://grassmere-productions.no-ip.biz/
|
||
|
|
adriverhoef
Master Cruncher The Netherlands Joined: Apr 3, 2009 Post Count: 2346 Status: Offline Project Badges:
|
|
||
|
|
adriverhoef
Master Cruncher The Netherlands Joined: Apr 3, 2009 Post Count: 2346 Status: Offline Project Badges:
|
Tony, what would you say if I should be adding a device count to the output of 'wcgresults -Adq'? Like so:
----------------------------------------12:53:53 device1 125 android_device2 3 device3 30 = 158 @ 3 Would you find that useful? I'm asking since it would break your current script, although you wouldn't be needing to compute your number of devices anymore. [Edit 1 times, last edit by adriverhoef at May 21, 2017 12:02:37 AM] |
||
|
|
|