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