Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 3FF2F633794 for ; Tue, 16 Feb 2010 17:33:45 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 84597-05 for ; Tue, 16 Feb 2010 21:33:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.210.182]) by mail.postgresql.org (Postfix) with ESMTP id A55A26328F3 for ; Tue, 16 Feb 2010 17:33:34 -0400 (AST) Received: by yxe12 with SMTP id 12so4381514yxe.28 for ; Tue, 16 Feb 2010 13:33:33 -0800 (PST) Received: by 10.150.166.14 with SMTP id o14mr2385596ybe.219.1266356013471; Tue, 16 Feb 2010 13:33:33 -0800 (PST) Received: from ?10.10.30.143? (204.11.227.33.static.etheric.net [204.11.227.33]) by mx.google.com with ESMTPS id 9sm2962370ywf.5.2010.02.16.13.33.15 (version=SSLv3 cipher=RC4-MD5); Tue, 16 Feb 2010 13:33:16 -0800 (PST) Subject: Re: Linux I/O tuning: CFQ vs. deadline From: Jeff Davis To: Josh Berkus Cc: Greg Smith , Kevin Grittner , pgsql-performance@postgresql.org, Albe Laurenz In-Reply-To: <4B704EA0.3050906@agliodbs.com> References: <4B6FDD26.9010106@2ndquadrant.com> <4B6FD868020000250002F084@gw.wicourts.gov> <4B702E05.1000708@2ndquadrant.com> <4B704EA0.3050906@agliodbs.com> Content-Type: text/plain Date: Tue, 16 Feb 2010 13:34:11 -0800 Message-Id: <1266356051.20221.8.camel@monkey-cat.sm.truviso.com> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.615 tagged_above=-10 required=5 tests=AWL=-0.875, BAYES_20=-0.74 X-Spam-Level: X-Archive-Number: 201002/260 X-Sequence-Number: 37681 On Mon, 2010-02-08 at 09:49 -0800, 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. I also did some tests when I was putting together my Synchronized Scan benchmarks: http://j-davis.com/postgresql/83v82_scans.html CFQ was so slow that I didn't include it in the results at all. The tests weren't intended to compare schedulers, so I did most of the tests with anticipatory (at least the ones on linux; I also tested freebsd). However, I have some raw data from the tests I did run with CFQ: http://j-davis.com/postgresql/results/ They will take some interpretation (again, not intended as scheduler benchmarks). The server was modified to record a log message every N page accesses. Regards, Jeff Davis