diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-12-19 16:18:57 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-12-19 16:18:57 +0000 |
commit | af51211988e27a4672619221e29d823e638f511e (patch) | |
tree | 54ed1247453a2d5f38132052667223c249fd9729 | |
parent | 240dc7f6e8ace57fad8129cb423fa8b1417939be (diff) | |
download | obnam-af51211988e27a4672619221e29d823e638f511e.tar.gz |
Reduce Obnam memory consumption
There is possibly a speed impact, but benchmarks will come later.
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | obnamlib/__init__.py | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -15,6 +15,8 @@ Version X.Y, released UNRELEASED of the software. (Actually, the change is there just to save some disk space and I/O for people who don't want to be involved in Obnam development and don't want to have massive log files.) +* The default sizes for the `lru-size` and `upload-queue-size` settings + have been reduced, to reduce the memory impact of Obnam. Version 1.3, released 2012-12-16 -------------------------------- diff --git a/obnamlib/__init__.py b/obnamlib/__init__.py index d4df84cd..7ca785c1 100644 --- a/obnamlib/__init__.py +++ b/obnamlib/__init__.py @@ -42,8 +42,8 @@ class Error(cliapp.AppException): DEFAULT_NODE_SIZE = 256 * 1024 # benchmarked on 2011-09-01 DEFAULT_CHUNK_SIZE = 1024 * 1024 # benchmarked on 2011-09-01 -DEFAULT_UPLOAD_QUEUE_SIZE = 1024 -DEFAULT_LRU_SIZE = 500 +DEFAULT_UPLOAD_QUEUE_SIZE = 128 +DEFAULT_LRU_SIZE = 256 DEFAULT_CHUNKIDS_PER_GROUP = 1024 DEFAULT_NAGIOS_WARN_AGE = '27h' DEFAULT_NAGIOS_CRIT_AGE = '8d' |