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 597D39FA5C3 for ; Fri, 16 Jun 2006 08:29:03 -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 12328-10 for ; Fri, 16 Jun 2006 08:28:52 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from stark.xeocode.com (stark.xeocode.com [216.58.44.227]) by postgresql.org (Postfix) with ESMTP id 7EFA39FA42B for ; Fri, 16 Jun 2006 08:28:52 -0300 (ADT) Received: from localhost ([127.0.0.1] helo=stark.xeocode.com) by stark.xeocode.com with smtp (Exim 3.36 #1 (Debian)) id 1FrCVA-0001yi-00; Fri, 16 Jun 2006 07:28:36 -0400 To: "Alex Turner" Cc: "Mark Lewis" , "Tom Lane" , "Brian Hurt" , "Tim Allen" , pgsql-performance@postgresql.org Subject: Re: SAN performance mystery References: <4491D61B.9040507@proximity.com.au> <4491D8DC.4070906@janestcapital.com> <1751.1150410284@sss.pgh.pa.us> <1150413917.31200.109.camel@archimedes> <33c6269f0606151658h731915d3k405b4da67c49228a@mail.gmail.com> In-Reply-To: <33c6269f0606151658h731915d3k405b4da67c49228a@mail.gmail.com> From: Greg Stark Organization: The Emacs Conspiracy; member since 1992 Date: 16 Jun 2006 07:28:35 -0400 Message-ID: <87psh98hlo.fsf@stark.xeocode.com> Lines: 23 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/346 X-Sequence-Number: 19703 "Alex Turner" writes: > Given the fact that most SATA drives have only an 8MB cache, and your RAID > controller should have at least 64MB, I would argue that the system with the > RAID controller should always be faster. If it's not, you're getting > short-changed somewhere, which is typical on linux, because the drivers just > aren't there for a great many controllers that are out there. Alternatively Linux is using the 1-4 gigabytes of cache available to it effectively enough that the 64 megabytes of mostly duplicated cache just isn't especially helpful... I never understood why disk caches on the order of megabytes are exciting. Why should disk manufacturers be any better about cache management than OS authors? In the case of RAID 5 this could actually work against you since the RAID controller can _only_ use its cache to find parity blocks when writing. Software raid can use all of the OS's disk cache to that end. -- greg