Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id BB81F9FA192 for ; Mon, 4 Dec 2006 13:43:10 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 35360-06 for ; Mon, 4 Dec 2006 13:43:01 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from servata.com (ip-216-152-249-241.servata.com [216.152.249.241]) by postgresql.org (Postfix) with ESMTP id 8CECF9FA0EE for ; Mon, 4 Dec 2006 13:43:01 -0400 (AST) Received: from [209.162.219.253] (helo=dogma.v10.wvs) by servata.com with esmtpa (Exim 4.50) id 1GrHqD-0006fC-6I; Mon, 04 Dec 2006 09:42:57 -0800 Subject: Re: Configuration settings for 32GB RAM server From: Jeff Davis To: Mark Lonsdale Cc: pgsql-performance@postgresql.org In-Reply-To: <673ECBB77DA91F47AD4902A5FD73BCE4D5ED15@mail3> References: <673ECBB77DA91F47AD4902A5FD73BCE4D5ED15@mail3> Content-Type: text/plain; charset=utf-8 Date: Mon, 04 Dec 2006 09:42:57 -0800 Message-Id: <1165254177.25371.33.camel@dogma.v10.wvs> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/51 X-Sequence-Number: 22107 On Mon, 2006-12-04 at 12:10 -0500, Mark Lonsdale wrote: > - 4 physical CPUs (hyperthreaded to 8) >=20 > - 32 GB RAM >=20 > - x86_64 architecture >=20 > - RedHat AS 4 >=20 > - postgres 8.1.5 >=20 > =20 >=20 > Ive been taking a look at the various postgres tuning parameters, and > have come up with the following settings. =20 >=20 > =20 >=20 > shared_buffers =E2=80=93 50,000 - >From what Id read, increasing thi= s > number higher than this wont have any advantages ? >=20 Where did you read that? You should do some tests. Generally 25% of physical memory on a dedicated box is a good point of reference (on 8.1, anyway). I've heard as high as 50% can give you a benefit, but I haven't seen that myself. > fsm_pages =3D 200,000 =E2=80=93 Based this on some statistics about the n= umber > of pages freed from a vacuum on older server. Not sure if its fair > to calculate this based on vacuum stats of 7.3.4 server? >=20 Might as well make it a higher number because you have a lot of RAM anyway. It's better than running out of space in the FSM, because to increase that setting you need to restart the daemon. Increasing this by 1 only uses 6 bytes. That means you could set it to 10 times the number you currently have, and it would still be insignificant. Regards, Jeff Davis