Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id E6F0A9FBE9D for ; Wed, 30 May 2007 11:10:08 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 57073-02-2 for ; Wed, 30 May 2007 11:09:58 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from chip2og51.obsmtp.com (chip2og51.obsmtp.com [64.18.13.39]) by postgresql.org (Postfix) with SMTP id 75EA99FBE89 for ; Wed, 30 May 2007 11:10:01 -0300 (ADT) Received: from source ([63.240.6.47]) (using TLSv1) by chip2ob51.postini.com ([64.18.5.12]) with SMTP; Wed, 30 May 2007 07:09:50 PDT Received: from 172.16.1.114 by mail.Mi8.com with ESMTP (- Welcome to Mi8 Corporation www.Mi8.com (D1)); Wed, 30 May 2007 10:09:43 -0400 X-Server-Uuid: 0764DD54-627B-4C45-B37D-789FBDEDA467 Received: from MI8NYCMAIL08.Mi8.com ([172.16.1.165]) by d01smtp07.Mi8.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 30 May 2007 10:09:43 -0400 Received: from 24.23.197.133 ([24.23.197.133]) by MI8NYCMAIL08.Mi8.com ( [172.16.1.190]) via Exchange Front-End Server mi8owa.mi8.com ( [172.16.1.104]) with Microsoft Exchange Server HTTP-DAV ; Wed, 30 May 2007 14:09:03 +0000 User-Agent: Microsoft-Entourage/11.3.3.061214 Date: Wed, 30 May 2007 07:09:02 -0700 Subject: Re: Bad RAID1 read performance From: "Luke Lonergan" To: "Albert Cervera Areny" , pgsql-performance@postgresql.org Message-ID: Thread-Topic: [PERFORM] Bad RAID1 read performance Thread-Index: AceixBMJUa6mDw63Edy5oAAX8s8Cag== In-Reply-To: <200705301135.32236.albert@sedifa.com> MIME-Version: 1.0 X-OriginalArrivalTime: 30 May 2007 14:09:43.0572 (UTC) FILETIME=[2BD07540:01C7A2C4] X-WSS-ID: 6A435A2C3002124441-08-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/610 X-Sequence-Number: 25000 This sounds like a bad RAID controller - are you using a built-in hardware RAID? If so, you will likely want to use Linux software RAID instead. Also - you might want to try a 512KB readahead - I've found that is optimal for RAID1 on some RAID controllers. - Luke On 5/30/07 2:35 AM, "Albert Cervera Areny" wrote: > Hi, > after doing the "dd" tests for a server we have at work I obtained: > Read: 47.20 Mb/s > Write: 39.82 Mb/s > Some days ago read performance was around 20Mb/s due to no readahead in md0 > so I modified it using hdparm. However, it seems to me that being it a RAID1 > read speed could be much better. These are SATA disks with 3Gb of RAM so I > did 'time bash -c "dd if=/dev/zero of=bigfile bs=8k count=786432 && sync"'. > File system is ext3 (if read many times in the list that XFS is faster), but > I don't want to change the file system right now. Modifing the readahead from > the current 1024k to 2048k doesn't make any difference. Are there any other > tweaks I can make? > > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Have you searched our list archives? > > http://archives.postgresql.org >