]> git.hungrycats.org Git - bees/commit
readahead: flush the readahead cache based on time, not extent count
authorZygo Blaxell <bees@furryterror.org>
Tue, 11 Mar 2025 18:46:40 +0000 (14:46 -0400)
committerZygo Blaxell <bees@furryterror.org>
Tue, 22 Jul 2025 04:06:11 +0000 (00:06 -0400)
commitba11d733c0d9cac9ddc8f05a818166d3ccf45c36
tree8ae0880f876b4e4dd6913c84d28a81c90f5bb9d5
parente87f6e9649e2bdf056ae41bdfd6408449da42339
readahead: flush the readahead cache based on time, not extent count

If the extent wasn't read in the last second, chances are high that
it was evicted from the page cache.  If the extents have been evicted
from the cache by the time we grow or dedupe them, we'll take a serious
performance hit as we read them back in, one page at a time.

Use a 5-second delay to match the default writeback interval.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
src/bees.cc