]> git.ipfire.org Git - thirdparty/squid.git/commit
Use a time-based limit for the Rock Store rebuild loop.
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 30 Aug 2011 15:45:20 +0000 (09:45 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Tue, 30 Aug 2011 15:45:20 +0000 (09:45 -0600)
commit386d28bf99bb37ede705f7f244c9d9cfc98cf2ed
treecaf093b4d6a776cafc5bb3d06f2beb1c76a16592
parent899249853a35bcad559ce23daa292a2c7a48c7a4
Use a time-based limit for the Rock Store rebuild loop.

Compared to the old counter-based limit, a time-based limit is better because
it allows us to quit right after a blocked I/O or quit sooner when I/Os become
slower. Similarly, a time-based limit often allows us to rebuild a much larger
number of entries at a time because most sequential read I/Os are very fast.
src/fs/rock/RockRebuild.cc