[arvados] updated: 2.7.0-6269-g8215e5931a

git repository hosting git at public.arvados.org
Tue Apr 2 13:36:21 UTC 2024


Summary of changes:
 sdk/python/arvados/diskcache.py | 2 ++
 1 file changed, 2 insertions(+)

       via  8215e5931aeed29d82e94b5129a685e0b2f084c3 (commit)
      from  bd04725444b7ab15ea81647c519a580ca50a94de (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 8215e5931aeed29d82e94b5129a685e0b2f084c3
Author: Peter Amstutz <peter.amstutz at curii.com>
Date:   Tue Apr 2 09:19:34 2024 -0400

    21639: Tell the kernel to map in whole blocks with madvise
    
    This increases cold cache performance from 150 MB/s to 400 MB/s
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>

diff --git a/sdk/python/arvados/diskcache.py b/sdk/python/arvados/diskcache.py
index b0ae364c88..3749298210 100644
--- a/sdk/python/arvados/diskcache.py
+++ b/sdk/python/arvados/diskcache.py
@@ -32,6 +32,8 @@ class DiskCacheSlot(object):
 
     def get(self):
         self.ready.wait()
+        if self.content is not None:
+            self.content.madvise(mmap.MADV_WILLNEED)
         return self.content
 
     def set(self, value):

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list