21639: Improve critical path of read() from cache
[arvados.git] / services / fuse / arvados_fuse / command.py
index 719ec7ee959701fde58bfef0dfb8b3c46dc4b895..29ace2e52e6f82b1b784049cd8fc05baeac75575 100644 (file)
@@ -487,7 +487,8 @@ class Mount(object):
             # layer actually ends up being slower.
             # Experimentally, capping 7 threads seems to
             # be a sweet spot.
-            prefetch_threads = min(max((block_cache.cache_max // (64 * 1024 * 1024)) - 1, 1), 7)
+            #prefetch_threads = min(max((block_cache.cache_max // (64 * 1024 * 1024)) - 1, 1), 7)
+            prefetch_threads = 0
 
             self.api = arvados.safeapi.ThreadSafeApiCache(
                 apiconfig=arvados.config.settings(),