ISST-LTE:pVM:thymelp2:ubuntu 16.04: change "maxcpus=1" to "nr_cpus=1" in kdump-tools
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
makedumpfile (Ubuntu) |
Fix Released
|
Undecided
|
Taco Screen team | ||
Xenial |
Fix Released
|
Low
|
Louis Bouchard | ||
Yakkety |
Fix Released
|
Undecided
|
Taco Screen team |
Bug Description
[SRU justification]
Use a more restrictive kernel boot option to limit CPU numbers to 1
[Impact]
Will significantly lower crashkernel memory usage on some architectures (namely ppc64el)
[Fix]
Change the maxcpus boot parameter used in the kexec command by nr_cpus.
[Test Case]
kexec-config show will display maxcpus=1 without the change. It will show nr_cpus=1 with the proposed change.
[Regression]
None expected, nr_cpus is a more generic parameter and is more restrictive than the previous parameter.
[Original Problem Description of the problem]
== Comment: #0 - Ping Tian Han - 2016-04-07 23:04:30 ==
---Problem Description---
Because canonical has fixed bug 137281 ( LP: #1560552 ) in 4.4.0-17-generic, the kernel now supports "nr_cpus=1". So we should update the "maxcpus=1" to "nr_cpus=1" in /etc/default/
---uname output---
Linux thymelp2 4.4.0-17-generic #33-Ubuntu SMP Tue Mar 29 17:15:31 UTC 2016 ppc64le ppc64le ppc64le GNU/Linux
Userspace tool: kdump-tools version 1:1.5.9-5
== Comment: #2 - Hari Krishna Bathini - 2016-04-11 04:36:14 ==
(In reply to comment #1)
> Hari.
>
> Would you please validate that nr_cpus is consistent across architectures
> and should become the new default?
>
> Thanks.
Hi Kevin,
I know nr_cpus=1 is supported on x86 based on this patch
https:/
About other architectures, I am not really sure.
But looking at the kdump-tools source package, it seems like other architectures
are using maxcpus=1 to boot kdump kernel unless there is architecture specific
overrides that are missing in the source. Canonical might be able to answer better.
If other aren't using or willing to use nr_cpus=1, we may need a patch of this kind:
diff --git a/kdump-config b/kdump-config
index 0ff0e6f..aba300e 100755
--- a/kdump-config
+++ b/kdump-config
@@ -48,7 +48,11 @@ KDUMP_COREDIR=
KDUMP_
KDUMP_
MAKEDUMP_
-KDUMP_
+if [ "$ARCH" = "ppc64le" ]; then
+ KDUMP_CMDLINE_
+else
+ KDUMP_CMDLINE_
+fi
KDUMP_
[ -d $KDUMP_COREDIR ] || mkdir -p $KDUMP_COREDIR ;
== Comment: #4 - Kevin W. Rudd - 2016-04-11 11:08:16 ==
Mirroring to Canonical for their review and feedback.
tags: | added: architecture-ppc64le bugnameltc-140174 severity-medium targetmilestone-inin--- |
Changed in ubuntu: | |
assignee: | nobody → Taco Screen team (taco-screen-team) |
affects: | ubuntu → makedumpfile (Ubuntu) |
Changed in makedumpfile (Ubuntu Xenial): | |
assignee: | nobody → Louis Bouchard (louis-bouchard) |
Changed in makedumpfile (Ubuntu Xenial): | |
status: | New → In Progress |
importance: | Undecided → Low |
description: | updated |
tags: |
added: targetmilestone-inin16041 verification-done removed: targetmilestone-inin--- verification-needed |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/1568952/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]