Thread: Shared memory for RH Linux 7.1

Shared memory for RH Linux 7.1

From
reina@nsi.edu (Tony Reina)
Date:
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


Re: Shared memory for RH Linux 7.1

From
mlw
Date:
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





Re: Re: Shared memory for RH Linux 7.1

From
David Kuczek
Date:
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/


Re: Shared memory for RH Linux 7.1

From
"Poul L. Christiansen"
Date:
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


Re: Re: Shared memory for RH Linux 7.1

From
Ryan Mahoney
Date:
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

Re: Re: Shared memory for RH Linux 7.1

From
Matthew Kirkwood
Date:
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.