diff options
author | John Mainzer <mainzer@hdfgroup.org> | 2008-01-18 17:52:12 (GMT) |
---|---|---|
committer | John Mainzer <mainzer@hdfgroup.org> | 2008-01-18 17:52:12 (GMT) |
commit | d236e2a9926cc62048d9489a60ab0d5f4dfcd41c (patch) | |
tree | 0ed0d874bd62c7d8453082bb4186d6b5f640fc86 /test/cache_common.h | |
parent | 1039d639520e92455b01850095bd94664ff4de53 (diff) | |
download | hdf5-d236e2a9926cc62048d9489a60ab0d5f4dfcd41c.zip hdf5-d236e2a9926cc62048d9489a60ab0d5f4dfcd41c.tar.gz hdf5-d236e2a9926cc62048d9489a60ab0d5f4dfcd41c.tar.bz2 |
[svn-r14442] Modified metadata cache to adapt more quickly to the insertion of a
large entry, or to a large increases in the size of an existing entry.
This required some additions to the cache configuration structure, and
thus will require changes in the metadata cache documentation.
The basic idea is to monitor the size of entries as they are loaded,
inserted, or increased in size. If the size of the entry (or increase)
exceeds some user selected fraction of the size of the cache, increase
the size of the cache.
Note that this fix was designed quickly -- while it deals with the
use case that exposed the problem, we may have to revisit the issue
later.
Tested serial and parallel on Phoenix, and h5committest.
Diffstat (limited to 'test/cache_common.h')
-rw-r--r-- | test/cache_common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/cache_common.h b/test/cache_common.h index 23832dc..e1d33f2 100644 --- a/test/cache_common.h +++ b/test/cache_common.h @@ -655,6 +655,11 @@ void resize_entry(H5C_t * cache_ptr, size_t new_size, hbool_t resize_pin); +void resize_pinned_entry(H5C_t * cache_ptr, + int32_t type, + int32_t idx, + size_t new_size); + H5C_t * setup_cache(size_t max_cache_size, size_t min_clean_size); void row_major_scan_forward(H5C_t * cache_ptr, |