- switch back to smaller BDB cache default (#752897)
This commit is contained in:
parent
72d4c0c695
commit
e8efccb3d4
28
rpm-4.9.x-mpsize.patch
Normal file
28
rpm-4.9.x-mpsize.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
commit d8cd36058b528f56bd579204426143be1e1eac6d
|
||||||
|
Author: Panu Matilainen <pmatilai@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}
|
||||||
|
|
7
rpm.spec
7
rpm.spec
@ -21,7 +21,7 @@
|
|||||||
Summary: The RPM package management system
|
Summary: The RPM package management system
|
||||||
Name: rpm
|
Name: rpm
|
||||||
Version: %{rpmver}
|
Version: %{rpmver}
|
||||||
Release: %{?snapver:0.%{snapver}.}11%{?dist}
|
Release: %{?snapver:0.%{snapver}.}12%{?dist}
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
Url: http://www.rpm.org/
|
Url: http://www.rpm.org/
|
||||||
Source0: http://rpm.org/releases/rpm-4.9.x/%{name}-%{srcver}.tar.bz2
|
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
|
Patch100: rpm-4.9.x-fontattr.patch
|
||||||
Patch101: rpm-4.9.x-elfattr.patch
|
Patch101: rpm-4.9.x-elfattr.patch
|
||||||
Patch102: rpm-4.9.1.2-perl-python-attr.patch
|
Patch102: rpm-4.9.1.2-perl-python-attr.patch
|
||||||
|
Patch103: rpm-4.9.x-mpsize.patch
|
||||||
|
|
||||||
# These are not yet upstream
|
# These are not yet upstream
|
||||||
Patch301: rpm-4.6.0-niagara.patch
|
Patch301: rpm-4.6.0-niagara.patch
|
||||||
@ -226,6 +227,7 @@ packages on a system.
|
|||||||
%patch100 -p1 -b .fontattr
|
%patch100 -p1 -b .fontattr
|
||||||
%patch101 -p1 -b .elfattr
|
%patch101 -p1 -b .elfattr
|
||||||
%patch102 -p1 -b .perl-python-attr
|
%patch102 -p1 -b .perl-python-attr
|
||||||
|
%patch103 -p1 -b .mpsize
|
||||||
|
|
||||||
%patch301 -p1 -b .niagara
|
%patch301 -p1 -b .niagara
|
||||||
%patch302 -p1 -b .geode
|
%patch302 -p1 -b .geode
|
||||||
@ -455,6 +457,9 @@ exit 0
|
|||||||
%doc COPYING doc/librpm/html/*
|
%doc COPYING doc/librpm/html/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 09 2012 Panu Matilainen <pmatilai@redhat.com> - 4.9.1.2-12
|
||||||
|
- switch back to smaller BDB cache default (#752897)
|
||||||
|
|
||||||
* Sun Jan 15 2012 Dennis Gilmore <dennis@ausil.us> - 4.9.1.2-11
|
* Sun Jan 15 2012 Dennis Gilmore <dennis@ausil.us> - 4.9.1.2-11
|
||||||
- always apply arm hfp macros, conditionally apply the logic to detect hfp
|
- always apply arm hfp macros, conditionally apply the logic to detect hfp
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user