Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 72E111337BD0 for ; Fri, 4 Mar 2011 14:48:47 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 61653-08 for ; Fri, 4 Mar 2011 18:48:40 +0000 (UTC) X-Greylist: delayed 00:08:40.039182 by SQLgrey-1.7.6 Received: from crestone.coronasolutions.com (crestone.coronasolutions.com [66.45.104.24]) by mail.postgresql.org (Postfix) with ESMTP id F40F71337BBC for ; Fri, 4 Mar 2011 14:48:39 -0400 (AST) Received: from localhost (localhost.localdomain [127.0.0.1]) by crestone.coronasolutions.com (Postfix) with ESMTP id 511B95C24D for ; Fri, 4 Mar 2011 11:39:58 -0700 (MST) X-Virus-Scanned: Debian amavisd-new at coronasolutions.com Received: from crestone.coronasolutions.com ([127.0.0.1]) by localhost (localhost.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UApKsg8kr+zO for ; Fri, 4 Mar 2011 11:39:57 -0700 (MST) Received: from mac.local (unknown [10.1.250.14]) by crestone.coronasolutions.com (Postfix) with ESMTPA id 503415C22F for ; Fri, 4 Mar 2011 11:39:57 -0700 (MST) Message-ID: <4D7131FC.5030906@drivefaster.net> Date: Fri, 04 Mar 2011 11:39:56 -0700 From: Dan Harris User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.14) Gecko/20110221 Lightning/1.0b2 Thunderbird/3.1.8 MIME-Version: 1.0 CC: pgsql-performance@postgresql.org Subject: Re: Linux I/O schedulers - CFQ & random seeks References: <536110.72154.qm@web26008.mail.ukl.yahoo.com> <4D712978.60504@databill.com> In-Reply-To: <4D712978.60504@databill.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.879 tagged_above=-10 required=5 tests=BAYES_00=-1.9, MISSING_HEADERS=1.021 X-Spam-Level: X-Archive-Number: 201103/54 X-Sequence-Number: 42733 On 3/4/11 11:03 AM, Wayne Conrad wrote: > On 03/04/11 10:34, Glyn Astill wrote: > > I'm wondering (and this may be a can of worms) what peoples opinions > are on these schedulers? > > When testing our new DB box just last month, we saw a big improvement > in bonnie++ random I/O rates when using the noop scheduler instead of > cfq (or any other). We've got RAID 10/12 on a 3ware card w/ > battery-backed cache; 7200rpm drives. Our file system is XFS with > noatime,nobarrier,logbufs=8,logbsize=256k. How much is "big?" I > can't find my notes for it, but I recall that the difference was large > enough to surprise us. We're running with noop in production right > now. No complaints. > Just another anecdote, I found that the deadline scheduler performed the best for me. I don't have the benchmarks anymore but deadline vs cfq was dramatically faster for my tests. I posted this to the list years ago and others announced similar experiences. Noop was a close 2nd to deadline. XFS (noatime,nodiratime,nobarrier,logbufs=8) 391GB db cluster directory BBU Caching RAID10 12-disk SAS 128GB RAM Constant insert stream OLAP-ish query patterns Heavy random I/O