From 5093382f2fc1d11c9dfca3acbc5c8e671c7a759a Mon Sep 17 00:00:00 2001 From: Dana Robinson <43805+derobins@users.noreply.github.com> Date: Mon, 23 Oct 2023 19:06:18 -0700 Subject: [PATCH] Bump the ros3 VFD cache to 16 MiB (#3759) --- release_docs/RELEASE.txt | 4 ++-- src/H5FDros3.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/release_docs/RELEASE.txt b/release_docs/RELEASE.txt index bec1c38e62d..b3590ec8ce9 100644 --- a/release_docs/RELEASE.txt +++ b/release_docs/RELEASE.txt @@ -135,13 +135,13 @@ New Features Library: -------- - - Added a simple cache to the read-only S3 VFD + - Added a simple cache to the read-only S3 (ros3) VFD The read-only S3 VFD now caches the first N bytes of a file stored in S3 to avoid a lot of small I/O operations when opening files. This cache is per-file and created when the file is opened. - N is currently 4kiB or the size of the file, whichever is smaller. + N is currently 16 MiB or the size of the file, whichever is smaller. Addresses GitHub issue #3381 diff --git a/src/H5FDros3.c b/src/H5FDros3.c index f704eff1efa..c6aea0e327a 100644 --- a/src/H5FDros3.c +++ b/src/H5FDros3.c @@ -44,7 +44,7 @@ #define ROS3_STATS 0 /* Max size of the cache, in bytes */ -#define ROS3_MAX_CACHE_SIZE 4096 +#define ROS3_MAX_CACHE_SIZE 16777216 /* The driver identification number, initialized at runtime */