2008-11-14 22:08:50 +00:00
|
|
|
// This file is part of BOINC.
|
|
|
|
// http://boinc.berkeley.edu
|
|
|
|
// Copyright (C) 2008 University of California
|
|
|
|
//
|
|
|
|
// BOINC is free software; you can redistribute it and/or modify it
|
|
|
|
// under the terms of the GNU Lesser General Public License
|
|
|
|
// as published by the Free Software Foundation,
|
|
|
|
// either version 3 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// BOINC is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
#include "boinc_win.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef SIM
|
|
|
|
#include "sim.h"
|
|
|
|
#else
|
|
|
|
#include "client_state.h"
|
|
|
|
#endif
|
|
|
|
#include "client_msgs.h"
|
|
|
|
|
|
|
|
struct RR_SIM_STATUS {
|
|
|
|
std::vector<RESULT*> active;
|
|
|
|
COPROCS coprocs;
|
|
|
|
double active_ncpus;
|
|
|
|
|
|
|
|
inline bool can_run(RESULT* rp) {
|
|
|
|
return coprocs.sufficient_coprocs(
|
2008-12-08 23:00:23 +00:00
|
|
|
rp->avp->coprocs, log_flags.rr_simulation, "rr_sim"
|
2008-11-14 22:08:50 +00:00
|
|
|
);
|
|
|
|
}
|
2008-12-03 23:30:54 +00:00
|
|
|
inline void activate(RESULT* rp, double when) {
|
2008-11-14 22:08:50 +00:00
|
|
|
coprocs.reserve_coprocs(
|
2008-12-08 23:00:23 +00:00
|
|
|
rp->avp->coprocs, rp, log_flags.rr_simulation, "rr_sim"
|
2008-11-14 22:08:50 +00:00
|
|
|
);
|
2008-12-03 23:30:54 +00:00
|
|
|
if (log_flags.rr_simulation) {
|
|
|
|
msg_printf(rp->project, MSG_INFO,
|
|
|
|
"[rr_sim] starting at %f: %s", when, rp->name
|
|
|
|
);
|
|
|
|
}
|
2008-11-14 22:08:50 +00:00
|
|
|
active.push_back(rp);
|
|
|
|
active_ncpus += rp->avp->avg_ncpus;
|
|
|
|
}
|
|
|
|
// remove *rpbest from active set,
|
|
|
|
// and adjust CPU time left for other results
|
|
|
|
//
|
|
|
|
inline void remove_active(RESULT* rpbest) {
|
2008-12-08 23:00:23 +00:00
|
|
|
coprocs.free_coprocs(rpbest->avp->coprocs, rpbest, log_flags.rr_simulation, "rr_sim");
|
2008-11-14 22:08:50 +00:00
|
|
|
vector<RESULT*>::iterator it = active.begin();
|
|
|
|
while (it != active.end()) {
|
|
|
|
RESULT* rp = *it;
|
|
|
|
if (rp == rpbest) {
|
|
|
|
it = active.erase(it);
|
|
|
|
} else {
|
2008-12-02 03:58:32 +00:00
|
|
|
rp->rrsim_flops_left -= rp->rrsim_flops*rpbest->rrsim_finish_delay;
|
2008-11-14 22:08:50 +00:00
|
|
|
|
|
|
|
// can be slightly less than 0 due to roundoff
|
|
|
|
//
|
2008-12-02 03:58:32 +00:00
|
|
|
if (rp->rrsim_flops_left < -1) {
|
2008-11-14 22:08:50 +00:00
|
|
|
msg_printf(rp->project, MSG_INTERNAL_ERROR,
|
2008-12-02 03:58:32 +00:00
|
|
|
"%s: negative FLOPs left %f", rp->name, rp->rrsim_flops_left
|
2008-11-14 22:08:50 +00:00
|
|
|
);
|
|
|
|
}
|
2008-12-02 03:58:32 +00:00
|
|
|
if (rp->rrsim_flops_left < 0) {
|
|
|
|
rp->rrsim_flops_left = 0;
|
2008-11-14 22:08:50 +00:00
|
|
|
}
|
|
|
|
it++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
active_ncpus -= rpbest->avp->avg_ncpus;
|
|
|
|
}
|
|
|
|
#if 0
|
|
|
|
inline int nactive() {
|
|
|
|
return (int) active.size();
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
RR_SIM_STATUS() {
|
|
|
|
active_ncpus = 0;
|
|
|
|
}
|
|
|
|
~RR_SIM_STATUS() {
|
|
|
|
coprocs.delete_coprocs();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
void RR_SIM_PROJECT_STATUS::activate(RESULT* rp) {
|
|
|
|
active.push_back(rp);
|
|
|
|
active_ncpus += rp->avp->avg_ncpus;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool RR_SIM_PROJECT_STATUS::can_run(RESULT* rp, int ncpus) {
|
|
|
|
if (rp->uses_coprocs()) return true;
|
|
|
|
return active_ncpus < ncpus;
|
|
|
|
}
|
|
|
|
void RR_SIM_PROJECT_STATUS::remove_active(RESULT* r) {
|
|
|
|
std::vector<RESULT*>::iterator it = active.begin();
|
|
|
|
while (it != active.end()) {
|
|
|
|
if (*it == r) {
|
|
|
|
it = active.erase(it);
|
|
|
|
} else {
|
|
|
|
it++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
active_ncpus -= r->avp->avg_ncpus;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Set the project's rrsim_proc_rate:
|
|
|
|
// the fraction of CPU that it will get in round-robin mode.
|
2008-12-02 03:58:32 +00:00
|
|
|
// This should not be applied only to coproc jobs.
|
2008-11-14 22:08:50 +00:00
|
|
|
//
|
|
|
|
void PROJECT::set_rrsim_proc_rate(double rrs) {
|
|
|
|
double x;
|
|
|
|
|
|
|
|
if (rrs) {
|
|
|
|
x = resource_share/rrs;
|
|
|
|
} else {
|
|
|
|
x = 1; // pathological case; maybe should be 1/# runnable projects
|
|
|
|
}
|
|
|
|
|
|
|
|
rr_sim_status.proc_rate = x*gstate.overall_cpu_frac();
|
|
|
|
if (log_flags.rr_simulation) {
|
|
|
|
msg_printf(this, MSG_INFO,
|
|
|
|
"[rr_sim] set_rrsim_proc_rate: %f (rrs %f, rs %f, ocf %f",
|
|
|
|
rr_sim_status.proc_rate, rrs, resource_share, gstate.overall_cpu_frac()
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void CLIENT_STATE::print_deadline_misses() {
|
|
|
|
unsigned int i;
|
|
|
|
RESULT* rp;
|
|
|
|
PROJECT* p;
|
|
|
|
for (i=0; i<results.size(); i++){
|
|
|
|
rp = results[i];
|
|
|
|
if (rp->rr_sim_misses_deadline && !rp->last_rr_sim_missed_deadline) {
|
|
|
|
msg_printf(rp->project, MSG_INFO,
|
|
|
|
"[cpu_sched_debug] Result %s projected to miss deadline.", rp->name
|
|
|
|
);
|
|
|
|
}
|
|
|
|
else if (!rp->rr_sim_misses_deadline && rp->last_rr_sim_missed_deadline) {
|
|
|
|
msg_printf(rp->project, MSG_INFO,
|
|
|
|
"[cpu_sched_debug] Result %s projected to meet deadline.", rp->name
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for (i=0; i<projects.size(); i++) {
|
|
|
|
p = projects[i];
|
|
|
|
if (p->rr_sim_status.deadlines_missed) {
|
|
|
|
msg_printf(p, MSG_INFO,
|
|
|
|
"[cpu_sched_debug] Project has %d projected deadline misses",
|
|
|
|
p->rr_sim_status.deadlines_missed
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Do a simulation of the current workload
|
|
|
|
// with weighted round-robin (WRR) scheduling.
|
|
|
|
// Include jobs that are downloading.
|
|
|
|
//
|
|
|
|
// For efficiency, we simulate a crude approximation of WRR.
|
|
|
|
// We don't model time-slicing.
|
|
|
|
// Instead we use a continuous model where, at a given point,
|
|
|
|
// each project has a set of running jobs that uses at most all CPUs
|
|
|
|
// (and obeys coprocessor limits).
|
|
|
|
// These jobs are assumed to run at a rate proportionate to their avg_ncpus,
|
|
|
|
// and each project gets CPU proportionate to its RRS.
|
|
|
|
//
|
|
|
|
// Outputs are changes to global state:
|
|
|
|
// For each project p:
|
|
|
|
// p->rr_sim_deadlines_missed
|
|
|
|
// p->cpu_shortfall
|
|
|
|
// For each result r:
|
|
|
|
// r->rr_sim_misses_deadline
|
|
|
|
// r->last_rr_sim_missed_deadline
|
|
|
|
// gstate.cpu_shortfall
|
|
|
|
//
|
|
|
|
// Deadline misses are not counted for tasks
|
|
|
|
// that are too large to run in RAM right now.
|
|
|
|
//
|
|
|
|
void CLIENT_STATE::rr_simulation() {
|
|
|
|
double rrs = nearly_runnable_resource_share();
|
2008-12-08 23:00:23 +00:00
|
|
|
double trs;
|
2008-11-14 22:08:50 +00:00
|
|
|
PROJECT* p, *pbest;
|
|
|
|
RESULT* rp, *rpbest;
|
|
|
|
RR_SIM_STATUS sim_status;
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
sim_status.coprocs.clone(coprocs, false);
|
|
|
|
double ar = available_ram();
|
|
|
|
|
|
|
|
if (log_flags.rr_simulation) {
|
|
|
|
msg_printf(0, MSG_INFO,
|
2008-12-08 23:00:23 +00:00
|
|
|
"[rr_sim] rr_sim start: now %f work_buf_total %f rrs %f ncpus %d",
|
|
|
|
now, work_buf_total(), rrs, ncpus
|
2008-11-14 22:08:50 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
for (i=0; i<projects.size(); i++) {
|
|
|
|
p = projects[i];
|
|
|
|
if (p->non_cpu_intensive) continue;
|
|
|
|
p->rr_sim_status.clear();
|
|
|
|
}
|
|
|
|
|
|
|
|
// Decide what jobs to include in the simulation,
|
|
|
|
// and pick the ones that are initially running
|
|
|
|
//
|
|
|
|
for (i=0; i<results.size(); i++) {
|
|
|
|
rp = results[i];
|
|
|
|
if (!rp->nearly_runnable()) continue;
|
|
|
|
if (rp->some_download_stalled()) continue;
|
|
|
|
if (rp->project->non_cpu_intensive) continue;
|
2008-12-02 03:58:32 +00:00
|
|
|
rp->rrsim_flops_left = rp->estimated_flops_remaining();
|
|
|
|
if (rp->rrsim_flops_left <= 0) continue;
|
2008-11-14 22:08:50 +00:00
|
|
|
p = rp->project;
|
|
|
|
if (p->rr_sim_status.can_run(rp, gstate.ncpus) && sim_status.can_run(rp)) {
|
2008-12-03 23:30:54 +00:00
|
|
|
sim_status.activate(rp, now);
|
2008-11-14 22:08:50 +00:00
|
|
|
p->rr_sim_status.activate(rp);
|
|
|
|
} else {
|
|
|
|
p->rr_sim_status.add_pending(rp);
|
|
|
|
}
|
|
|
|
rp->last_rr_sim_missed_deadline = rp->rr_sim_misses_deadline;
|
|
|
|
rp->rr_sim_misses_deadline = false;
|
2008-12-08 23:00:23 +00:00
|
|
|
if (rp->uses_coprocs()) {
|
|
|
|
p->rr_sim_status.has_coproc_jobs = true;
|
|
|
|
} else {
|
|
|
|
p->rr_sim_status.has_cpu_jobs = true;
|
|
|
|
}
|
2008-11-14 22:08:50 +00:00
|
|
|
}
|
|
|
|
|
2008-12-08 23:00:23 +00:00
|
|
|
trs = 0;
|
2008-11-14 22:08:50 +00:00
|
|
|
for (i=0; i<projects.size(); i++) {
|
|
|
|
p = projects[i];
|
|
|
|
if (p->non_cpu_intensive) continue;
|
|
|
|
p->set_rrsim_proc_rate(rrs);
|
2008-12-08 23:00:23 +00:00
|
|
|
if (!p->rr_sim_status.has_coproc_jobs || p->rr_sim_status.has_cpu_jobs) {
|
|
|
|
trs += p->resource_share;
|
|
|
|
}
|
2008-11-14 22:08:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
double buf_end = now + work_buf_total();
|
|
|
|
|
|
|
|
// Simulation loop. Keep going until work done
|
|
|
|
//
|
|
|
|
double sim_now = now;
|
|
|
|
cpu_shortfall = 0;
|
2008-12-03 23:30:54 +00:00
|
|
|
bool all_projects_have_pending = false;
|
2008-11-14 22:08:50 +00:00
|
|
|
while (sim_status.active.size()) {
|
|
|
|
|
|
|
|
// compute finish times and see which result finishes first
|
|
|
|
//
|
|
|
|
rpbest = NULL;
|
|
|
|
for (i=0; i<sim_status.active.size(); i++) {
|
|
|
|
rp = sim_status.active[i];
|
2008-12-02 03:58:32 +00:00
|
|
|
if (rp->uses_coprocs()) {
|
|
|
|
rp->rrsim_flops = rp->avp->flops;
|
|
|
|
} else {
|
|
|
|
p = rp->project;
|
|
|
|
rp->rrsim_flops = p->rr_sim_status.proc_rate;
|
|
|
|
if (p->rr_sim_status.active_ncpus < ncpus) {
|
|
|
|
rp->rrsim_flops *= (ncpus/p->rr_sim_status.active_ncpus);
|
|
|
|
}
|
|
|
|
rp->rrsim_flops *= rp->avp->avg_ncpus/p->rr_sim_status.active_ncpus;
|
|
|
|
if (rp->rrsim_flops > rp->avp->avg_ncpus * overall_cpu_frac()) {
|
|
|
|
rp->rrsim_flops = rp->avp->avg_ncpus * overall_cpu_frac();
|
|
|
|
}
|
|
|
|
rp->rrsim_flops *= gstate.host_info.p_fpops;
|
|
|
|
}
|
|
|
|
rp->rrsim_finish_delay = rp->rrsim_flops_left/rp->rrsim_flops;
|
2008-11-14 22:08:50 +00:00
|
|
|
if (!rpbest || rp->rrsim_finish_delay < rpbest->rrsim_finish_delay) {
|
|
|
|
rpbest = rp;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pbest = rpbest->project;
|
|
|
|
|
|
|
|
if (log_flags.rr_simulation) {
|
|
|
|
msg_printf(pbest, MSG_INFO,
|
|
|
|
"[rr_sim] result %s finishes after %f (%f/%f)",
|
|
|
|
rpbest->name, rpbest->rrsim_finish_delay,
|
2008-12-02 03:58:32 +00:00
|
|
|
rpbest->rrsim_flops_left, rpbest->rrsim_flops
|
2008-11-14 22:08:50 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
// "rpbest" is first result to finish. Does it miss its deadline?
|
|
|
|
//
|
|
|
|
double diff = sim_now + rpbest->rrsim_finish_delay - ((rpbest->computation_deadline()-now)*CPU_PESSIMISM_FACTOR + now);
|
|
|
|
if (diff > 0) {
|
|
|
|
ACTIVE_TASK* atp = lookup_active_task_by_result(rpbest);
|
|
|
|
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",
|
|
|
|
rpbest->name
|
|
|
|
);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
rpbest->rr_sim_misses_deadline = true;
|
|
|
|
pbest->rr_sim_status.deadlines_missed++;
|
|
|
|
if (log_flags.rr_simulation) {
|
|
|
|
msg_printf(pbest, MSG_INFO,
|
|
|
|
"[rr_sim] result %s misses deadline by %f",
|
|
|
|
rpbest->name, diff
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2008-12-03 23:30:54 +00:00
|
|
|
// increment CPU shortfalls if necessary
|
|
|
|
//
|
|
|
|
if (sim_now < buf_end) {
|
|
|
|
// check whether all projects have pending jobs;
|
|
|
|
// if so, we won't increment overall CPU shortfall
|
|
|
|
//
|
|
|
|
all_projects_have_pending = true;
|
|
|
|
for (i=0; i<projects.size(); i++) {
|
|
|
|
p = projects[i];
|
|
|
|
if (p->non_cpu_intensive) continue;
|
|
|
|
if (!p->rr_sim_status.pending.size()) {
|
|
|
|
all_projects_have_pending = false;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
double end_time = sim_now + rpbest->rrsim_finish_delay;
|
|
|
|
if (end_time > buf_end) end_time = buf_end;
|
|
|
|
double d_time = end_time - sim_now;
|
|
|
|
double nidle_cpus = ncpus - sim_status.active_ncpus;
|
|
|
|
if (nidle_cpus<0) nidle_cpus = 0;
|
|
|
|
|
|
|
|
if (nidle_cpus > 0 && !all_projects_have_pending) {
|
|
|
|
cpu_shortfall += d_time*nidle_cpus;
|
|
|
|
if (log_flags.rr_simulation) {
|
|
|
|
msg_printf(0, MSG_INFO,
|
|
|
|
"[rr_sim] new overall CPU shortfall: %f", cpu_shortfall
|
|
|
|
);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
if (log_flags.rr_simulation) {
|
|
|
|
msg_printf(0, MSG_INFO,
|
|
|
|
"[rr_sim] no change in overall CPU shortfall: nidle %f all have pending %d",
|
|
|
|
nidle_cpus, all_projects_have_pending
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
for (i=0; i<projects.size(); i++) {
|
|
|
|
p = projects[i];
|
|
|
|
if (p->non_cpu_intensive) continue;
|
|
|
|
if (p->rr_sim_status.pending.size()) continue;
|
|
|
|
double rsf = trs?p->resource_share/trs:1;
|
|
|
|
double proj_cpu_share = ncpus*rsf;
|
|
|
|
|
|
|
|
if (log_flags.rr_simulation) {
|
|
|
|
msg_printf(p, MSG_INFO,
|
|
|
|
"[rr_sim] npending %d last ncpus %f cpu share %f",
|
2008-12-04 02:18:01 +00:00
|
|
|
(int)p->rr_sim_status.pending.size(), p->rr_sim_status.active_ncpus, proj_cpu_share
|
2008-12-03 23:30:54 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
double x = proj_cpu_share - p->rr_sim_status.active_ncpus;
|
|
|
|
if (x > 0) {
|
|
|
|
p->rr_sim_status.cpu_shortfall += d_time*x;
|
|
|
|
}
|
|
|
|
if (log_flags.rr_simulation) {
|
|
|
|
msg_printf(p, MSG_INFO,
|
|
|
|
"[rr_sim] new shortfall %f d_time %f proj_cpu_share %f lpan %f",
|
|
|
|
p->rr_sim_status.cpu_shortfall, d_time, proj_cpu_share, p->rr_sim_status.active_ncpus
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2008-11-14 22:08:50 +00:00
|
|
|
|
|
|
|
sim_status.remove_active(rpbest);
|
|
|
|
pbest->rr_sim_status.remove_active(rpbest);
|
|
|
|
|
|
|
|
// If project has more results, add one or more to active set.
|
2008-11-24 18:57:04 +00:00
|
|
|
// TODO: do this for other projects too, since coproc may have been freed
|
2008-11-14 22:08:50 +00:00
|
|
|
//
|
|
|
|
while (1) {
|
|
|
|
rp = pbest->rr_sim_status.get_pending();
|
|
|
|
if (!rp) break;
|
|
|
|
if (pbest->rr_sim_status.can_run(rp, gstate.ncpus) && sim_status.can_run(rp)) {
|
2008-12-03 23:30:54 +00:00
|
|
|
sim_status.activate(rp, sim_now);
|
2008-11-14 22:08:50 +00:00
|
|
|
pbest->rr_sim_status.activate(rp);
|
|
|
|
} else {
|
|
|
|
pbest->rr_sim_status.add_pending(rp);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// If all work done for a project, subtract that project's share
|
|
|
|
// and recompute processing rates
|
|
|
|
//
|
|
|
|
if (pbest->rr_sim_status.none_active()) {
|
|
|
|
rrs -= pbest->resource_share;
|
|
|
|
if (log_flags.rr_simulation) {
|
|
|
|
msg_printf(pbest, MSG_INFO,
|
|
|
|
"[rr_sim] decr rrs by %f, new value %f",
|
|
|
|
pbest->resource_share, rrs
|
|
|
|
);
|
|
|
|
}
|
|
|
|
for (i=0; i<projects.size(); i++) {
|
|
|
|
p = projects[i];
|
|
|
|
if (p->non_cpu_intensive) continue;
|
|
|
|
p->set_rrsim_proc_rate(rrs);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
sim_now += rpbest->rrsim_finish_delay;
|
|
|
|
}
|
|
|
|
|
2008-12-03 23:30:54 +00:00
|
|
|
// if simulation ends before end of buffer, take the tail into account
|
|
|
|
//
|
|
|
|
if (sim_now < buf_end) {
|
|
|
|
double d_time = buf_end - sim_now;
|
|
|
|
cpu_shortfall += d_time * ncpus;
|
|
|
|
for (i=0; i<projects.size(); i++) {
|
|
|
|
p = projects[i];
|
|
|
|
if (p->non_cpu_intensive) continue;
|
|
|
|
double rsf = trs?p->resource_share/trs:1;
|
|
|
|
double proj_cpu_share = ncpus*rsf;
|
|
|
|
p->rr_sim_status.cpu_shortfall += d_time*proj_cpu_share;
|
|
|
|
}
|
2008-11-14 22:08:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (log_flags.rr_simulation) {
|
|
|
|
for (i=0; i<projects.size(); i++) {
|
|
|
|
p = projects[i];
|
|
|
|
if (p->non_cpu_intensive) continue;
|
|
|
|
if (p->rr_sim_status.cpu_shortfall) {
|
|
|
|
msg_printf(p, MSG_INFO,
|
|
|
|
"[rr_sim] shortfall %f\n", p->rr_sim_status.cpu_shortfall
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
msg_printf(NULL, MSG_INFO,
|
|
|
|
"[rr_sim] done; total shortfall %f\n",
|
|
|
|
cpu_shortfall
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|