Your Question: How Set Sysctl Variable Linux?
Contents How Do I Change the Shmmax Value in Linux? to Configure Shared Memory on Linux Log in as Root. Edit the File /Etc/Sysctl. Conf. with Redhat Linux, You...
Contents
How do I change the Shmmax value in Linux?
To configure shared memory on Linux
- Log in as root.
- Edit the file /etc/sysctl. conf. With Redhat Linux, you can also modify sysctl. …
- Set the values of kernel.shmax and kernel.shmall, as follows: echo MemSize > /proc/sys/shmmax echo MemSize > /proc/sys/shmall. where MemSize is the number of bytes. …
- Reboot the machine using this command: sync; sync; reboot.
How do I make Sysctl changes permanent?
So all you have to do is add variable = value in /etc/sysctl. conf file. So the changes remains the permanent.