X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 6B29A9FA5D2 for ; Thu, 15 Jun 2006 19:15:46 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 55861-07 for ; Thu, 15 Jun 2006 19:15:40 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by postgresql.org (Postfix) with ESMTP id D51939FA160 for ; Thu, 15 Jun 2006 19:15:40 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id a2so455972ugf for ; Thu, 15 Jun 2006 15:15:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=PE2jXZ3KCtcTvhJh0nz7qqPLSSy/Bj2Sr5BYRURaiRDPg6JGqExBeYWfipwYcJz8oXVagTk+LOgV8bCfLqNL7qi+rvRBjlHDphNdBiv0iGwkRckSZ1GFJxwo9WUBPnjfqlTTqUXz5a5D+oo960+Wyi9rCopd+w+JV4m91IKs6/c= Received: by 10.66.250.17 with SMTP id x17mr2144827ugh; Thu, 15 Jun 2006 15:15:38 -0700 (PDT) Received: by 10.66.216.11 with HTTP; Thu, 15 Jun 2006 15:15:38 -0700 (PDT) Message-ID: Date: Thu, 15 Jun 2006 18:15:38 -0400 From: "John Vincent" Reply-To: pgsql-performance@lusis.org To: "Tim Allen" Subject: Re: SAN performance mystery Cc: pgsql-performance@postgresql.org In-Reply-To: <4491D61B.9040507@proximity.com.au> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_12626_21606881.1150409738620" References: <4491D61B.9040507@proximity.com.au> X-Google-Sender-Auth: f75d7d92ae6bfed7 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/330 X-Sequence-Number: 19687 ------=_Part_12626_21606881.1150409738620 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 6/15/06, Tim Allen wrote: > > > Is that expected performance, anyone? It doesn't sound right to me. Does > anyone have any clues about what might be going on? Buggy kernel > drivers? Buggy kernel, come to think of it? Does a SAN just not provide > adequate performance for a large database? > > I'd be grateful for any clues anyone can offer, > > Tim Tim, Here are the areas I would look at first if we're considering hardware to be the problem: HBA and driver: Since this is a Intel/Linux system, the HBA is PROBABLY a qlogic. I would need to know the SAN model to see what the backend of the SAN is itself. EMC has some FC-attach models that actually have SATA disks underneath. You also might want to look at the cache size of the controllers on the SAN. - Something also to note is that EMC provides a add-on called PowerPath for load balancing multiple HBAs. If they don't have this, it might be worth investigating. - As with anything, disk layout is important. With the lower end IBM SAN (DS4000) you actually have to operate on physical spindle level. On our 4300, when I create a LUN, I select the exact disks I want and which of the two controllers are the preferred path. On our DS6800, I just ask for storage. I THINK all the EMC models are the "ask for storage" type of scenario. However with the 6800, you select your storage across extent pools. Have they done any benchmarking of the SAN outside of postgres? Before we settle on a new LUN configuration, we always do the dd,umount,mount,dd routine. It's not a perfect test for databases but it will help you catch GROSS performance issues. SAN itself: - Could the SAN be oversubscribed? How many hosts and LUNs total do they have and what are the queue_depths for those hosts? With the qlogic card, you can set the queue depth in the BIOS of the adapter when the system is booting up. CTRL-Q I think. If the system has enough local DASD to relocate the database internally, it might be a valid test to do so and see if you can isolate the problem to the SAN itself. PG itself: If you think it's a pgsql configuration, I'm guessing you already configured postgresql.conf to match thiers (or at least a fraction of thiers since the memory isn't the same?). What about loading a "from-scratch" config file and restarting the tuning process? Just a dump of my thought process from someone who's been spending too much time tuning his SAN and postgres lately. ------=_Part_12626_21606881.1150409738620 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 6/15/06, Tim Allen <tim@proximity.com.au> wrote:
<snipped>
Is that expected performance, anyone? It doesn't sound right to me. Does
anyone have any clues about what might be going on? Buggy kernel
drivers? Buggy kernel, come to think of it? Does a SAN just not provide
adequate performance for a large database?

I'd be grateful for any clues anyone can offer,

Tim

Tim,

Here are the areas I would look at first if we're considering hardware to be the problem:

HBA and driver:
   Since this is a Intel/Linux system, the HBA is PROBABLY a qlogic. I would need to know the SAN model to see what the backend of the SAN is itself. EMC has some FC-attach models that actually have SATA disks underneath. You also might want to look at the cache size of the controllers on the SAN.
   - Something also to note is that EMC provides a add-on called PowerPath for load balancing multiple HBAs. If they don't have this, it might be worth investigating.
  - As with anything, disk layout is important. With the lower end IBM SAN (DS4000) you actually have to operate on physical spindle level. On our 4300, when I create a LUN, I select the exact disks I want and which of the two controllers are the preferred path. On our DS6800, I just ask for storage. I THINK all the EMC models are the "ask for storage" type of scenario. However with the 6800, you select your storage across extent pools.


Have they done any benchmarking of the SAN outside of postgres? Before we settle on a new LUN configuration, we always do the dd,umount,mount,dd routine. It's not a perfect test for databases but it will help you catch GROSS performance issues.

SAN itself:
  - Could the SAN be oversubscribed? How many hosts and LUNs total do they have and what are the queue_depths for those hosts? With the qlogic card, you can set the queue depth in the BIOS of the adapter when the system is booting up. CTRL-Q I think.  If the system has enough local DASD to relocate the database internally, it might be a valid test to do so and see if you can isolate the problem to the SAN itself.

PG itself:
 
 If you think it's a pgsql configuration, I'm guessing you already configured postgresql.conf to match thiers (or at least a fraction of thiers since the memory isn't the same?). What about loading a "from-scratch" config file and restarting the tuning process?


Just a dump of my thought process from someone who's been spending too much time tuning his SAN and postgres lately.
------=_Part_12626_21606881.1150409738620--