Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 781B61337BE4 for ; Wed, 4 May 2011 01:43:45 -0300 (ADT) 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 25496-01 for ; Wed, 4 May 2011 04:43:27 +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 DE1FD133798E for ; Wed, 4 May 2011 01:43:26 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by shrek.krogh.cc (Postfix) with ESMTP id 157732C7502; Wed, 4 May 2011 06:43:24 +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 T-t7MPSm8m7p; Wed, 4 May 2011 06:43:21 +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 37CA92C74FF; Wed, 4 May 2011 06:43:21 +0200 (CEST) Message-ID: <4DC0D968.3030106@krogh.cc> Date: Wed, 04 May 2011 06:43:20 +0200 From: Jesper Krogh User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: Willy-Bas Loos CC: pgsql-performance@postgresql.org Subject: Re: [PERFORMANCE] expanding to SAN: which portion best to move References: In-Reply-To: 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=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201105/38 X-Sequence-Number: 43547 On 2011-05-03 17:52, Willy-Bas Loos wrote: > Our database has gotten rather large and we are running out of disk space. > our disks are 15K rpm SAS disks in RAID 10. > > We are going to rent some space on a FibreChannel SAN. > That gives us the opportunity to separate the data and the indexes. > Now i thought it would be best to move the indexes to the SAN and leave the > data on the disks, since the disks are better at sequential I/O and the SAN > will have lots of random I/O since there are lots of users on it. > > Is that a wise thing to do? If you're satisfied with the current performance then it should be safe to keep the indices and move the data, the risk of the SAN performing worse on sequential I/O is not that high. But without testing and knowledge about the SAN then it is hard to say if what you currently have is better or worse than the SAN. The vendor may have a "way better san", but is may also be shared among 200 other hosts connected over iSCSI or FC so your share may be even worse than what you currently have. Without insight and testing is it hard to guess. I've pretty much come to the conclusion of going the DAS way every time, but it all depends on what your end looks like. -- Jesper