Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id CBEFC37C10E for ; Mon, 6 Oct 2008 10:23:28 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 75671-02 for ; Mon, 6 Oct 2008 10:23:17 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from app1.ihackr.net (app1.ihackr.net [209.61.157.9]) by postgresql.org (Postfix) with ESMTP id E173B37C0FD for ; Mon, 6 Oct 2008 10:23:17 -0300 (ADT) Received: by app1.ihackr.net (Postfix, from userid 502) id 0F2DC5902CE; Mon, 6 Oct 2008 08:23:15 -0500 (CDT) Received: from [172.16.10.102] (cpe-72-183-237-242.satx.res.rr.com [72.183.237.242]) by app1.ihackr.net (Postfix) with ESMTP id 7623E5902CB; Mon, 6 Oct 2008 08:23:14 -0500 (CDT) Cc: "pgsql-admin@postgresql.org" Message-Id: <1538D014-0A5A-4DC1-928A-446E8A783267@zeroaccess.org> From: Marcelo Martins To: Rafael Domiciano In-Reply-To: <3a0028490810060452m268d0777uc18e2e605ff0bd28@mail.gmail.com> Content-Type: multipart/alternative; boundary=Apple-Mail-3-179058027 Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: Shared_buffers hint Date: Mon, 6 Oct 2008 08:23:13 -0500 References: <3a0028490810060452m268d0777uc18e2e605ff0bd28@mail.gmail.com> X-Mailer: Apple Mail (2.929.2) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200810/20 X-Sequence-Number: 30476 --Apple-Mail-3-179058027 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hi Rafael, The result there means that the minimal should be 4.69Mb for shared_buffers As a rule of thumb the shared buffers should be between 10% - 15% of available RAM that assuming such is a dedicated PG server. I have worked on some servers where I set shared buffers lower than 10%, it's really a matter of trying out what value works best for you. Marcelo Linux/Solaris System Administrator http://www.zeroaccess.org On Oct 6, 2008, at 6:52 AM, Rafael Domiciano wrote: > HI people, > > I'm tuning a server that is a long time abandoned, and this server > is a little slow. > Now, in my postgresql.conf I have: > shared_buffers = 100Mb > mas_fsm_relations = 15000 > mas_fsm_pages = 1600000 > max_connections = 300 > > And I changin' to: > shared_buffers = 1000Mb > (The server has 2 Gb of memory) > mas_fsm_relations = 15000 > (The Vacuum noticed me 608 relations) > mas_fsm_pages = 1600000 > (The Vacuum noticed me 500800 pages) > max_connections = 300 > (I did a "ps axf | grep postgres | wc -l" and the bash brings to > me the number of 120 and all the people is not online at now) > > My qustion is about shared_buffers, in postgresql.conf I have: min > 128kB or max_connections*16kB # (change requires restart) > So I did: > 300 * (16Kb / 1024) = 4,69? > What this result means? > > Thnks all, > > Rafael Domiciano --Apple-Mail-3-179058027 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi = Rafael,

The result there means that the minimal = should be 4.69Mb for shared_buffers
As a rule of thumb the = shared buffers should be between 10% - 15% of available RAM = that assuming such is a dedicated PG server.
I have worked on = some servers where I set shared buffers lower than 10%,  it's = really a matter of trying out what value works best for =  you.


Marcelo
Linux/Solaris System = Administrator

On Oct 6, 2008, at 6:52 AM, = Rafael Domiciano wrote:

HI people,

I'm tuning a server that is a = long time abandoned, and this server is a little slow.
Now, in = my postgresql.conf I have:
shared_buffers =3D 100Mb
= mas_fsm_relations =3D 15000
mas_fsm_pages =3D = 1600000
max_connections =3D 300

And I = changin' to:
shared_buffers =3D 1000Mb
   = (The server has 2 Gb of memory)
mas_fsm_relations =3D = 15000
   (The Vacuum noticed me 608 = relations)
mas_fsm_pages =3D 1600000
   = (The Vacuum noticed me 500800 pages)
=
max_connections =3D 300
   (I did a "ps axf | grep = postgres | wc -l" and the bash brings to me the number of 120 and all = the people is not online at now)

My qustion is about = shared_buffers, in postgresql.conf I have: min 128kB or = max_connections*16kB  # (change requires restart)
=
So I did:
300 * (16Kb / 1024) =3D 4,69?
What = this result means?

Thnks = all,

Rafael = Domiciano

= --Apple-Mail-3-179058027--