Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 54887632FE5 for ; Tue, 9 Feb 2010 00:14:51 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 48392-04 for ; Tue, 9 Feb 2010 04:14:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.8]) by mail.postgresql.org (Postfix) with ESMTP id 29765632E12 for ; Tue, 9 Feb 2010 00:14:39 -0400 (AST) Received: from [192.168.0.105] (pool-96-244-14-10.bltmmd.fios.verizon.net [96.244.14.10]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MbaU9-1NOPYi0RK1-00Jk1z; Tue, 09 Feb 2010 05:14:18 +0100 Message-ID: <4B70E117.6070708@2ndquadrant.com> Date: Mon, 08 Feb 2010 23:14:15 -0500 From: Greg Smith User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Josh Berkus CC: Kevin Grittner , pgsql-performance@postgresql.org, Albe Laurenz Subject: Re: Linux I/O tuning: CFQ vs. deadline References: <4B6FDD26.9010106@2ndquadrant.com> <4B6FD868020000250002F084@gw.wicourts.gov> <4B702E05.1000708@2ndquadrant.com> <4B704EA0.3050906@agliodbs.com> In-Reply-To: <4B704EA0.3050906@agliodbs.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX19/QhyNDUKpDxWVxEa9TZe60EToQ/VwFN1EFPZ Sajxqt3F0lO4wTaUUKfJrmOeiFjft+7fj3/QIDQFrTgwvF3Mpe qrlvEBjmK8PP2sZ0sQh0sVCatVtRuXY X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201002/128 X-Sequence-Number: 37549 Josh Berkus wrote: > FWIW, back when deadline was first introduced Mark Wong did some tests > and found Deadline to be the fastest of 4 on DBT2 ... but only by about > 5%. If the read vs. checkpoint analysis is correct, what was happening > is the penalty for checkpoints on deadline was almost wiping out the > advantage for reads, but not quite. > Wasn't that before 8.3, where the whole checkpoint spreading logic showed up? That's really a whole different write pattern now than it was then. 8.2 checkpoint writes were one big batch write amenable to optimizing for throughput. The new ones are not; the I/O is intermixed with reads most of the time. > Man, we'd need a lot of testing to settle this. I guess that's why > Linux gives us the choice of 4 ... > A recent on of these I worked on started with 4096 possible I/O configurations we pruned down the most likely good candidates from. I'm almost ready to schedule a week on Mark's HP performance test system in the lab now, to try and nail this down in a fully public environment for once. -- Greg Smith 2ndQuadrant Baltimore, MD PostgreSQL Training, Services and Support greg@2ndQuadrant.com www.2ndQuadrant.com