- kdump-count-const-slabs.patch: Add missing addition.

OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kdump?expand=0&rev=106
This commit is contained in:
Petr Tesařík 2014-09-09 06:09:19 +00:00 committed by Git OBS Bridge
parent 0a47303e13
commit 7a826176b5
2 changed files with 11 additions and 3 deletions

View File

@ -4,6 +4,7 @@ Subject: Take constant-size slabs into account for "kdump calibrate"
References: bnc#879460 References: bnc#879460
Patch-mainline: v0.8.16 Patch-mainline: v0.8.16
Git-commit: 3a7c9b3a02893ab9ac39e23cae5ead9e42716927 Git-commit: 3a7c9b3a02893ab9ac39e23cae5ead9e42716927
Git-commit: 8c0a42e80a89100addc09d584253f1c8accde500
Some slabs do not depend on available memory or system utilization. Some slabs do not depend on available memory or system utilization.
Their size can be taken directly from the running kernel. Their size can be taken directly from the running kernel.
@ -15,8 +16,8 @@ one I saw had over 10 megabytes).
Signed-off-by: Petr Tesarik <ptesarik@suse.cz> Signed-off-by: Petr Tesarik <ptesarik@suse.cz>
--- ---
kdumptool/calibrate.cc | 213 +++++++++++++++++++++++++++++++++++++++++++++++++ kdumptool/calibrate.cc | 215 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 213 insertions(+) 1 file changed, 215 insertions(+)
--- a/kdumptool/calibrate.cc --- a/kdumptool/calibrate.cc
+++ b/kdumptool/calibrate.cc +++ b/kdumptool/calibrate.cc
@ -222,7 +223,7 @@ Signed-off-by: Petr Tesarik <ptesarik@suse.cz>
//{{{ Calibrate ---------------------------------------------------------------- //{{{ Calibrate ----------------------------------------------------------------
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
@@ -498,6 +693,24 @@ void Calibrate::execute() @@ -498,6 +693,26 @@ void Calibrate::execute()
required += DEF_FRAMEBUFFER_KB; required += DEF_FRAMEBUFFER_KB;
} }
@ -236,6 +237,8 @@ Signed-off-by: Petr Tesarik <ptesarik@suse.cz>
+ it->first.startsWith("ftrace_") ) { + it->first.startsWith("ftrace_") ) {
+ unsigned long slabsize = it->second->numSlabs() * + unsigned long slabsize = it->second->numSlabs() *
+ it->second->pagesPerSlab() * pagesize / 1024; + it->second->pagesPerSlab() * pagesize / 1024;
+ required += slabsize;
+
+ Debug::debug()->dbg("Adding %ld KiB for %s slab cache", + Debug::debug()->dbg("Adding %ld KiB for %s slab cache",
+ slabsize, it->second->name().c_str()); + slabsize, it->second->name().c_str());
+ } + }

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Sep 9 06:08:44 UTC 2014 - ptesarik@suse.cz
- kdump-count-const-slabs.patch: Add missing addition.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Sep 8 15:36:29 UTC 2014 - ptesarik@suse.cz Mon Sep 8 15:36:29 UTC 2014 - ptesarik@suse.cz