Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id C2E1B632344 for ; Thu, 24 Jun 2010 14:03:05 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 20332-07 for ; Thu, 24 Jun 2010 17:02:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from shrek.krogh.cc (2605ds1-ynoe.0.fullrate.dk [90.184.12.24]) by mail.postgresql.org (Postfix) with ESMTP id 83B846322D5 for ; Thu, 24 Jun 2010 14:02:57 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by shrek.krogh.cc (Postfix) with ESMTP id 98EFB329FFA; Thu, 24 Jun 2010 19:02:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at shrek.krogh.cc Received: from shrek.krogh.cc ([127.0.0.1]) by localhost (shrek.krogh.cc [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UjcGIjltYtX4; Thu, 24 Jun 2010 19:02:47 +0200 (CEST) Received: from [90.184.13.151] (2605ds1-ynoe.2.fullrate.dk [90.184.13.151]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jesper@krogh.cc) by shrek.krogh.cc (Postfix) with ESMTPSA id 3E9EF329FF9; Thu, 24 Jun 2010 19:02:47 +0200 (CEST) Message-ID: <4C238FB5.2080302@krogh.cc> Date: Thu, 24 Jun 2010 19:02:45 +0200 From: Jesper Krogh User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 MIME-Version: 1.0 To: Janning Vygen CC: pgsql-performance@postgresql.org Subject: Re: Write performance References: <201006241443.33296.ml@planwerk6.de> <201006241516.05241.ml@planwerk6.de> <201006241545.31749.vygen@kicktipp.de> In-Reply-To: <201006241545.31749.vygen@kicktipp.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.8 tagged_above=-10 required=5 tests=BAYES_50=0.8 X-Spam-Level: X-Archive-Number: 201006/435 X-Sequence-Number: 39291 On 2010-06-24 15:45, Janning Vygen wrote: > On Thursday 24 June 2010 15:16:05 Janning wrote: > >> On Thursday 24 June 2010 14:53:57 Matthew Wakeling wrote: >> >>> On Thu, 24 Jun 2010, Janning wrote: >>> >>>> We have a 12 GB RAM machine with intel i7-975 and using >>>> 3 disks "Seagate Barracuda 7200.11, ST31500341AS (1.5 TB)" >>>> >>>> >>> For each drive, you will be able to read/write approximately 8kB / >>> 0.0085s, giving 941kB per second. If you have multiple processes all >>> doing random access, then you may be able to utilise both discs and get >>> double that. >>> >> So with your calculation I have a maximum of 2MB/s random access. So i >> really need to upgrade my disk configuration! >> > i was looking at tomshardware.com and the fastest disk is > > Maxtor Atlas 15K II * 8K147S0,SAS,147 GB, 16 MB Cache,15000 rpm > > with 5.5 ms random access time. > > So even if i switch to those disks i can only reach a perfomace gain of 1.5, > right? > > To achieve a better disk performance by factor of ten, i need a raid-10 setup > with 12 disks (so i have 6 raid-1 bundles). Or are there other factors with > high end disks? > Well. On the write-side, you can add in a Raid controller with Battery backed write cache to not make the writes directly hit disk. This improves the amount of writing you can do. On the read-side you can add more memory to your server so a significant part of your most active dataset is cached in memory. It depends on the actual sizes and workload what gives the most benefit for you. -- Jesper