From 0680b4940823d61fea1b474bea522631fc529c29 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 23 Jun 2006 03:28:35 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=10494 --- checkin_notes | 9 +++ client/cpu_sched.C | 10 ++-- client/log_flags.C | 10 +++- doc/boinc_news.inc | 6 ++ doc/client_msgs.php | 129 ++++++++++++++++++++++++++---------------- doc/configuration.php | 13 ++++- 6 files changed, 119 insertions(+), 58 deletions(-) diff --git a/checkin_notes b/checkin_notes index 097c6cd1c6..fdbdb14e2c 100755 --- a/checkin_notes +++ b/checkin_notes @@ -6670,3 +6670,12 @@ David 22 June 2006 client/ http_curl.C + +David 22 June 2006 + - core client: parse all log flags (I forgot); + print rr_simulation messages only if shortfall is nonzero + (from John McLeod) + + client/ + cpu_sched.C + log_flags.C diff --git a/client/cpu_sched.C b/client/cpu_sched.C index 2653fbd610..3e84fd78c1 100644 --- a/client/cpu_sched.C +++ b/client/cpu_sched.C @@ -880,10 +880,12 @@ bool CLIENT_STATE::rr_simulation(double per_cpu_proc_rate, double rrs) { if (log_flags.rr_simulation) { for (i=0; iproject_name, p->cpu_shortfall - ); + if (p->cpu_shortfall) { + msg_printf(NULL, MSG_INFO, + "rr_simulation: shortfall for %s is %f\n", + p->project_name, p->cpu_shortfall + ); + } } msg_printf(NULL, MSG_INFO, "rr_simulation: end; returning %s; cpu_shortfall %f\n", diff --git a/client/log_flags.C b/client/log_flags.C index 255c134ab5..fcbd25251f 100644 --- a/client/log_flags.C +++ b/client/log_flags.C @@ -61,8 +61,15 @@ int LOG_FLAGS::parse(FILE* f) { else if (!strcmp(tag, "task")) task = get_bool(contents); else if (!strcmp(tag, "file_xfer")) file_xfer = get_bool(contents); else if (!strcmp(tag, "sched_ops")) sched_ops = get_bool(contents); - else if (!strcmp(tag, "state_debug")) state_debug = get_bool(contents); + + else if (!strcmp(tag, "cpu_sched")) cpu_sched = get_bool(contents); + else if (!strcmp(tag, "cpu_sched_debug")) cpu_sched_debug = get_bool(contents); + else if (!strcmp(tag, "rr_simulation")) rr_simulation = get_bool(contents); + else if (!strcmp(tag, "debt_debug")) debt_debug = get_bool(contents); else if (!strcmp(tag, "task_debug")) task_debug = get_bool(contents); + else if (!strcmp(tag, "work_fetch_debug")) work_fetch_debug = get_bool(contents); + else if (!strcmp(tag, "unparsed_xml")) unparsed_xml = get_bool(contents); + else if (!strcmp(tag, "state_debug")) state_debug = get_bool(contents); else if (!strcmp(tag, "file_xfer_debug")) file_xfer_debug = get_bool(contents); else if (!strcmp(tag, "sched_op_debug")) sched_op_debug = get_bool(contents); else if (!strcmp(tag, "http_debug")) http_debug = get_bool(contents); @@ -72,7 +79,6 @@ int LOG_FLAGS::parse(FILE* f) { else if (!strcmp(tag, "measurement_debug")) measurement_debug = get_bool(contents); else if (!strcmp(tag, "poll_debug")) poll_debug = get_bool(contents); else if (!strcmp(tag, "guirpc_debug")) guirpc_debug = get_bool(contents); - else if (!strcmp(tag, "cpu_sched_debug")) cpu_sched_debug = get_bool(contents); else if (!strcmp(tag, "scrsave_debug")) scrsave_debug = get_bool(contents); else { msg_printf(NULL, MSG_ERROR, "Unrecognized tag in %s: %s\n", diff --git a/doc/boinc_news.inc b/doc/boinc_news.inc index bd63a24577..b71d0a9b04 100644 --- a/doc/boinc_news.inc +++ b/doc/boinc_news.inc @@ -1,6 +1,12 @@ boinc_curses, + a Unix console-based program (like 'top') + to monitor and control BOINC." +), array("June 21, 2006", "BOINCstats and the BAM! account manager are now available in Japanese." diff --git a/doc/client_msgs.php b/doc/client_msgs.php index 57a44cee31..a10f704c32 100644 --- a/doc/client_msgs.php +++ b/doc/client_msgs.php @@ -15,6 +15,7 @@ This file has the following format: ")." +The following options control the behavior of BOINC: "; list_start(); list_item_func("", @@ -23,72 +24,102 @@ list_item_func("", Default is 30." ); list_item_func("", - "If nonzero, don't check file sizes" -); + "Normally, the size of application and input files + are compared with the project-supplied values + after the files are downloaded, + and just before starting an application. + If this flag is set, this check is skipped. + Use it if you need to modify files locally for some reason." +); list_item_func("", - "Act as if there were N CPUs (for debugging)." + "Act as if there were N CPUs, + i.e. run N tasks at once (for debugging only; + may cause you to miss deadlines)." ); list_end(); echo " -The core client generates messages: -informational messages saying what it's doing, -and error messages when it encounters problems. -If you run the BOINC manager, these appear in the Messages tab - -informational messages in black, error messages in red. -On Unix, informational messages are written to standard output, -and error messages are written to standard error. -

-These messages can be turned on and off with the following tags +The flags within <log_flags> +control the messages generated by the client. +These messages appear in the Messages tab of the BOINC Manager +(informational messages in black, error messages in red). +On Windows, they are written to a file (stdoutdae.txt). +On Unix, they are written to standard output, +Different types of messages can selectively be turned on and off (<tag>0</tag> for off, <tag>1</tag> for on): +

+The following messages are enabled by default: "; list_start(); list_item_func("", - "Log the start, restart and completion of computational tasks." + "The start and completion of computational tasks." ); list_item_func("", - " Log the start, restart and completion of file transfers. " + "The start and completion of file transfers." ); list_item_func("", - " Log connections with scheduling servers. " + "Connections with scheduling servers." ); -list_item_func("", - " Log changes to the 'client state' data structures. " -); -list_item_func("", - " Log debugging information about task execution. " -); -list_item_func("", - " Log debugging information about file transfers. " -); -list_item_func("", - " Log the request and reply messages of exchanges with scheduling servers. " -); -list_item_func("", - " Log debugging information about HTTP operations. " -); -list_item_func("", - " Log debugging information about HTTP proxy operations. " -); -list_item_func("", - " Log the passage of time. " -); -list_item_func("", - " Log debugging information about network communication. " -); -list_item_func("", - " Log debugging information about measurements of CPU speed, platform, disk space, etc. " -); -list_item_func("", - " Show what poll functions do" -); -list_item_func("", - " Log debugging information about the GUI RPC interface. " +list_end(); +echo " +The following messages are disabled by default +(typically they generate lots of output, +and are used for specific debugging purposes): +"; +list_start(); +list_item_func("", + "CPU scheduler actions (preemption and resumption)" ); list_item_func("", - " Log debugging information about the CPU scheduler. " + "Explain CPU scheduler decisions" +); +list_item_func("", + "Resultsof the round-robin simulation used by CPU scheduler and work-fetch" +); +list_item_func("", + "Changes to project debt" +); +list_item_func("", + "Task start and control details" +); +list_item_func("", + "Work fetch policy decisions" +); +list_item_func("", + "Show any unparsed XML" +); +list_item_func("", + "Show summary of client state after scheduler RPC and garbage collection; + also show garbage collection actions, and when state file is read/written." +); +list_item_func("", + "Show completion status of file transfers" +); +list_item_func("", + "Details of scheduler RPCs" +); +list_item_func("", + "Debugging information about HTTP operations" +); +list_item_func("", + "Debugging information about HTTP proxy operations" +); +list_item_func("", + "Log the passage of time." +); +list_item_func("", + "Debugging information about network communication" +); +list_item_func("", + "Debugging information about CPU benchmarks, platform, disk space, etc. " +); +list_item_func("", + "Show what poll functions do" +); +list_item_func("", + "Debugging information about GUI RPC operations" ); list_item_func("", - " Log debugging information about the screen saver. " + "Debugging information about the screen saver." ); list_end(); diff --git a/doc/configuration.php b/doc/configuration.php index 85614e6f0d..9bb41d64f1 100644 --- a/doc/configuration.php +++ b/doc/configuration.php @@ -51,12 +51,12 @@ htmlspecialchars(" [ N ] [ N ] - [ ] [ N ] [ N ] [ N ] - [ N ] - [ N ] + [ 0|1 ] + [ 0|1 ] + [ 0|1 ] [ path ] [ N ] [ X ] @@ -284,6 +284,13 @@ list_item("nowork_skip", preferences when users click on Update. Use it if your server DB is overloaded." ); +list_item("resend_lost_results", + "If set, and a <other_results> list is present + in scheduler request, + resend any in-progress results not in the list. + This is recommended; + it should increase the efficiency of your project" +); list_item("min_passwd_length", "Minimum length of user passwords. Default is 6." );