diff options
author | John Mainzer <mainzer@hdfgroup.org> | 2008-02-18 05:28:04 (GMT) |
---|---|---|
committer | John Mainzer <mainzer@hdfgroup.org> | 2008-02-18 05:28:04 (GMT) |
commit | cd571e4a45e5af71ae608388141e6b28a16f8171 (patch) | |
tree | 27a6b76035cd03c2b13946730225b34f0f03d98d /src/H5C2pkg.h | |
parent | d3e926b897b42d27e1c5f8533a8a413c448738e2 (diff) | |
download | hdf5-cd571e4a45e5af71ae608388141e6b28a16f8171.zip hdf5-cd571e4a45e5af71ae608388141e6b28a16f8171.tar.gz hdf5-cd571e4a45e5af71ae608388141e6b28a16f8171.tar.bz2 |
[svn-r14594] Ported flash cache size increase code into the journaling branch --
note that both the H5C and H5C2 code have been updated.
Also checked in code to track journaling status in the super block.
Note that this code has not been tested -- but as best I can tell,
it does not break the existing regression tests.
Tested serial (debug and production) on Phoenix. Also tested parallel
on kagiso.
Note that regression test fails on kagiso (but not on phoenix) if
the cache2 serial tests are configured to use the core file driver.
Thus this code is check in with the core file driver optimization
of the cache2 tests disabled. To turn it on, set the USE_CORE_DRIVER
#define to TRUE.
Diffstat (limited to 'src/H5C2pkg.h')
-rw-r--r-- | src/H5C2pkg.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/H5C2pkg.h b/src/H5C2pkg.h index a1753b4..71c8e15 100644 --- a/src/H5C2pkg.h +++ b/src/H5C2pkg.h @@ -471,6 +471,18 @@ * all the ways this can happen, we simply set this flag when * we receive a new configuration. * + * flash_size_increase_possible: Depending on the configuration data given + * in the resize_ctl field, it may or may not be possible + * for a flash size increase to occur. We set this flag + * whenever we receive a new configuration so as to avoid + * repeated calculations. + * + * flash_size_increase_threshold: If a flash cache size increase is possible, + * this field is used to store the minimum size of a new entry + * or size increase needed to trigger a flash cache size + * increase. Note that this field must be updated whenever + * the size of the cache is changed. + * * size_decrease_possible: Depending on the configuration data given * in the resize_ctl field, it may or may not be possible * to decrease the size of the cache. Rather than test for @@ -863,6 +875,8 @@ struct H5C2_t H5C2_cache_entry_t * dLRU_tail_ptr; hbool_t size_increase_possible; + hbool_t flash_size_increase_possible; + size_t flash_size_increase_threshold; hbool_t size_decrease_possible; hbool_t resize_enabled; hbool_t cache_full; |