diff --git a/checkin_notes b/checkin_notes index 8cc5502a62..5c0975e458 100644 --- a/checkin_notes +++ b/checkin_notes @@ -7974,3 +7974,8 @@ David 22 Sept 2009 app_start.cpp client_types.h cpu_sched.cpp + +David 22 Sept 2009 + - client: extra debug msgs (remove when done) + client/ + cpu_sched.cpp diff --git a/client/cpu_sched.cpp b/client/cpu_sched.cpp index 6eec0c501f..b2a283d34a 100644 --- a/client/cpu_sched.cpp +++ b/client/cpu_sched.cpp @@ -325,6 +325,12 @@ RESULT* first_coproc_result() { if (rp->project->non_cpu_intensive) continue; if (rp->already_selected) continue; if (!rp->uses_coprocs()) continue; + if (log_flags.cpu_sched_debug) { + msg_printf(0, MSG_INFO, + "[cpu_sched_debug] first coproc res: %s started %d recv %f", + rp->name, rp->not_started()?0:1, rp->received_time + ); + } if (!best) { best = rp; continue; @@ -341,6 +347,12 @@ RESULT* first_coproc_result() { } } } + if (log_flags.cpu_sched_debug) { + msg_printf(0, MSG_INFO, + "[cpu_sched_debug] first coproc res: returning %s", + best->name + ); + } return best; } diff --git a/sched/sched_send.cpp b/sched/sched_send.cpp index d4335ac842..d044df86fc 100644 --- a/sched/sched_send.cpp +++ b/sched/sched_send.cpp @@ -1360,7 +1360,7 @@ static void explain_to_user() { g_reply->set_delay(delay_time); } if (g_wreq->max_jobs_on_host_exceeded) { - sprintf(helpful, "(reached limit of %d tasks)", + sprintf(helpful, "(reached limit of %d tasks in progress)", g_wreq->max_jobs_on_host ); g_reply->insert_message(helpful, "high"); @@ -1371,7 +1371,7 @@ static void explain_to_user() { ); } if (g_wreq->max_jobs_on_host_cpu_exceeded) { - sprintf(helpful, "(reached limit of %d CPU tasks)", + sprintf(helpful, "(reached limit of %d CPU tasks in progress)", g_wreq->max_jobs_on_host_cpu ); g_reply->insert_message(helpful, "high"); @@ -1382,7 +1382,7 @@ static void explain_to_user() { ); } if (g_wreq->max_jobs_on_host_gpu_exceeded) { - sprintf(helpful, "(reached limit of %d GPU tasks)", + sprintf(helpful, "(reached limit of %d GPU tasks in progress)", g_wreq->max_jobs_on_host_gpu ); g_reply->insert_message(helpful, "high");