SUSE Support

Here When You Need Us

Capturing a kernel dump may fail if hugepages are enabled in /etc/sysctl.conf

This document (7017830) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 11 Service Pack 1 (SLES 11 SP1)
SUSE Linux Enterprise Server 11 Service Pack 2 (SLES 11 SP2)
SUSE Linux Enterprise Server 11 Service Pack 3 (SLES 11 SP3)
SUSE Linux Enterprise Server 11 Service Pack 4 (SLES 11 SP4)
SUSE Linux Enterprise Server 12 Service Pack 1 (SLES 12 SP1)

Situation

With kdump-0.8.15-21.1, capturing a kernel dump will fail if the kernel tuneable nr_hugepages is enabled in /etc/sysctl.conf.
If there is an entry like

p, li { white-space: pre-wrap; }

vm.nr_hugepages=YYY


where YYY is the amount of huge pages to be enabled.


Resolution

A workaround would be to remove the line for the hugepages in /etc/sysctl.conf and
add it to the kernel commandline instead.

The best approach to modify the kernel commandline is to start:

yast2 bootloaderswitch to the "Kernel Parameters" Tab and add the following parameter:
hugepages=XXX

in the line "Optional Kernel Command Line Parameter" (for SLES12)


where XXX is the requested number of hugepages to be enabled.
After the file had been saved you need to run "mkdumprd"
to create a new initrd for the kdump kernel.
hugepages=360 p, li { white-space: pre-wrap; }hugepages=360

Cause

Enabled hugepages will cause the capture kernel to run into an
out of memory (OOM) condition, preventing it to start the scripts
responsible to save the kernel dump.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7017830
  • Creation Date: 08-Jul-2016
  • Modified Date:14-Oct-2022
    • SUSE Linux Enterprise Desktop
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.