summaryrefslogtreecommitdiff
path: root/lib/backend
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-01-03 15:49:50 +0200
committerPanu Matilainen <pmatilai@redhat.com>2011-01-03 15:49:50 +0200
commit6b6310b152475793a1272d8829a9df89a6edaee6 (patch)
tree0de3aa4361d30b103002dd096dfefad90e2a2ed5 /lib/backend
parentb76fa1a7fdf738ccd45dd70a5489d5110a6d5534 (diff)
downloadlibrpm-tizen-6b6310b152475793a1272d8829a9df89a6edaee6.tar.gz
librpm-tizen-6b6310b152475793a1272d8829a9df89a6edaee6.tar.bz2
librpm-tizen-6b6310b152475793a1272d8829a9df89a6edaee6.zip
Bump up default BDB cache- and allowed mmap size considerably
- The former defaults come from nearly a decade ago, things have changed a bit since then... Even BDB's own default cache size is much larger (8MB) now than what we've been setting. - Using 64MB cache improves cache hit rate (and performance) massively. Last-gasp default to roughly BDB's own current defaults, higher settings in the default macro setup.
Diffstat (limited to 'lib/backend')
-rw-r--r--lib/backend/dbconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/backend/dbconfig.c b/lib/backend/dbconfig.c
index d4d87c5bd..9e8147620 100644
--- a/lib/backend/dbconfig.c
+++ b/lib/backend/dbconfig.c
@@ -227,7 +227,7 @@ dbiIndex dbiNew(rpmdb rdb, rpmDbiTagVal rpmtag)
*cfg = staticcfg; /* structure assignment */
/* Throw in some defaults if configuration didn't set any */
if (!cfg->db_mmapsize) cfg->db_mmapsize = 16 * 1024 * 1024;
- if (!cfg->db_cachesize) cfg->db_cachesize = 1 * 1024 * 1024;
+ if (!cfg->db_cachesize) cfg->db_cachesize = 8 * 1024 * 1024;
}
/* FIX: *(rdbOptions->arg) reachable */