Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 23A802E003F for ; Mon, 18 Feb 2008 03:38:43 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 71203-02 for ; Mon, 18 Feb 2008 03:38:40 -0400 (AST) Received: from smtp.infidyne.com (ds9.infidyne.com [88.80.6.206]) by postgresql.org (Postfix) with ESMTP id 5840B2E003A for ; Mon, 18 Feb 2008 03:38:40 -0400 (AST) Received: from c-a816e555.03-51-73746f3.cust.bredbandsbolaget.se (c-a816e555.03-51-73746f3.cust.bredbandsbolaget.se [85.229.22.168]) by smtp.infidyne.com (Postfix) with ESMTP id CE7554982; Mon, 18 Feb 2008 08:38:37 +0100 (CET) From: Peter Schuller To: pgsql-performance@postgresql.org Subject: Re: shared_buffers in 8.3 w/ lots of RAM on dedicated PG machine Date: Mon, 18 Feb 2008 08:39:46 +0100 User-Agent: KMail/1.9.7 Cc: Greg Smith References: <20080215123528.GA16532@hyperion.scode.org> <20080215135846.GA17327@hyperion.scode.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3003813.aTUxKR4d5m"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200802180839.46557.peter.schuller@infidyne.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/196 X-Sequence-Number: 28738 --nextPart3003813.aTUxKR4d5m Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > PostgreSQL only uses direct I/O for writing to the WAL; everything else > goes through the regular OS buffer cache unless you force it to do > otherwise at the OS level (like some Solaris setups do with > forcedirectio). This is one reason it still make not make sense to give > an extremely high percentage of RAM to PostgreSQL even with improvements > in managing it. =20 Ok - thank you for the input (that goes for everyone). > Another is that shared_buffers memory has to be=20 > reconciled with disk at every checkpoint, where OS buffers do not. Hmm. Am I interpreting that correctly in that dirty buffers need to be flus= hed=20 to disk at checkpoints? That makes perfect sense - but why would that not b= e=20 the case with OS buffers? My understanding is that the point of the=20 checkpoint is to essentially obsolete old WAL data in order to recycle the= =20 space, which would require flushing the data in question first (i.e., =20 normally you just fsync the WAL, but when you want to recycle space you nee= d=20 fsync() for the barrier and are then free to nuke the old WAL). =2D-=20 / Peter Schuller PGP userID: 0xE9758B7D or 'Peter Schuller ' Key retrieval: Send an E-Mail to getpgpkey@scode.org E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org --nextPart3003813.aTUxKR4d5m Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBHuTZCDNor2+l1i30RAnUuAKCAZo9Ifl2qjXFAuTGaV3yrXQIPYwCeJZhm 6w5rCIoHO850luHVd26oU78= =C6kJ -----END PGP SIGNATURE----- --nextPart3003813.aTUxKR4d5m--