How to modify kernel parameters and make the changes permanent after reboot ?

Solution Unverified - Updated -

Issue

  • How to modify kernel parameters and make the changes permanent after reboot ?
  • How to make the below kernel changes permanent (reboot restores old values) ?
# sysctl -w kernel.sem="250 256000 32 1024"  
kernel.sem = 250 256000 32 1024  

# sysctl -w kernel.msgmni=1024  
kernel.msgmni = 1024  

Environment

  • Red Hat Enterprise Linux, version 5 onwards

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content