Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id CAB7B2E0047 for ; Tue, 6 May 2008 00:16:20 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 57062-01 for ; Tue, 6 May 2008 00:15:56 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by developer.postgresql.org (Postfix) with ESMTP id 81C002E0043 for ; Tue, 6 May 2008 00:15:45 -0300 (ADT) Received: by wa-out-1112.google.com with SMTP id n4so1041657wag.5 for ; Mon, 05 May 2008 20:15:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=oLqC9izIvyeEbGlZoYchEaCtN9c8uUClmAGeDBUnQ98=; b=ufGX439uNre2g+3f65T4ifLKpsXAgFc/4cGqgU341ntqtI4WaxwKnQTJ40B59w2FoKETYmizKB+RpuZKhYdzTAbmcpEgVR1KRvsRS/gdOIxWSq+WLafhagu7xIppCdHaqPxJqy2Tbm16awpxtMgoiAPdT2WcBn01XnjoolwOYA8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VOePn8ZMxoTqpDDVnYl3dm0HyNbUj0edCYj+YEUyZ2tuyrjryQ+AIg0ZFGE4LX5xHU3DhQfAYWRjD+IvfXy38SXA+bTmA1HwL8IQ0x1n86vVBg3g3vWcmecau4Im6JuBYpzyIJrFcSBkWintdPNJOVhSNecckxIy+ippxdh/n0Y= Received: by 10.114.38.2 with SMTP id l2mr211823wal.69.1210043744433; Mon, 05 May 2008 20:15:44 -0700 (PDT) Received: by 10.114.137.7 with HTTP; Mon, 5 May 2008 20:15:44 -0700 (PDT) Message-ID: Date: Mon, 5 May 2008 21:15:44 -0600 From: "Scott Marlowe" To: "Craig James" Subject: Re: RAID 10 Benchmark with different I/O schedulers (was: Performance increase with elevator=deadline) Cc: pgsql-performance@postgresql.org In-Reply-To: <481F992D.7070509@emolecules.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47FFA7FF.10801@postnewspapers.com.au> <544D07A2-EB3F-4D91-A749-0C4D5D38AB80@gmail.com> <481F992D.7070509@emolecules.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200805/65 X-Sequence-Number: 30033 On Mon, May 5, 2008 at 5:33 PM, Craig James wrote: > > (It also reinforces what the pgbench man page says: Short runs aren't > useful. Even these two-minute runs have a lot of variability. Before I > turned off AutoVacuum, the variability was more like 50% between runs.) I'd suggest a couple things for more realistic tests. Run the tests much longer, say 30 minutes to an hour. Crank up your scaling factor until your test db is larger than memory. Turn on autovacuum, maybe raising the cost / delay factors so it doesn't affect performance too negatively. And lastly tuning the bgwriter so that checkpoints are short and don't interfere too much. My guess is if you let it run for a while, you'll get a much more reliable number.