Kipp Holger
2006-Mar-22 11:01 UTC
How do I change kern.ipc.shmmax in FreeBSD 5.x automatically after reboot?
Hello, I have the following entries in /boot/loader.conf: kern.ipc.shm_use_phys="1" kern.ipc.semmns="500" kern.ipc.semmni="40" kern.ipc.semmap="500" which are set correctly. Unfortunately, the following two entries kern.ipc.shmmax="512000000" kern.ipc.shmall="65526" do not change the corresponding values according to sysctl, no matter whether I put them in /boot/loader.conf or /etc/sysctl.conf. Changing them by hand (as root with 'sysctl') afterwards however _does_ work, so I have (for now) put those two settings in a little script (/usr/local/etc/rc.d/000_sysctl.sh) Has this behaviour changed for 6.x? Anyone who could explain this behaviour? Regards, Holger
Vivek Khera
2006-Mar-22 15:20 UTC
How do I change kern.ipc.shmmax in FreeBSD 5.x automatically after reboot?
On Mar 22, 2006, at 6:01 AM, Kipp Holger wrote:> which are set correctly. Unfortunately, the following > two entries > > kern.ipc.shmmax="512000000" > kern.ipc.shmall="65526" > > do not change the corresponding values according > to sysctl, no matter whether I put them in > /boot/loader.conf or /etc/sysctl.conf.Here is how I bump up values to run a large-ish postgresql server under 6.0-p4: in /boot/loader.conf I have kern.ipc.semmni=32 kern.ipc.semmns=512 and in /etc/sysctl.conf I have # tuning for PostgreSQL kern.ipc.shm_use_phys=1 kern.ipc.shmmax=1073741824 kern.ipc.shmall=262144 kern.ipc.semmsl=512 kern.ipc.semmap=256 and it works just fine. IIRC it worked the same in 5.4.