X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id ECFE29FA380 for ; Wed, 13 Sep 2006 07:16:51 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 70269-03 for ; Wed, 13 Sep 2006 10:16:43 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.enternet.hu (smtp.enternet.hu [62.112.192.21]) by postgresql.org (Postfix) with ESMTP id E6C909FA274 for ; Wed, 13 Sep 2006 07:16:42 -0300 (ADT) Received: from [83.216.38.33] (helo=[172.16.0.43]) by smtp.enternet.hu with esmtpa (Exim 4) id 1GNRnJ-0001Nd-Rx for pgsql-performance@postgresql.org; Wed, 13 Sep 2006 12:16:37 +0200 Message-ID: <4507DA84.2090509@designaproduct.biz> Date: Wed, 13 Sep 2006 12:16:36 +0200 From: Laszlo Nagy User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: Poor performance on seq scan 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=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200609/112 X-Sequence-Number: 20798 > I have had extremely bad performance historically with onboard SATA chipsets > on Linux. The one exception has been with the Intel based chipsets (not the > CPU, the I/O chipset). > This board has Intel chipset. I cannot remember the exact type but it was not in the low end category. dmesg says: kernel: ad4: 152626MB at ata2-master SATA150 kernel: ad4: 152627MB at ata3-master SATA150 > It is very likely that you are having problems with the driver for the > chipset. > > Are you running RAID1 in hardware? If so, turn it off and see what the > performance is. The onboard hardware RAID is worse than useless, it > actually slows the I/O down. > I'm using software raid, namely gmirror: GEOM_MIRROR: Device gm0 created (id=2574033628). GEOM_MIRROR: Device gm0: provider ad4 detected. GEOM_MIRROR: Device gm0: provider ad6 detected. GEOM_MIRROR: Device gm0: provider ad4 activated. GEOM_MIRROR: Device gm0: provider ad6 activated. #gmirror list Geom name: gm0 State: COMPLETE Components: 2 Balance: round-robin Slice: 4096 Flags: NONE GenID: 0 SyncID: 1 ID: 2574033628 Providers: 1. Name: mirror/gm0 Mediasize: 160040803328 (149G) Sectorsize: 512 Mode: r5w5e6 Consumers: 1. Name: ad4 Mediasize: 160040803840 (149G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: DIRTY GenID: 0 SyncID: 1 ID: 1153981856 2. Name: ad6 Mediasize: 160041885696 (149G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: DIRTY GenID: 0 SyncID: 1 ID: 3520427571 I tried to do: #sysctl vfs.read_max=32 vfs.read_max: 6 -> 32 but I could not reach better disk read performance. Thank you for your suggestions. Looks like I need to buy SCSI disks. Regards, Laszlo