[rpm] - switch back to smaller BDB cache default (#752897)

Panu Matilainen pmatilai at fedoraproject.org
Thu Feb 9 07:50:19 UTC 2012


commit e8efccb3d4664335b1f14e2b5a08121fa9eed2a1
Author: Panu Matilainen <pmatilai at redhat.com>
Date:   Thu Feb 9 09:50:00 2012 +0200

    - switch back to smaller BDB cache default (#752897)

 rpm-4.9.x-mpsize.patch |   28 ++++++++++++++++++++++++++++
 rpm.spec               |    7 ++++++-
 2 files changed, 34 insertions(+), 1 deletions(-)
---
diff --git a/rpm-4.9.x-mpsize.patch b/rpm-4.9.x-mpsize.patch
new file mode 100644
index 0000000..b18688f
--- /dev/null
+++ b/rpm-4.9.x-mpsize.patch
@@ -0,0 +1,28 @@
+commit d8cd36058b528f56bd579204426143be1e1eac6d
+Author: Panu Matilainen <pmatilai at redhat.com>
+Date:   Wed Feb 8 10:56:09 2012 +0200
+
+    Switch back to former, much smaller BDB memory pool size (RhBug:752897)
+    
+    - A larger cache is beneficial in various scenarios, but triggers
+      horrible worst-case performance under memory pressure (or so my
+      current theory goes, there might be other factors too). The
+      worst-case degration is orders of magnitude bigger than the best-case
+      improvements from the larger cache and for many use-cases doesn't
+      make a whole lot difference.  We could/should tune the cache with
+      priorizing indexes and all, and perhaps dynamically select the
+      cache size but for now, the 1Mb cache size is known to "just work".
+
+diff --git a/macros.in b/macros.in
+index f835fec..6034721 100644
+--- a/macros.in
++++ b/macros.in
+@@ -535,7 +535,7 @@ print (t)\
+ #
+ 
+ # Misc BDB tuning options
+-%__dbi_other			mp_mmapsize=128Mb mp_size=64Mb
++%__dbi_other			mp_mmapsize=128Mb mp_size=1Mb
+ 
+ %_dbi_config			%{?__dbi_other}
+ 
diff --git a/rpm.spec b/rpm.spec
index 9c1b5ac..49a2276 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -21,7 +21,7 @@
 Summary: The RPM package management system
 Name: rpm
 Version: %{rpmver}
-Release: %{?snapver:0.%{snapver}.}11%{?dist}
+Release: %{?snapver:0.%{snapver}.}12%{?dist}
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source0: http://rpm.org/releases/rpm-4.9.x/%{name}-%{srcver}.tar.bz2
@@ -46,6 +46,7 @@ Patch6: rpm-4.9.0-armhfp-logic.patch
 Patch100: rpm-4.9.x-fontattr.patch
 Patch101: rpm-4.9.x-elfattr.patch
 Patch102: rpm-4.9.1.2-perl-python-attr.patch
+Patch103: rpm-4.9.x-mpsize.patch
 
 # These are not yet upstream
 Patch301: rpm-4.6.0-niagara.patch
@@ -226,6 +227,7 @@ packages on a system.
 %patch100 -p1 -b .fontattr
 %patch101 -p1 -b .elfattr
 %patch102 -p1 -b .perl-python-attr
+%patch103 -p1 -b .mpsize
 
 %patch301 -p1 -b .niagara
 %patch302 -p1 -b .geode
@@ -455,6 +457,9 @@ exit 0
 %doc COPYING doc/librpm/html/*
 
 %changelog
+* Thu Feb 09 2012 Panu Matilainen <pmatilai at redhat.com> - 4.9.1.2-12
+- switch back to smaller BDB cache default (#752897)
+
 * Sun Jan 15 2012 Dennis Gilmore <dennis at ausil.us> - 4.9.1.2-11
 - always apply arm hfp macros, conditionally apply the logic to detect hfp
 


More information about the scm-commits mailing list