forked from pool/kdump
Accepting request 237507 from home:ptesarik:branches:Kernel:kdump
Remove stale kdump-0.8.13.tar.bz2 Disable memory cgroup in kdump kernel OBS-URL: https://build.opensuse.org/request/show/237507 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kdump?expand=0&rev=95
This commit is contained in:
parent
c8542bcf88
commit
4dc45c77b4
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:519bdd14a31028b77b5c5656fdfc459e9ff69dbd383aa45bb8296a0fe2de4fa3
|
||||
size 3335819
|
29
kdump-disable-memory-cgroup.patch
Normal file
29
kdump-disable-memory-cgroup.patch
Normal file
@ -0,0 +1,29 @@
|
||||
From: Petr Tesarik <ptesarik@suse.cz>
|
||||
Date: Mon Jun 16 13:26:52 2014 +0200
|
||||
Subject: Disable memory cgroup in the kdump kernel
|
||||
References: bnc#881091
|
||||
Patch-mainline: v0.8.15
|
||||
Git-commit: 63b43b62fa385f5b2a0326c57cb0821d698aecc8
|
||||
|
||||
Since cgroups are not used for anything in the kdump kernel, they only
|
||||
take up part of the precious RAM. It is better to keep them disabled.
|
||||
|
||||
Signed-off-by: Petr Tesarik <ptesarik@suse.cz>
|
||||
|
||||
diff --git a/init/rc.kdump.functions b/init/rc.kdump.functions
|
||||
index 6a42ef7..24c1656 100755
|
||||
--- a/init/rc.kdump.functions
|
||||
+++ b/init/rc.kdump.functions
|
||||
@@ -99,10 +99,10 @@ function build_kdump_commandline()
|
||||
if [ -z "$commandline" ]; then
|
||||
commandline=$(
|
||||
remove_from_commandline \
|
||||
- 'crashkernel|splash|mem|BOOT_IMAGE|showopts|zfcp\.allow_lun_scan|hugepages|acpi_no_memhotplug' \
|
||||
+ 'crashkernel|splash|mem|BOOT_IMAGE|showopts|zfcp\.allow_lun_scan|hugepages|acpi_no_memhotplug|cgroup_disable' \
|
||||
< /proc/cmdline)
|
||||
# Use deadline for saving the memory footprint
|
||||
- commandline="$commandline elevator=deadline sysrq=yes reset_devices acpi_no_memhotplug"
|
||||
+ commandline="$commandline elevator=deadline sysrq=yes reset_devices acpi_no_memhotplug cgroup_disable=memory"
|
||||
local arch=$(uname -i)
|
||||
case "$arch" in
|
||||
i?86|x86_64|ia64)
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 16 11:27:57 UTC 2014 - ptesarik@suse.cz
|
||||
|
||||
- kdump-disable-memory-cgroup.patch: disable memory cgroup in the
|
||||
kdump kernel (bnc#881091).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 16 10:51:43 UTC 2014 - ptesarik@suse.cz
|
||||
|
||||
|
@ -59,6 +59,7 @@ PreReq: %insserv_prereq %fillup_prereq mkinitrd
|
||||
Source: %{name}-%{version}.tar.bz2
|
||||
Source2: %{name}-rpmlintrc
|
||||
Source3: kdump.service
|
||||
Patch0: %{name}-disable-memory-cgroup.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
# rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
|
||||
Provides: kdump-helpers = %{version}
|
||||
@ -96,6 +97,7 @@ Authors:
|
||||
|
||||
%prep
|
||||
%setup
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
export CFLAGS="%optflags"
|
||||
|
Loading…
x
Reference in New Issue
Block a user