Re: PG 8.1.1 Cannot allocate shared_buffers memory

From: "Tomeh, Husam" <htomeh(at)firstam(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: PG 8.1.1 Cannot allocate shared_buffers memory
Date: 2005-12-14 22:49:17
Message-ID: CB0FB369FF86E248A884BCC002562BCB19AD9D@pisgsna01sxch01.ana.firstamdata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


You're correct on trying and figuring the appropriate value of
shared_buffers for our application which I'd be doing. However, I wanted
to test how far I can get specially that 8.1 removed the limit of 2GB on
a 64-bit architecture like ours. The other thought is that my assumption
(which I may be wrong about) that the RDBMS (postgres in this case) will
do a better job managing and prioritizing the caching of objects, ie.
tables, data, etc than the kernel's cache which doesn't distinguish
indexes from tables,etc. I might be wrong on that (Linux kernel), but
that was my experience with Oracle on a Solaris box.

Thanks,

---

Husam Tomeh

-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: Wednesday, December 14, 2005 2:38 PM
To: Tomeh, Husam
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] PG 8.1.1 Cannot allocate shared_buffers memory
error

"Tomeh, Husam" <htomeh(at)firstam(dot)com> writes:
> I just installed postgres 8.1.1 on a dual optron Linux box running
Linux
> 4 advanced server, with 32GB of RAM and 2GB of swap.
> I'm trying to allocate 24 GB as shared_bufferes. I'm getting an error
> that I can not allocate memory (see below).

While this doesn't answer your question: why are you trying to do that?
AFAIK there is no evidence whatever that that's a good idea. Try
measuring performance at, say, 1Gb, 8Gb, 16Gb of shared buffers and see
where the trend is going before you waste a lot of time fixing the
kernel
parameters.

regards, tom lane

**********************************************************************
This message contains confidential information intended only for the use of the addressee(s) named above and may contain information that is legally privileged. If you are not the addressee, or the person responsible for delivering it to the addressee, you are hereby notified that reading, disseminating, distributing or copying this message is strictly prohibited. If you have received this message by mistake, please immediately notify us by replying to the message and delete the original message immediately thereafter.

Thank you.

FADLD Tag
**********************************************************************

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Keith 2005-12-14 23:18:07 Copy Command out of memory
Previous Message Tom Lane 2005-12-14 22:38:05 Re: PG 8.1.1 Cannot allocate shared_buffers memory error