Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 7713C65018D for ; Mon, 21 Jul 2008 05:53:58 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 32387-07 for ; Mon, 21 Jul 2008 05:53:39 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by postgresql.org (Postfix) with ESMTP id 5B90D65018E for ; Mon, 21 Jul 2008 05:53:32 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id c7so385372nfi.23 for ; Mon, 21 Jul 2008 01:53:30 -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 :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=PvGAkfy6zuONxuPfqt4z1eEQz19AX8n/JihikfIRLRg=; b=UJxaazvGnGOeaasn/e3J3Tu/g+NmWUbj4CnwOjcFNo33yekx8g1Rhi15oBWnA6+sYc dyQW6joPeS4uAikHGTu12k4nThqNPLEUOPTIW2fXYfgElVWjuwMB35K9yXiCpPyl4cYI A2NXyXH+phiezQybqUqnipMe1YtCYckjLR1Zc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=b1Vq1BFDRGv2fI/wXII1pZ/4D+SSIBYQaa4IuVpvISODY0Y7DWrCuaCdIvFTkYJwoH 5Rt8PjzwvYBb2J2jqHCNXftT+xdnzOSPwDLmW53ZXuQcafqd+qNJ92xjaPnCTOViZFZ8 tSZjrMKsAuamy/tKkEbuIrbzqc22P4t9qutD4= Received: by 10.210.42.20 with SMTP id p20mr3050796ebp.37.1216630410329; Mon, 21 Jul 2008 01:53:30 -0700 (PDT) Received: from ?192.168.1.100? ( [81.71.88.48]) by mx.google.com with ESMTPS id g12sm1954051nfb.28.2008.07.21.01.53.28 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 21 Jul 2008 01:53:29 -0700 (PDT) Message-ID: <48844E7A.9050208@gmail.com> Date: Mon, 21 Jul 2008 10:53:14 +0200 From: Stephane Bailliez User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Luke Lonergan CC: pgsql-performance@postgresql.org Subject: Re: Performance on Sun Fire X4150 x64 (dd, bonnie++, pgbench) References: <014F2941B0A1EA47BD61D21526B806E9035094A5@MI8NYCMAIL08.Mi8.com> In-Reply-To: <014F2941B0A1EA47BD61D21526B806E9035094A5@MI8NYCMAIL08.Mi8.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 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200807/169 X-Sequence-Number: 30769 Luke Lonergan wrote: > > pgbench is unrelated to the workload you are concerned with if ETL/ELT > and decision support / data warehousing queries are your target. > > Also - placing the xlog on dedicated disks is mostly irrelevant to > data warehouse / decision support work or ELT. If you need to > maximize loading speed while concurrent queries are running, it may be > necessary, but I think you'll be limited in load speed by CPU related > to data formatting anyway. > Indeed. pgbench was mostly done as 'informative' and not really relevant to the future workload of this db. (given the queries it's doing not sure it's relevant for anything but connections speed, interesting for me to get reference for tx like however). I was more interested in the raw disk performance. > > The primary performance driver for ELT / DW is sequential transfer > rate, thus the dd test at 2X memory. With six data disks of this > type, you should expect a maximum of around 6 x 80 = 480 MB/s. With > RAID10, depending on the raid adapter, you may need to have two or > more IO streams to use all platters, otherwise your max speed for one > query would be 1/2 that, or 240 MB/s. > ok, which seems to be in par with what I'm getting. (the 240 that is) > > I'd suggest RAID5, or even better, configure all eight disks as a JBOD > in the RAID adapter and run ZFS RAIDZ. You would then expect to get > about 7 x 80 = 560 MB/s on your single query. > Do you have a particular controller and disk hardware configuration in mind when you're suggesting RAID5 ? My understanding was it was more difficult to find the right hardware to get performance on RAID5 compared to RAID10. > > That said, your single cpu on one query will only be able to scan that > data at about 300 MB/s (try running a SELECT COUNT(*) against a table > that is 2X memory size). > Note quite 2x memory size, but ~26GB (accounts with scaling factor 2000): $ time psql -c "select count(*) from accounts" pgbench count ----------- 200000000 (1 row) real 1m52.050s user 0m0.020s sys 0m0.020s NB: For the sake of completness, reran the pgbench by taking average of 10 runs for each scaling factor (same configuration as per initial mail, columns are scaling factor, db size, average tps) 1 20 23451 100 1565 21898 200 3127 20474 300 4688 20003 400 6249 20637 500 7810 16434 600 9372 15114 700 11000 14595 800 12000 16090 900 14000 14894 1000 15000 3071 1200 18000 3382 1400 21000 1888 1600 24000 1515 1800 27000 1435 2000 30000 1354 -- stephane