Some kernel parameter do not persist on OpenShift Nodes

Solution Verified - Updated -

Issue

  • I've tried to set "vm.panic_on_oom" kernel parameter and make it persistent, however it keeps getting reset back to '0'.
# Add "vm.panic_on_oom = 1" into /etc/sysctl.conf
   ### Run:
# systclt -p
   ### We can see that in /etc/sysctl.conf the parameter is set:
# cat etc/sysctl.conf | grep -i oom 
vm.panic_on_oom = 1

   ### However, the panic_on_oom parameter is not set (after a reboot) 
# cat proc/sys/vm/panic_on_oom 
0
  • What other parameters can't be set on OpenShift Nodes
  • Can I set any of the following parameters (persistently).
    • vm/overcommit_memory
    • vm/panic_on_oom
    • kernel/panic
    • kernel/panic_on_oops

Environment

  • Red Hat Enterprise Linux 7.x
  • Red Hat OpenShift Container Platform 3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.