summaryrefslogtreecommitdiffstats
path: root/src/H5Cpkg.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Cpkg.h')
-rw-r--r--src/H5Cpkg.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/H5Cpkg.h b/src/H5Cpkg.h
index 3b8d650..949f923 100644
--- a/src/H5Cpkg.h
+++ b/src/H5Cpkg.h
@@ -176,6 +176,18 @@
* entry is flushed to disk.
*
*
+ * In cases where memory is plentiful, and performance is an issue, it
+ * is useful to disable all cache evictions, and thereby postpone metadata
+ * writes. The following field is used to implement this.
+ *
+ * evictions_enabled: Boolean flag that is initialized to TRUE. When
+ * this flag is set to FALSE, the metadata cache will not
+ * attempt to evict entries to make space for newly protected
+ * entries, and instead the will grow without limit.
+ *
+ * Needless to say, this feature must be used with care.
+ *
+ *
* The cache requires an index to facilitate searching for entries. The
* following fields support that index.
*
@@ -802,6 +814,8 @@ struct H5C_t
H5C_log_flush_func_t log_flush;
+ hbool_t evictions_enabled;
+
int32_t index_len;
size_t index_size;
H5C_cache_entry_t * (index[H5C__HASH_TABLE_LEN]);