Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UsDdC-0004L3-Fk for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Jun 2013 14:57:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UsDdB-0005Hi-W7 for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Jun 2013 14:57:06 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UsDdA-0005Hb-IB for pgsql-hackers@postgresql.org; Thu, 27 Jun 2013 14:57:04 +0000 Received: from nm36-vm8.bullet.mail.bf1.yahoo.com ([72.30.239.70]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UsDd7-00018P-AM for pgsql-hackers@postgresql.org; Thu, 27 Jun 2013 14:57:04 +0000 Received: from [98.139.212.146] by nm36.bullet.mail.bf1.yahoo.com with NNFMP; 27 Jun 2013 14:57:00 -0000 Received: from [98.139.212.202] by tm3.bullet.mail.bf1.yahoo.com with NNFMP; 27 Jun 2013 14:57:00 -0000 Received: from [127.0.0.1] by omp1011.mail.bf1.yahoo.com with NNFMP; 27 Jun 2013 14:57:00 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 78400.10495.bm@omp1011.mail.bf1.yahoo.com Received: (qmail 34187 invoked by uid 60001); 27 Jun 2013 14:56:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1372345019; bh=eDCfPIP6bo8lxrWpaDO3NF2uTWwgL+AtqtlxiwgfsDA=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=vF8E4NQKpk3yUe73vMARW1242EVL7240eXFMVD5waC2//WEI3R1CbB300Nbnt1r/1sLLKgA2uqNSc2cRz9qB0NCWD6ESl+s5Mmx4HWuO9jr5vNcoCsDknziK/iaQ46vPSN5HNCWszyH6oF3M6seG5F4far0wV4MFjxliXs8Vpfw= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=ymail.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=LtkaWHJX90npeJoUlZlaH65roa1iizjnWcV7kMaBxgGAp5ch21P6/byJUVP6g6eXgLWq2Z3XexAoRsnBY+TjKKYnlCUGCQqOmN3mVgQjBgdl4mFujyYnLfcdwpoAWwhJd7gSzfQsmHfkTBXgm93d4CeL4JZArfNlRql+N/wfLgw=; X-YMail-OSG: CpQySx8VM1mgAKz.lIo3P1GBqp6fOw6TNFp.EOSm9CYkKMX 6N.lHVWw6w9E3GJSLP4WWmEJYESrNNavRu8btYIEnrb1UCDnODVh87cE.Xm2 ScuD7EMoCn0rr2ZFgzgHqj5pfRK3KuDuA9kzRc8dkVJStdx.B_18NGGA4606 VNoIEOFOsW69XRuSgll2Eot4A18egr6Eqkga2OaDcKRJ3raVpLQBmFMRPDD4 BDG4nbHW6vWtDeA1REjJEPyIzYR.BnuTFdWvlSDkLcuyoWa61YJyPDoKTSaK 1ZH9kibdwrs6lpuiQWR5Wj7h3jmmRanFWMXti5MgFwu1so7mKGGoru5ErXi0 WUv9EmZBDXHoCKY5dLRIgTUE_FVsQkBmnA5OcPctViQvVQqTapqxn3xdrlkq 5d8LtTK9UoN6M6QcjyTWiHACeKCVs2AzyaUo6UlZwMLbB7ptu8tfgIeactR5 kmMlKHHZf5hlDD7_VH0VZ8t_9EydULH6NOV_FZivQW27_vPCQi0UfSBItVIG MaG3B6l5yG7qOMi1vxLkT_GBFcK8Oeyh_gKhuQza05DpIt1YkCKeEqwk6hSh 84cw9xLtf0sCqL8YzT2xl Received: from [76.255.18.237] by web162905.mail.bf1.yahoo.com via HTTP; Thu, 27 Jun 2013 07:56:59 PDT X-Rocket-MIMEInfo: 002.001, QW5kcmVzIEZyZXVuZCA8YW5kcmVzQDJuZHF1YWRyYW50LmNvbT4gd3JvdGU6Cgo.IEkgZG9uJ3QgdGhpbmsgSSBhY3R1YWxseSBmb3VuZCBhbnkgd29ya2xvYWQgd2hlcmUgdGhlIGJnd3JpdGVyCj4gYWN0dWFsbHkgd3JvdXRlIG91dCBhIHJlbGV2YW50IHBlcmNlbnRhZ2Ugb2YgdGhlIG5lY2Vzc2FyeSBwYWdlcy4KCkkgaGFkIG9uZSBhdCBXaXNjb25zaW4gQ291cnRzLsKgIFRoZSBkYXRhYmFzZSB3aGljaCB3ZSB0YXJnZXRlZCB3aXRoCmxvZ2ljYWwgcmVwbGljYXRpb24gZnJvbSB0aGUgNzIgY2lyY3VpdCABMAEBAQE- X-Mailer: YahooMailWebService/0.8.148.557 References: <5194eb32.85d60e0a.1c17.2253SMTPIN_ADDED_BROKEN@mx.google.com> <519b1d5f.9025b40a.2d07.ffffed08SMTPIN_ADDED_BROKEN@mx.google.com> <519f060c.cade440a.493f.ffffb080SMTPIN_ADDED_BROKEN@mx.google.com> <51b033cf.25dc420a.1edd.ffff8fd9SMTPIN_ADDED_BROKEN@mx.google.com> <51cada34.c31b0f0a.2927.7bfbSMTPIN_ADDED_BROKEN@mx.google.com> <20130627130146.GH1254@alap2.anarazel.de> Message-ID: <1372345019.25076.YahooMailNeo@web162905.mail.bf1.yahoo.com> Date: Thu, 27 Jun 2013 07:56:59 -0700 (PDT) From: Kevin Grittner Reply-To: Kevin Grittner Subject: Re: Move unused buffers to freelist To: Andres Freund , Robert Haas Cc: Amit Kapila , Greg Smith , PostgreSQL-development In-Reply-To: <20130627130146.GH1254@alap2.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: 0.7 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Andres Freund wrote: > I don't think I actually found any workload where the bgwriter > actually wroute out a relevant percentage of the necessary pages. I had one at Wisconsin Courts.=A0 The database which we targeted with logical replication from the 72 circuit court databases (plus a few others) on six database connection pool with about 20 to (at peaks) hundreds of transactions per second modifying the database (the average transaction involving about 20 modifying statements with potentially hundreds of affected rows), with maybe 2000 to 3000 queries per second on a 30 connection pool, wrote about one-third each of the dirty buffers with checkpoints, background writer, and backends needing to read a page.=A0 I shared my numbers with Greg, who I believe used them as one of his examples for how to tune memory, checkpoints, and background writer, so you might want to check with him if you want more detail. Of course, we set bgwriter_lru_maxpages =3D 1000 and bgwriter_lru_multiplier =3D 4, and kept shared_buffers to 2GB to hit that.=A0 Without the reduced shared_buffers and more aggressive bgwriter we hit the problem with writes overwhelming the RAID controller's cache and causing everything in the database to "freeze" until it cleared some cache space. I'm not saying this invalidates your general argument; just that such cases do exist.=A0 Hopefully this data point is useful. -- Kevin Grittner EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers