Unable to set kernel.shmmni to a value greated than 32k (32768)
This document (000020403) is provided subject to the disclaimer at the end of this document.
Environment
Situation
Adding for example kernel.shmmni=65536 to /etc/sysctl.conf results in systemd-sysctl service failure to apply kernel variables.
Also, manually calling the same values fail :
# sysctl -w kernel.shmmni=65536 sysctl: setting key "kernel.shmmni": Invalid argument kernel.shmmni = 65536
Resolution
Append ipcmni_extend to GRUB_CMDLINE_LINUX and run
# update-bootloader
to update the bootloader settings. On the next boot:
# sysctl -w kernel.shmmni=65536
will be applied correctly.
Cause
Additional Information
The following kernel commit rectified that :
6730e6580177d: ipc: IPCMNI limit check for msgmni and shmmni
And added the possibility to increase the IPCMNI limit from 32k to 8M if the users really want the extended value, and that can be achieved by adding 'ipcmni_extend' to the kernel boot parameters.
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:000020403
- Creation Date: 01-Oct-2021
- Modified Date:06-Oct-2021
-
- SUSE Linux Enterprise Server
- SUSE Linux Enterprise Server for SAP Applications
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com