mirror of https://github.com/BOINC/boinc.git
- scheduler: add debugging msg for HR reject
sched/ sched_hr.C,h sched_array.C svn path=/trunk/boinc/; revision=12787
This commit is contained in:
parent
0c3e0e90fc
commit
6eacc21409
|
@ -5611,3 +5611,10 @@ David 30 May 2007
|
||||||
html/user/
|
html/user/
|
||||||
prefs_edit.php
|
prefs_edit.php
|
||||||
merge_by_name.php
|
merge_by_name.php
|
||||||
|
|
||||||
|
David 30 May 2007
|
||||||
|
- scheduler: add debugging msg for HR reject
|
||||||
|
|
||||||
|
sched/
|
||||||
|
sched_hr.C,h
|
||||||
|
sched_array.C
|
||||||
|
|
|
@ -120,10 +120,11 @@ void scan_work_array(
|
||||||
// don't send if host can't handle it
|
// don't send if host can't handle it
|
||||||
//
|
//
|
||||||
wu = wu_result.workunit;
|
wu = wu_result.workunit;
|
||||||
if (wu_is_infeasible(wu, sreq, reply)) {
|
retval = wu_is_infeasible(wu, sreq, reply);
|
||||||
|
if (retval) {
|
||||||
log_messages.printf(
|
log_messages.printf(
|
||||||
SCHED_MSG_LOG::MSG_DEBUG, "[HOST#%d] [WU#%d %s] WU is infeasible\n",
|
SCHED_MSG_LOG::MSG_DEBUG, "[HOST#%d] [WU#%d %s] WU is infeasible: %d\n",
|
||||||
reply.host.id, wu.id, wu.name
|
reply.host.id, wu.id, wu.name, retval
|
||||||
);
|
);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -132,6 +133,11 @@ void scan_work_array(
|
||||||
//
|
//
|
||||||
if (config.homogeneous_redundancy || app->homogeneous_redundancy) {
|
if (config.homogeneous_redundancy || app->homogeneous_redundancy) {
|
||||||
if (already_sent_to_different_platform_quick(sreq, wu)) {
|
if (already_sent_to_different_platform_quick(sreq, wu)) {
|
||||||
|
log_messages.printf(
|
||||||
|
SCHED_MSG_LOG::MSG_DEBUG,
|
||||||
|
"[HOST#%d] [WU#%d %s] failed quick HR check: WU is class %d, host is class %d\n",
|
||||||
|
wu.hr_class, hr_class(sreq.host)
|
||||||
|
);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -130,6 +130,10 @@ inline int HR_CLASS(HOST& host) {
|
||||||
return OS(host) + CPU(host);
|
return OS(host) + CPU(host);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int hr_class(HOST& host) {
|
||||||
|
return HR_CLASS(host);
|
||||||
|
}
|
||||||
|
|
||||||
bool hr_unknown_platform(HOST& host) {
|
bool hr_unknown_platform(HOST& host) {
|
||||||
if (OS(host) == noos) return true;
|
if (OS(host) == noos) return true;
|
||||||
if (CPU(host) == nocpu) return true;
|
if (CPU(host) == nocpu) return true;
|
||||||
|
|
|
@ -26,3 +26,5 @@ extern bool already_sent_to_different_platform_careful(
|
||||||
);
|
);
|
||||||
|
|
||||||
extern bool hr_unknown_platform(HOST&);
|
extern bool hr_unknown_platform(HOST&);
|
||||||
|
|
||||||
|
extern int hr_class(HOST&);
|
||||||
|
|
Loading…
Reference in New Issue