Blame rpm-4.9.x-mpsize.patch
|
Panu Matilainen |
e8efcc |
commit d8cd36058b528f56bd579204426143be1e1eac6d
|
|
Panu Matilainen |
e8efcc |
Author: Panu Matilainen <pmatilai@redhat.com>
|
|
Panu Matilainen |
e8efcc |
Date: Wed Feb 8 10:56:09 2012 +0200
|
|
Panu Matilainen |
e8efcc |
|
|
Panu Matilainen |
e8efcc |
Switch back to former, much smaller BDB memory pool size (RhBug:752897)
|
|
Panu Matilainen |
e8efcc |
|
|
Panu Matilainen |
e8efcc |
- A larger cache is beneficial in various scenarios, but triggers
|
|
Panu Matilainen |
e8efcc |
horrible worst-case performance under memory pressure (or so my
|
|
Panu Matilainen |
e8efcc |
current theory goes, there might be other factors too). The
|
|
Panu Matilainen |
e8efcc |
worst-case degration is orders of magnitude bigger than the best-case
|
|
Panu Matilainen |
e8efcc |
improvements from the larger cache and for many use-cases doesn't
|
|
Panu Matilainen |
e8efcc |
make a whole lot difference. We could/should tune the cache with
|
|
Panu Matilainen |
e8efcc |
priorizing indexes and all, and perhaps dynamically select the
|
|
Panu Matilainen |
e8efcc |
cache size but for now, the 1Mb cache size is known to "just work".
|
|
Panu Matilainen |
e8efcc |
|
|
Panu Matilainen |
e8efcc |
diff --git a/macros.in b/macros.in
|
|
Panu Matilainen |
e8efcc |
index f835fec..6034721 100644
|
|
Panu Matilainen |
e8efcc |
--- a/macros.in
|
|
Panu Matilainen |
e8efcc |
+++ b/macros.in
|
|
Panu Matilainen |
e8efcc |
@@ -535,7 +535,7 @@ print (t)\
|
|
Panu Matilainen |
e8efcc |
#
|
|
Panu Matilainen |
e8efcc |
|
|
Panu Matilainen |
e8efcc |
# Misc BDB tuning options
|
|
Panu Matilainen |
e8efcc |
-%__dbi_other mp_mmapsize=128Mb mp_size=64Mb
|
|
Panu Matilainen |
e8efcc |
+%__dbi_other mp_mmapsize=128Mb mp_size=1Mb
|
|
Panu Matilainen |
e8efcc |
|
|
Panu Matilainen |
e8efcc |
%_dbi_config %{?__dbi_other}
|
|
Panu Matilainen |
e8efcc |
|