Fwd: Re: Shared memory for RH Linux 7.1
Show quoted text
This is true. You can adjust the value in the /proc/sys/kernel/shmmax
file. If you change the value it will be reset when you reboot, so you
will need to write a start-up script to always change this value if you
want it to be permanent.-r
At 09:51 AM 5/24/01 -0700, you 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 1: subscribe and unsubscribe commands go to majordomo@postgresql.org---
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
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:
Show quoted text
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
unknownI 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
Import Notes
Reply to msg id not found: 3B0D4CC7.32887E21@cs.auc.dkReference msg id not found: f40d3195.0105240851.25bec2d1@posting.google.com | Resolved by subject fallback
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.
On Thu, 24 May 2001, Ryan Mahoney wrote:
This is true. You can adjust the value in the /proc/sys/kernel/shmmax
file. If you change the value it will be reset when you reboot, so you
will need to write a start-up script to always change this value if you
want it to be permanent.
or you can let sysctl do it with this in /etc/sysctl.conf:
kernel.shmmax = 268435456
(obviously changing the value with what is appropriate for your machine).
This is for a RH 6.2 box. DOnt know if its the same on 7.1. We switched to
FreeBSD between redhat 6.2 and 7.0, so we dont have any RH7.1 boxes laying
around. I suspect it hasn't changed though.
Mike