From: Peter Amstutz Date: Wed, 30 Mar 2022 01:55:26 +0000 (-0400) Subject: 18941: Clamp to 4 block prefetch X-Git-Tag: 2.4.0~20^2~5 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/2f5d5f03ef768d5bca81d52aa70cf7383fe449a2 18941: Clamp to 4 block prefetch Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- diff --git a/services/fuse/arvados_fuse/fusedir.py b/services/fuse/arvados_fuse/fusedir.py index d001e57288..bfd06c714e 100644 --- a/services/fuse/arvados_fuse/fusedir.py +++ b/services/fuse/arvados_fuse/fusedir.py @@ -525,7 +525,8 @@ class CollectionDirectory(CollectionDirectoryBase): self.collection.update() new_collection_record = self.collection.api_response() else: - get_threads = min(max((self.api.keep.block_cache.cache_max // (64 * 1024 * 1024)) - 1, 1), 16) + # experimentally, 4 block prefetch seems to be optimal. + get_threads = min(max((self.api.keep.block_cache.cache_max // (64 * 1024 * 1024)) - 1, 1), 4) # Create a new collection object if uuid_pattern.match(self.collection_locator): coll_reader = arvados.collection.Collection(