Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Kernel parameter shmctl change

Status
Not open for further replies.

zum

Technical User
Mar 31, 2003
148
US
How do I check my parameter setting for shmctl, and if needed how to I change the setting? I'm running Redhat 4.

Thanks.
 
sysctl -a | grep shm
vm.hugetlb_shm_group = 0
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.shmmax = 33554432

If you are looking for details about a shared memory segment the man page for shmctl should be helpful. Also ipcs and ipcrm are the userspace tools for manipulating and displaying certain details for System V IPC constructs.
 
After you have used sysctl to tweak the setting while running, you can make the change automatic at boot time by adding a line like this to /etc/sysctl.conf:

kernel.shmmax = 134217728
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top