El Jue 16 Jul 2009 16:44:45 David Anderson escribió: > The following change should have a big impact (I hope): > > - client: changed file upload logic > Old: each upload attempt consists of two HTTP requests: > the 1st to get the current file size on server, > the 2nd to upload the remainder of the file. > Problem: > a) if the upload server is overloaded and requests > are succeeding with probability X, > then the chance of both requests succeeding is X^2. > So e.g. a per-request success rate of 0.1 > becomes an overall success rate of 0.01. > b) the "get file size" request can be avoided in some cases. > New: > If we've already queried the file size > and haven't uploaded any additional bytes, > don't query the file size again. > > client/ > pers_file_xfer.cpp
Another: If the file is smaller than a certain threshold (eg. 4KB), don't EVER bother sending the first request asking for the file size. When the file is so small, sending that first request wastes more resources than needlessly sending the entire file when in fact only a few bytes were left. _______________________________________________ boinc_dev mailing list [email protected] http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev To unsubscribe, visit the above URL and (near bottom of page) enter your email address.
