Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id F38169FB5A8 for ; Thu, 29 Mar 2007 13:16:53 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 13671-03 for ; Thu, 29 Mar 2007 13:16:40 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id B4A379FBAAF for ; Thu, 29 Mar 2007 13:16:40 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id l2TGGafT023287; Thu, 29 Mar 2007 12:16:37 -0400 (EDT) To: Erik Jones cc: PostgreSQL Performance Subject: Re: Shared buffers, db transactions commited, and write IO on Solaris In-reply-to: <9B7F4B34-7E96-4501-BCE0-D0BED739530A@myemma.com> References: <9B7F4B34-7E96-4501-BCE0-D0BED739530A@myemma.com> Comments: In-reply-to Erik Jones message dated "Wed, 28 Mar 2007 14:56:47 -0500" Date: Thu, 29 Mar 2007 12:16:36 -0400 Message-ID: <23286.1175184996@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/417 X-Sequence-Number: 23822 Erik Jones writes: > We've recently made a couple changes to our system that have resulted > in a drastic increase in performance as well as some very confusing > changes to the database statistics, specifically > pg_stat_database.xact_commit. Here's the details: I'm kinda boggled too. I can see how increasing shared buffers could result in a drastic reduction in write rate, if the working set of your queries fits in the new space but didn't fit in the old. I have no idea how that leads to a drop in number of transactions committed though. It doesn't make sense that autovac would run less frequently, because it's driven by number of tuples changed not number of disk writes; and that could hardly account for a 10x drop anyway. Did you by any chance take note of exactly which processes were generating all the I/O or the CPU load? regards, tom lane