From f33631cbbc2c7d413418da0ac2d07590ee9415d5 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 20 Jan 2009 18:06:49 +0000 Subject: [PATCH] - client: fix messages svn path=/trunk/boinc/; revision=16960 --- checkin_notes | 7 +++++++ client/rr_sim.cpp | 21 ++++++--------------- client/work_fetch.cpp | 6 ++++-- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/checkin_notes b/checkin_notes index 11167fcfa6..b52f8a392e 100644 --- a/checkin_notes +++ b/checkin_notes @@ -499,3 +499,10 @@ David 19 Jan 2009 sched_config.cpp,h sched_result.cpp server_types.h + +David 20 Jan 2009 + - client: fix messages + + client/ + rr_sim.cpp + work_fetch.cpp diff --git a/client/rr_sim.cpp b/client/rr_sim.cpp index 88ef753171..d2c0a99b0f 100644 --- a/client/rr_sim.cpp +++ b/client/rr_sim.cpp @@ -39,12 +39,12 @@ struct RR_SIM_STATUS { inline bool can_run(RESULT* rp) { return coprocs.sufficient_coprocs( - rp->avp->coprocs, log_flags.rr_simulation, "rr_sim" + rp->avp->coprocs, false, "rr_sim" ); } inline void activate(RESULT* rp, double when) { coprocs.reserve_coprocs( - rp->avp->coprocs, rp, log_flags.rr_simulation, "rr_sim" + rp->avp->coprocs, rp, false, "rr_sim" ); if (log_flags.rr_simulation) { msg_printf(rp->project, MSG_INFO, @@ -59,7 +59,7 @@ struct RR_SIM_STATUS { // and adjust CPU time left for other results // inline void remove_active(RESULT* rpbest) { - coprocs.free_coprocs(rpbest->avp->coprocs, rpbest, log_flags.rr_simulation, "rr_sim"); + coprocs.free_coprocs(rpbest->avp->coprocs, rpbest, false, "rr_sim"); vector::iterator it = active.begin(); while (it != active.end()) { RESULT* rp = *it; @@ -216,7 +216,7 @@ void CLIENT_STATE::rr_simulation() { if (log_flags.rr_simulation) { msg_printf(0, MSG_INFO, - "[rr_sim] rr_sim start: now %f work_buf_total %f", + "[rr_sim] rr_sim start: now %.2f work_buf_total %.2f", now, work_buf_total() ); } @@ -299,7 +299,7 @@ void CLIENT_STATE::rr_simulation() { if (atp && atp->procinfo.working_set_size_smoothed > ar) { if (log_flags.rr_simulation) { msg_printf(pbest, MSG_INFO, - "[rr_sim] result %s misses deadline but too large to run", + "[rr_sim] %s misses deadline but too large to run", rpbest->name ); } @@ -308,7 +308,7 @@ void CLIENT_STATE::rr_simulation() { pbest->rr_sim_status.deadlines_missed++; if (log_flags.rr_simulation) { msg_printf(pbest, MSG_INFO, - "[rr_sim] result %s misses deadline by %f", + "[rr_sim] %s misses deadline by %.2f", rpbest->name, diff ); } @@ -350,15 +350,6 @@ void CLIENT_STATE::rr_simulation() { break; } } - - // If all work done for a project, subtract that project's share - // - if (pbest->rr_sim_status.none_active()) { - if (pbest->rr_sim_status.has_cpu_jobs) { - cpu_work_fetch.total_runnable_share -= pbest->resource_share; - } - } - sim_now += rpbest->rrsim_finish_delay; } diff --git a/client/work_fetch.cpp b/client/work_fetch.cpp index 8e6e86aab9..313c3930cc 100644 --- a/client/work_fetch.cpp +++ b/client/work_fetch.cpp @@ -145,18 +145,19 @@ void WORK_FETCH::set_overall_debts() { void RSC_WORK_FETCH::print_state(char* name) { msg_printf(0, MSG_INFO, - "[wfd] %s: shortfall %.2f nidle %.2f total RS %.2f runnable RS %.2f", + "[wfd] %s: shortfall %.2f nidle %.2f fetchable RS %.2f runnable RS %.2f", name, shortfall, nidle_now, total_fetchable_share, total_runnable_share ); for (unsigned int i=0; inon_cpu_intensive) continue; RSC_PROJECT_WORK_FETCH& pwf = project_state(p); msg_printf(p, MSG_INFO, "[wfd] %s: runshare %.2f debt %.2f backoff t %.2f int %.2f", name, - pwf.runnable_share, pwf.debt, pwf.backoff_time-gstate.now, pwf.backoff_interval + pwf.runnable_share, pwf.debt, pwf.backoff_time, pwf.backoff_interval ); } } @@ -169,6 +170,7 @@ void WORK_FETCH::print_state() { } for (unsigned int i=0; inon_cpu_intensive) continue; msg_printf(p, MSG_INFO, "[wfd] overall_debt %f", p->pwf.overall_debt); } msg_printf(0, MSG_INFO, "[wfd] ------- end work fetch state -------");