Thread: Shared memory for RH Linux 7.1
In the past, I had to change the RedHat Linux kernel so that the shared memory was set to something much higher than the default (which I think was about 32 MBytes). It seems that this is no longer necessary in RH 7.1 (kernel 2.4). Can someone confirm this? -Tony
Tony Reina wrote: > In the past, I had to change the RedHat Linux kernel so that the > shared memory was set to something much higher than the default (which > I think was about 32 MBytes). It seems that this is no longer > necessary in RH 7.1 (kernel 2.4). Can someone confirm this? One can: echo 67108864 > /proc/sys/kernel/shmmax To adjust limits
This is my first post here. I hope that I got everything right... This has already been possible for 2.2.x Kernels. Check out the Postgresql admin documentation at http://www.fr.postgresql.org/devel-corner/docs/admin/kernel-resources.html#SYSVIPC Or did I get something wrong. By the way. Is there a release date for PG 7.1.2? Yours David Kuczek __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
I think you still need to set your shared memory size, because my Redhat 7.1 gives me this: [root@localhost kernel]# cat /proc/sys/kernel/shmmax 33554432 [root@localhost kernel]# uname -a Linux localhost.localdomain 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown I think shared memory is set this low for compatability reasons, but I'm not sure. Poul L. Christiansen Tony Reina wrote: > > In the past, I had to change the RedHat Linux kernel so that the > shared memory was set to something much higher than the default (which > I think was about 32 MBytes). It seems that this is no longer > necessary in RH 7.1 (kernel 2.4). Can someone confirm this? > > -Tony
This value can be dynamically changed by: echo "new value here" > /proc/sys/kernel/shmmax Glad I bought that expensive RedHat support contract! -r At 08:02 PM 5/24/01 +0200, Poul L. Christiansen wrote: >I think you still need to set your shared memory size, because my Redhat >7.1 gives me this: > >[root@localhost kernel]# cat /proc/sys/kernel/shmmax >33554432 >[root@localhost kernel]# uname -a >Linux localhost.localdomain 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 >unknown > >I think shared memory is set this low for compatability reasons, but I'm >not sure. > >Poul L. Christiansen > >Tony Reina wrote: > > > > In the past, I had to change the RedHat Linux kernel so that the > > shared memory was set to something much higher than the default (which > > I think was about 32 MBytes). It seems that this is no longer > > necessary in RH 7.1 (kernel 2.4). Can someone confirm this? > > > > -Tony > >---------------------------(end of broadcast)--------------------------- >TIP 4: Don't 'kill -9' the postmaster > > > >--- >Incoming mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.251 / Virus Database: 124 - Release Date: 4/26/01 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.251 / Virus Database: 124 - Release Date: 4/26/01
On Thu, 24 May 2001, Ryan Mahoney wrote: > echo "new value here" > /proc/sys/kernel/shmmax The new canonical way is to: $ sysctl -w kernel.shmmax="new value" you can arrange for it you happen at boot time via /etc/sysctl.conf. Matthew.