From d81e37f29fa564476f60e50ea3834c70b4e24f9c Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Sat, 17 Jun 2006 17:08:02 +0000 Subject: [PATCH] Scheduler: populate sreq.host.credit_per_cpu_sec in case project wants to send different work to slow and fast hosts. I'm experimenting with the use of this in the locality scheduler. (DAVID: please check that the one-line change in handle_request.C is globally harmless.) svn path=/trunk/boinc/; revision=10388 --- checkin_notes | 12 ++++++++++++ sched/handle_request.C | 1 + 2 files changed, 13 insertions(+) diff --git a/checkin_notes b/checkin_notes index 617ac969d6..9d42e5da8d 100755 --- a/checkin_notes +++ b/checkin_notes @@ -6247,3 +6247,15 @@ David 17 June 2006 client/ client_state.h cpu_sched.C + +Bruce 17 June 2006 + - Scheduler: populate sreq.host.credit_per_cpu_sec in case project wants + to send different work to slow and fast hosts. I'm experimenting with + the use of this in the locality scheduler. + + (David: please check that the one-line change in handle_request.C is + globally harmless.) + + sched/ + handle_request.C + diff --git a/sched/handle_request.C b/sched/handle_request.C index 24e37cfff9..e299a64daf 100644 --- a/sched/handle_request.C +++ b/sched/handle_request.C @@ -450,6 +450,7 @@ static int modify_host_struct(SCHEDULER_REQUEST& sreq, HOST& host) { host.fix_nans(); compute_credit_rating(host); + sreq.host.credit_per_cpu_sec=host.credit_per_cpu_sec; return 0; }