System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Linux Kernel Parameter without rebooting box.

Gulam Mohiuddin
Regular Advisor

Changing Linux Kernel Parameter without rebooting box.

I did following commands to change Linux (RHEL AS 4.0 32-bit) Kernel Parameters to take effect without rebooting the Server.

echo "kernel.sem=1250 256000 128 1024" >> /etc/sysctl.conf
sysctl -p /etc/sysctl.conf

Is it correct?

How to make sure those changes are in effect?

Thanks,

Gulam.
Everyday Learning.
5 REPLIES
Court Campbell
Honored Contributor

Re: Changing Linux Kernel Parameter without rebooting box.

cat /proc/sys/kernel/sem
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
skt_skt
Honored Contributor

Re: Changing Linux Kernel Parameter without rebooting box.

# sysctl -a|grep -i sem
kernel.sem = 250 32000 32 128
rajdev
Valued Contributor

Re: Changing Linux Kernel Parameter without rebooting box.

Hi,

What you did is correct, its working in my system.

Try to put the values directly to /proc/sys/kernel/sem

echo "1250 256000 128 1024" > /proc/sys/kernel/sem
[ but this will not survive a reboot !!]

then check
sysctl -a |grep sem

if the value is still old, then there is some other issues.

Regards,
RD
Andrew Cowan
Honored Contributor

Re: Changing Linux Kernel Parameter without rebooting box.

The easiest way to survive a reboot is to add the value to "/etc/sysctl.conf" or to add the statement to "/etc/rc.local".
Steven E. Protter
Exalted Contributor

Re: Changing Linux Kernel Parameter without rebooting box.

Shalom,

All current kernel values are written to the /proc/sys/kernel directory.

To see if an in the fly change has been effected check there.

sysctl -a

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com