diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-09-11 18:16:55 -0400 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-09-11 18:16:55 -0400 |
commit | 55e04c94b925b0790c2ae0a79f16e939e9bb2846 (patch) | |
tree | 48b59d3748e405a1a3b98449f3bd59a2682ed107 | |
parent | a916d9b2feaeb5934e1f8ba30fde74193a60e8d1 (diff) |
changed gpu filtering to 1.5 stdev.
-rw-r--r-- | litmus/gpu_affinity.c | 5 |
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)) { |