Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to change the following parameters :
SHMMAX to 128
SHMMIN to 1
SHMMIN to 100
SHMSEG to 10
SEMMNI to 100
SEMMSL to 128
SEMMNS to 128
SEMOPM to 100
SEMVMX 32767
I dont know how to do this in RedHat 7.3 Linux.
In SCO UNIX however I use
/etc/conf/bin/idtune SHMMAX 128
to change the value of the kernel parameter.
I assume that I would have to do something similar ?
I thought about different params, sorry. look under
/proc/sys/kernel
there are entries for shm and sem. You can use echo "param">/proc/sys/kernel/file
Let me look how to get it set permanently on boot up, instead of echoing the parameters into /proc
On RedHat, there's a handy file called /etc/sysctl.conf into which you can put the options in sysctl format.
Essentially, sysctl format is the same as the /proc/sys/ layout, but with the '/' changed to a '.'.
So for the max SvsV shm segment size, you can either play with the file:
/proc/sys/kernel/shmmax
Or the sysctl variable:
kernel.shmmax
However, exactly what this actually is is beyond my knowledge by quite a way. Some of these cannot be altered, some can be but will have no effect. Some will actually work, and changing others may force a kernel panic.
They're documented, at least usually, in the /usr/src/linux-*/Documentation/sysctl/ directory of your kernel source tree, or in the /usr/share/doc/kernel-*/sysctl/ if you have installed the kernel-doc package.
Forgot to mention, there is no need to double post, if want to correct something in your original post use edit button at the right buttom corner of the post frame.
If you only change the sysctl settings in the file /etc/sysctl.conf, then yes, those are only acted upon on boot. (This file exists on RedHat derivatives, and Debian derivatives - I think it's pretty much universal).
If you only change them in the /proc/sys filesystem, then no, those are acted upon immediately, and the new values are lost when you reboot.
So really, you need to do both.
Incidentally, "cat /proc/sys/....." will give you the current value that's actually being used - I don't think we ever made this clear - stuff in /proc/ isn't on your hard disk, it's a kind of view into the kernel of its current structures and Stuff. Changing the values here (usually with "echo 1 >/proc/sys/..." or similar) actually changes the live setting in the kernel, and not any file at all. Reading the file is actually reading the setting directly from the kernel.
For obvious reasons, you can't create a new setting by creating a new file. Although that'd be a very impressive patch. :-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.