aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2012-09-11 18:16:55 -0400
committerGlenn Elliott <gelliott@cs.unc.edu>2012-09-11 18:16:55 -0400
commit55e04c94b925b0790c2ae0a79f16e939e9bb2846 (patch)
tree48b59d3748e405a1a3b98449f3bd59a2682ed107
parenta916d9b2feaeb5934e1f8ba30fde74193a60e8d1 (diff)
changed gpu filtering to 1.5 stdev.
-rw-r--r--litmus/gpu_affinity.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/litmus/gpu_affinity.c b/litmus/gpu_affinity.c
index 896f3248b8a2..7d73105b4181 100644
--- a/litmus/gpu_affinity.c
+++ b/litmus/gpu_affinity.c
@@ -14,7 +14,8 @@
14//#define HI_THRESHOLD 2 14//#define HI_THRESHOLD 2
15//#define LO_THRESHOLD 4 15//#define LO_THRESHOLD 4
16 16
17#define NUM_STDEV 2 17#define NUM_STDEV_NUM 1
18#define NUM_STDEV_DENOM 2
18 19
19#define MIN(a, b) ((a < b) ? a : b) 20#define MIN(a, b) ((a < b) ? a : b)
20 21
@@ -111,7 +112,7 @@ void update_gpu_estimate(struct task_struct *t, lt_t observed)
111 if (likely((est->count > MIN(10, AVG_EST_WINDOW_SIZE/2)))) { 112 if (likely((est->count > MIN(10, AVG_EST_WINDOW_SIZE/2)))) {
112 lt_t lower, upper; 113 lt_t lower, upper;
113 114
114 lt_t range = est->std*NUM_STDEV; 115 lt_t range = (est->std*NUM_STDEV_NUM)/NUM_STDEV_DENOM;
115 lower = est->avg - MIN(range, est->avg); // no underflow. 116 lower = est->avg - MIN(range, est->avg); // no underflow.
116 117
117 if (unlikely(observed < lower)) { 118 if (unlikely(observed < lower)) {