18842: When starting up the disk cache, map in everything
authorPeter Amstutz <peter.amstutz@curii.com>
Thu, 20 Oct 2022 20:18:00 +0000 (16:18 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Thu, 20 Oct 2022 20:18:00 +0000 (16:18 -0400)
commit2a16e128ab63f87aa4656bf860ae3f6b8633c4ca
tree05a8ea2fa0dc0217e85fcb7bf92e199d4131c0dd
parent563325b7d7336e3bfe9248b40c766d83e8b19bf3
18842: When starting up the disk cache, map in everything

When a process starts, the first thing it will do is map in the
existing blocks and prune any excess from the cache.

If there are multiple processes using the same cache dir, at worst
you'd end up with N*M usage where N is the number of processes and M
is the cache limit.

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>
sdk/python/arvados/diskcache.py
sdk/python/arvados/keep.py
sdk/python/tests/arvados_testutil.py
services/fuse/tests/mount_test_base.py