X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id B808B9F9B76 for ; Mon, 1 May 2006 15:44:59 -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 58756-07 for ; Mon, 1 May 2006 15:44:50 -0300 (ADT) X-Greylist: delayed 00:43:50.709702 by SQLgrey- Received: from mail.aviawest.com (mail.vacationrevelation.com [70.66.0.234]) by postgresql.org (Postfix) with ESMTP id 19C079F9586 for ; Mon, 1 May 2006 15:44:49 -0300 (ADT) Received: from s0106000d5639fbfb.gv.shawcable.net ([24.69.163.91] helo=[192.168.33.226]) by mail.aviawest.com with asmtp (TLSv1:AES256-SHA:256) (Exim 4.24) id 1FadMk-0005hW-7s; Mon, 01 May 2006 11:43:26 -0700 Message-ID: <445656C8.6070308@aviawest.com> Date: Mon, 01 May 2006 11:43:20 -0700 From: Erik Myllymaki Reply-To: erik.myllymaki@aviawest.com User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Tom Arthurs CC: Mark Lewis , Vivek Khera , Pgsql performance Subject: Re: hardare config question References: <445236D5.5060509@aviawest.com> <3DFCE70E-E4BB-40AB-B27F-99E90E8159CA@khera.org> <1146246441.15712.41.camel@archimedes> <44564C3F.2040609@aviawest.com> <445651F1.9070307@jobflash.com> In-Reply-To: <445651F1.9070307@jobflash.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-"AviawestResorts"-MailScanner-Information: Please contact the ISP for more information X-"AviawestResorts"-MailScanner: Found to be clean X-"AviawestResorts"-MailScanner-SpamScore: s X-MailScanner-From: erik.myllymaki@aviawest.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/13 X-Sequence-Number: 18800 good points, thanks. Tom Arthurs wrote: > UPS does not protect against the tech behind the rack unplugging the > power cable, or an accidental power cycle from exercising the wrong > switch. :) Both are probably more common causes of failure than a total > power outage. > > Erik Myllymaki wrote: >> I have been in discussion with 3ware support and after adjusting some >> settings, the 3ware card in RAID 1 gets better performance than the >> single drive. I guess this had everything to do with the write (and >> maybe read?) cache. >> >> Of course now i am in a dangerous situation - using volatile write >> cache without a BBU. >> >> If I were to use a UPS to ensure a soft shutdown in the event of power >> loss, am I somewhat as safe as if I were to purchase a BBU for this >> RAID card? >> >> >> >> Thanks. >> >> Mark Lewis wrote: >>> It's also possible that the single SATA drive you were testing (or the >>> controller it was attached to) is lying about fsync and performing write >>> caching behind your back, whereas your new controller and drives are >>> not. >>> >>> You'll find a lot more info on the archives of this list about it, but >>> basically if your application is committing a whole lot of small >>> transactions, then it will run fast (but not safely) on a drive which >>> lies about fsync, but slower on a better disk subsystem which doesn't >>> lie about fsync. >>> >>> Try running a test with fsync=off with your new equipment and if it >>> suddenly starts running faster, then you know that's the problem. >>> You'll either have a choice of losing all of your data the next time the >>> system shuts down uncleanly but being fast, or of running slow, or of >>> fixing the applications to use chunkier transactions. >>> >>> -- Mark >>> >>> On Fri, 2006-04-28 at 13:36 -0400, Vivek Khera wrote: >>>> On Apr 28, 2006, at 11:37 AM, Erik Myllymaki wrote: >>>> >>>>> When I had this installed on a single SATA drive running from the >>>>> PE1800's on-board SATA interface, this operation took anywhere >>>>> from 65-80 seconds. >>>>> >>>>> With my new RAID card and drives, this operation took 272 seconds!? >>>> switch it to RAID10 and re-try your experiment. if that is fast, >>>> then you know your raid controller does bad RAID5. >>>> >>>> anyhow, I have in one server (our office mail server and part-time >>>> development testing box) an adaptec SATA RAID from dell. it is >>>> configured for RAID5 and does well for normal office stuff, but >>>> when we do postgres tests on it, it just is plain old awful. >>>> >>>> but I have some LSI based cards on which RAID5 is plenty fast and >>>> suitable for the DB, but those are SCSI. >>>> >>>> For what it is worth, the Dell PE1850 internal PERC4/Si card is >>>> wicked fast when hooked up with a pair of U320 SCSI drives. >>>> >>>> >>>> >>>> ---------------------------(end of >>>> broadcast)--------------------------- >>>> TIP 3: Have you checked our extensive FAQ? >>>> >>>> http://www.postgresql.org/docs/faq >>> >>> ---------------------------(end of broadcast)--------------------------- >>> TIP 9: In versions below 8.0, the planner will ignore your desire to >>> choose an index scan if your joining column's datatypes do not >>> match >> >> ---------------------------(end of broadcast)--------------------------- >> TIP 6: explain analyze is your friend