Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: How to PERMANENTLY set semaphores in Linux - Suse Personal Edition 8.2?
linuxquestion_at_yahoo.com wrote:
>
> Edit /etc/sysctl.conf
> add/change: kernel.shmmax=2147483648
>
> sysctl -p
> kernel.shmmax = 2147483648
>
> cat /proc/sys/kernel/shmmax
> 2147483648
>
> Edit the file, /etc/init.d/boot.local and add:
> sysctl -p
--snip--
>
> Does anyone have any more ideas on how to set the
> shmmax at boot time?
I'm not familiar with SuSe but I think there should be an rc.local file that is run during the system boot.
If you want to set it to "2147483648" then do it like this.
Edit /etc/rc.d/rc.local and add the line below to the end of it.
/sbin/sysctl -p
Edit /etc/sysctl.conf and add the line below.
kernel.shmmax = 2147483648
Then run "/sbin/sysctl -p" to update /proc without rebooting. That should cause it run and update /proc during system boot.
-- Confucius: He who play in root, eventually kill tree. Registered with The Linux Counter. http://counter.li.org/ Slackware 9.1.0 Kernel 2.4.22 SMP i686 (GCC) 3.3.2 Uptime: 21 min, 2 users, load average: 1.83, 1.75, 1.21Received on Thu Nov 20 2003 - 01:22:23 CST
![]() |
![]() |