Changeset 32632 for trunk/Ohana/src/opihi/pcontrol/CheckIdleHost.c
- Timestamp:
- Nov 8, 2011, 2:54:20 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pcontrol/CheckIdleHost.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pcontrol/CheckIdleHost.c
r29540 r32632 5 5 // a (temporary?) work-around for the problem that the remote pclient job tends to grow 6 6 // too large over time. 7 8 /**** 9 10 queueing strategy: 11 12 We have a problem when the queue contains many jobs of different processing times. If we 13 start with an equal number of jobs in two classes, fast and slow, eventually, we will end 14 up with all hosts running the slow jobs and the fast jobs completely blocked. If J1 takes 15 T1 and J2 takes T2, and jobs have equal probability to land in a slot... ?? 16 17 It seems like we should boost the probability of the fast jobs over the slow jobs (of 18 course, the end result of that will be all fast jobs draining and the slow jobs hanging 19 around). 20 21 There is also a problem related to LAP, in that chip stage has a huge number of tasks in 22 the queue (effectively infinite). Make the probability of the job being selected 23 proportional to something. In any case, we need a user-controllable way to change the 24 probability of selection 25 26 As things are implemented below, the selection order depends on the queue order. The 27 easiest way to modify the probabilities is to re-sort based on something. 28 29 ****/ 7 30 8 31 static float MAX_WANTHOST_WAIT = 10.0;
Note:
See TracChangeset
for help on using the changeset viewer.
