Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 4320A9FB267 for ; Tue, 16 Jan 2007 15:50:46 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 53162-09 for ; Tue, 16 Jan 2007 15:50:21 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from wolff.to (wolff.to [66.93.197.194]) by postgresql.org (Postfix) with SMTP id 06ADB9FB208 for ; Tue, 16 Jan 2007 15:50:20 -0400 (AST) Received: (qmail 20525 invoked by uid 500); 16 Jan 2007 19:50:17 -0000 Date: Tue, 16 Jan 2007 13:50:17 -0600 From: Bruno Wolff III To: Federico Cc: pgsql-admin@postgresql.org Subject: Re: PostgreSQL data dir on linux raid software Message-ID: <20070116195017.GA10658@wolff.to> Mail-Followup-To: Bruno Wolff III , Federico , pgsql-admin@postgresql.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/129 X-Sequence-Number: 24285 On Mon, Jan 15, 2007 at 18:24:19 +0100, Federico wrote: > Hi, > after some test i got that my performance problem described in the > message http://archives.postgresql.org/pgsql-admin/2007-01/msg00116.php > is issued by the linux software raid 1 on my discs (yes the silicon > image controller has only fake raid hardware). > > I found this old message that seems the same problem like mine. > > http://archives.postgresql.org/pgsql-admin/2003-12/msg00219.php > > Because the message is quite old I'm wondering if there're some hdparm > settings to enable on the disks that compose the array to have better > performances in fsync. > > For now I cannot mount an expensive scsi raid hardware so i need to > have raid software. Are you using Linux's software raid (md devices) or dmraid using the controller to do some of the work? If you aren't using the native linux software raid, you might want to try it instead. You will need to rebuild the array to do this, so this might not be an easy thing to do. The bios will also need to support disabling the raid and exposing the individual disks (but that is a fairly normal thing for bios's). If linux can see the individual disks, then you should be able to use hdparm to tweak their settings.