diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-07-19 15:05:54 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-07-19 15:05:54 +0300 |
commit | 2727bbca32cad2b0e16e6f58578e4c7e126415fd (patch) | |
tree | 381992d1d99654f398df060f1b9226203e6f64ab /obnamlib/__init__.py | |
parent | 96f3482abb08e67caebacb65a555fbf0e4d9c2ae (diff) | |
download | obnam-2727bbca32cad2b0e16e6f58578e4c7e126415fd.tar.gz |
Split chunk and DIR object cache sizes
Diffstat (limited to 'obnamlib/__init__.py')
-rw-r--r-- | obnamlib/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/obnamlib/__init__.py b/obnamlib/__init__.py index 74536e2f..c7eb347c 100644 --- a/obnamlib/__init__.py +++ b/obnamlib/__init__.py @@ -53,7 +53,10 @@ DEFAULT_LRU_SIZE = 256 DEFAULT_CHUNKIDS_PER_GROUP = 1024 DEFAULT_NAGIOS_WARN_AGE = '27h' DEFAULT_NAGIOS_CRIT_AGE = '8d' -DEFAULT_BAG_CACHE_BYTES = 256 * 1024**2 + +_MEBIBYTE = 1024**2 +DEFAULT_DIR_OBJECT_CACHE_BYTES = 256 * _MEBIBYTE +DEFAULT_CHUNK_CACHE_BYTES = 1 * _MEBIBYTE # The following values have been determined empirically on a laptop # with an encrypted ext4 filesystem. Other values might be better for |