Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id C472B1B454B3 for ; Thu, 2 Aug 2012 08:16:50 -0300 (ADT) Received: from szxga01-in.huawei.com ([119.145.14.64]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SwtOb-0002ss-4d for pgsql-hackers@postgresql.org; Thu, 02 Aug 2012 11:16:50 +0000 Received: from 172.24.2.119 (EHLO szxeml209-edg.china.huawei.com) ([172.24.2.119]) by szxrg01-dlp.huawei.com (MOS 4.3.4-GA FastPath queued) with ESMTP id AMO19937; Thu, 02 Aug 2012 19:16:29 +0800 (CST) Received: from SZXEML411-HUB.china.huawei.com (10.82.67.138) by szxeml209-edg.china.huawei.com (172.24.2.184) with Microsoft SMTP Server (TLS) id 14.1.323.3; Thu, 2 Aug 2012 19:15:16 +0800 Received: from blrprnc09ns (10.18.96.98) by szxeml411-hub.china.huawei.com (10.82.67.138) with Microsoft SMTP Server id 14.1.323.3; Thu, 2 Aug 2012 19:15:16 +0800 From: Amit Kapila To: "'Peter Geoghegan'" CC: "'PG Hackers'" References: <-5853706607335123168@unknownmsgid> In-Reply-To: Subject: Re: Help me develop new commit_delay advice Date: Thu, 2 Aug 2012 16:45:15 +0530 Message-ID: <002401cd70a0$1837a2b0$48a6e810$@kapila@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac1v+Q9t+k625kHkRd+GvJmTroBy7gAfmQjw Content-Language: en-us X-Originating-IP: [10.18.96.98] X-CFilter-Loop: Reflected X-Pg-Spam-Score: -3.2 (---) X-Archive-Number: 201208/17 X-Sequence-Number: 211839 > From: Peter Geoghegan [mailto:peter@2ndquadrant.com] > Sent: Wednesday, August 01, 2012 8:49 PM On 1 August 2012 15:14, Amit Kapila wrote: >> I shall look into this aspect also(setting commit_delay based on raw sync). >> You also suggest if you want to run the test with different configuration. > Well, I was specifically interested in testing if half of raw sync > time was a widely useful setting, across a variety of different, > though representative I/O subsystems. Unfortunately, without some > context about raw sync speed to go along with your numbers, I cannot > advance or disprove that idea. Raw sync speed data -------------------------- 2 seconds per test O_DIRECT supported on this platform for open_datasync and open_sync. Compare file sync methods using one 8kB write: (in wal_sync_method preference order, except fdatasync is Linux's default) open_datasync n/a fdatasync 165.506 ops/sec fsync 166.647 ops/sec fsync_writethrough n/a open_sync 164.654 ops/sec 165.506 * 8KB operations can perform in one sec. so 1 * 8KB operation takes 6.042 msec. > It would also have been nice to see a baseline number of 0 too, to get > an idea of how effective commit_delay may now be. However, that's > secondary. In the data sent yesterday commit_delay=0 was there. With Regards, Amit Kapila.