mirror of https://github.com/BOINC/boinc.git
4746ea019f
(a) make DB queries more efficient using name>'FILE__' and name<'FILE__~' rather than name like 'FILE__%' (b) Set 'no remaining work for this file' flag correctly by making a DB scan if needed. One can show that this is the 'cheapest' reliable place to put this scan. (c) Modify deterministic algorithm for finding unsent results so that instead of starting with FILE="" and scanning forward over all files, it starts at a random place in file space, scans cyclicly to the end, and then from "" to the start point. (d) Satisfy work request if possible. Don't terminate sending work until none left that is feasible, or request satisfed. (e) If a new file is needed, first pick file associated with unsent results which are more than 2 hours old. Note: need to make this a user-configurable option, and add some random +- slack. For the record, here is the current locality scheduler logic. I will update the docs once this is a bit better tested and stable. (1) If there is an (one) unsent result which is older than (1) config.locality_scheduling_send_timeout (7 days) and is (1) feasible for the host, sent it. (2) If we did send a result in the previous step, then send any (2) additional results that are feasible for the same input file. (3) If additional results are needed, step through input files on (3) the host. For each, if there are results that are feasible for (3) the host, send them. If there are no results that are feasible (3) for the host, delete the input file from the host. (4) If additional results are needed, and there is (one) unsent (4) result which is older than 2 hours and is feasible for the (4) host, send it. (5) If we did send a result in the previous step, then send any (5) additional results that are feasible for the same input file. (6) If additional results are needed, select an input file name at (6) random from the current input file working set advertised by (6) the WU generator. If there are results for this input file (6) that are feasible for this host, send them. (7) If additional results are needed, carry out an expensive, (7) deterministic search for ANY results that are feasible for the (7) host. This search starts from a random filename advertised by (7) the WU generator, but continues cyclicly to cover ALL results (7) for ALL files. If a feasible result is found, send it. Then (7) send any additional results that use the same input file. If (7) there are no feasible results for the host, we are finished: (7) exit. (8) If addtional results are needed, return to step 4 above. svn path=/trunk/boinc/; revision=5129 |
||
---|---|---|
.. | ||
.cvsignore | ||
Makefile.am | ||
assimilate_handler.h | ||
assimilator.C | ||
assimilator.py | ||
assimilator_placeholder.C | ||
db_dump.C | ||
db_purge.C | ||
delete_file.C | ||
fcgi_stdio.h | ||
fcgiapp.h | ||
feeder.C | ||
file_deleter.C | ||
file_upload_handler.C | ||
get_file.C | ||
handle_request.C | ||
handle_request.h | ||
main.C | ||
main.h | ||
make_work.C | ||
message_handler.C | ||
request_file_list.C | ||
sample_bitwise_validator.C | ||
sample_db_dump_spec.xml | ||
sample_dummy_assimilator.C | ||
sample_trivial_validator.C | ||
sched_config.C | ||
sched_config.h | ||
sched_locality.C | ||
sched_locality.h | ||
sched_msgs.C | ||
sched_msgs.h | ||
sched_send.C | ||
sched_send.h | ||
sched_shmem.C | ||
sched_shmem.h | ||
sched_util.C | ||
sched_util.h | ||
send_file.C | ||
server_types.C | ||
server_types.h | ||
show_shmem.C | ||
start | ||
transitioner.C | ||
trickle_handler.C | ||
update_stats.C | ||
validate_util.C | ||
validate_util.h | ||
validator.C | ||
validator_placeholder.C | ||
wu_check.C |