Commit 14fd0a3f authored by David Anderson's avatar David Anderson

- client: show more general prefs on startup

- manager: show status for jobs aborted because not started by deadline

svn path=/trunk/boinc/; revision=19678
parent d6808b97
......@@ -9424,3 +9424,13 @@ Rom 23 Nov 2009
boincmgr.vcproj
../boinc_depends_win_vs2005
<Various Files>
David 23 Nov 2009
- client: show more general prefs on startup
- manager: show status for jobs aborted because not started by deadline
client/
cs_prefs.cpp
cpu_sched.cpp
clientgui/
ViewWork.cpp
......@@ -423,10 +423,11 @@ RESULT* CLIENT_STATE::earliest_deadline_result(bool coproc_only) {
if (rp->already_selected) continue;
PROJECT* p = rp->project;
if (p->non_cpu_intensive) continue;
// treat projects with DCF>90 as if they had deadline misses
//
if (coproc_only) {
if (!rp->uses_coprocs()) continue;
// TODO: break this out by resource type
if (rp->avp->ncudas) {
if (!p->cuda_pwf.deadlines_missed_copy
&& p->duration_correction_factor < 90.0
......@@ -442,8 +443,6 @@ RESULT* CLIENT_STATE::earliest_deadline_result(bool coproc_only) {
}
} else {
if (rp->uses_coprocs()) continue;
// treat projects with DCF>90 as if they had deadline misses
//
if (!p->cpu_pwf.deadlines_missed_copy
&& p->duration_correction_factor < 90.0
) {
......@@ -485,7 +484,7 @@ RESULT* CLIENT_STATE::earliest_deadline_result(bool coproc_only) {
if (log_flags.cpu_sched_debug) {
msg_printf(best_result->project, MSG_INFO,
"[cpu_sched_debug] earliest deadline: %f %s",
"[cpu_sched_debug] earliest deadline: %.0f %s",
best_result->report_deadline, best_result->name
);
}
......
......@@ -395,18 +395,19 @@ void CLIENT_STATE::read_global_prefs() {
fclose(f);
}
msg_printf(NULL, MSG_INFO, "Preferences:");
msg_printf(NULL, MSG_INFO,
"Preferences limit memory usage when active to %.2fMB",
" max memory usage when active: %.2fMB",
(host_info.m_nbytes*global_prefs.ram_max_used_busy_frac)/MEGA
);
msg_printf(NULL, MSG_INFO,
"Preferences limit memory usage when idle to %.2fMB",
" max memory usage when idle: %.2fMB",
(host_info.m_nbytes*global_prefs.ram_max_used_idle_frac)/MEGA
);
double x;
total_disk_usage(x);
msg_printf(NULL, MSG_INFO,
"Preferences limit disk usage to %.2fGB",
" max disk usage: %.2fGB",
allowed_disk_usage(x)/GIGA
);
// max_cpus, bandwidth limits may have changed
......@@ -414,11 +415,35 @@ void CLIENT_STATE::read_global_prefs() {
set_ncpus();
if (ncpus != host_info.p_ncpus) {
msg_printf(NULL, MSG_INFO,
"Preferences limit # CPUs to %d", ncpus
" max CPUs used: %d", ncpus
);
}
if (!global_prefs.run_if_user_active) {
msg_printf(NULL, MSG_INFO, " don't compute while active");
}
if (!global_prefs.run_gpu_if_user_active) {
msg_printf(NULL, MSG_INFO, " don't use GPU while active");
}
if (global_prefs.max_bytes_sec_down) {
msg_printf(NULL, MSG_INFO,
" max download rate: %.0f bytes/sec",
global_prefs.max_bytes_sec_down
);
}
if (global_prefs.max_bytes_sec_up) {
msg_printf(NULL, MSG_INFO,
" max upload rate: %.0f bytes/sec",
global_prefs.max_bytes_sec_up
);
}
file_xfers->set_bandwidth_limits(true);
file_xfers->set_bandwidth_limits(false);
msg_printf(NULL, MSG_INFO,
" (to change, visit the web site of an attached project,"
);
msg_printf(NULL, MSG_INFO,
" or click on Preferences)"
);
request_schedule_cpus("Prefs update");
request_work_fetch("Prefs update");
}
......
......@@ -1198,6 +1198,9 @@ void CViewWork::GetDocStatus(wxInt32 item, wxString& strBuffer) const {
case ERR_ABORTED_BY_PROJECT:
strBuffer += _("Aborted by project");
break;
case ERR_UNSTARTED_LATE:
strBuffer += _("Aborted: not started by deadline");
break;
default:
strBuffer += _("Aborted");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment