If you are new to Unixmen, you may want to subscribe : ![]()
![]()
![]()
![]()
|
20 February 2010
The Linux kernel has many parameters that may be tuned, and are not well documented. Shared memory has been a big issue with big application like Oracle, Tibco, Webmethods on linux, This is the way to show you how to set limit of your used memory .
To determine the maximum size of a shared memory segment, run:
# cat /proc/sys/kernel/shmmax
2147483648
The default shared memory limit for SHMMAX can be changed in the proc file system without reboot:
# echo 2147483648 > /proc/sys/kernel/shmmax
Alternatively, you can use sysctl(8) to change it:
# sysctl -w kernel.shmmax=2147483648
To make a change permanent, add the following line to the file /etc/sysctl.conf (your setting may vary). This file is used during the boot process.
# echo "kernel.shmmax=2147483648" >> /etc/sysctl.conf
If you are here for the first time, you may want to subscribe to our rss feed or to follow us on Twitter. Thanks for visiting.
Related Articles By Tags:

