X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8E0CEDB00C for ; Tue, 22 Nov 2005 08:53:52 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 26433-01 for ; Tue, 22 Nov 2005 12:53:54 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtpauth07.mail.atl.earthlink.net (smtpauth07.mail.atl.earthlink.net [209.86.89.67]) by svr1.postgresql.org (Postfix) with ESMTP id 63538DB00A for ; Tue, 22 Nov 2005 08:53:49 -0400 (AST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=pMhVfQxkvuym0UWtg42XkhhcOCtc6pqsdfgse4EnLbEE3ZkKf+1oCg1SA4Ob/fb2; h=Received:Message-Id:X-Mailer:Date:To:From:Subject:In-Reply-To:References:Mime-Version:Content-Type:X-ELNK-Trace:X-Originating-IP; Received: from [71.243.20.20] (helo=ron-6d52adff2a6.earthlink.net) by smtpauth07.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1EeXeh-0005Ec-Ka; Tue, 22 Nov 2005 07:53:51 -0500 Message-Id: <6.2.5.6.0.20051122074454.040fae60@earthlink.net> X-Mailer: QUALCOMM Windows Eudora Version 6.2.5.6 Date: Tue, 22 Nov 2005 07:53:46 -0500 To: Guillaume Smet , pgsql-performance@postgresql.org From: Ron Subject: Re: weird performances problem In-Reply-To: <4382EB58.3020804@openwide.fr> References: <437CC21D.8070402@openwide.fr> <4382EB58.3020804@openwide.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-ELNK-Trace: acd68a6551193be5d780f4a490ca69563f9fea00a6dd62bca2db04e142f8bedb9902a761ab5391f8350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 71.243.20.20 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.359 required=5 tests=[AWL=-0.120, DNS_FROM_RFC_ABUSE=0.479] X-Spam-Score: 0.359 X-Spam-Level: X-Archive-Number: 200511/436 X-Sequence-Number: 15693 If I understand your HW config correctly, all of the pg stuff is on the same RAID 10 set? If so, give WAL its own dedicated RAID 10 set. This looks like the old problem of everything stalling while WAL is being committed to HD. This concept works for other tables as well. If you have a tables that both want services at the same time, disk arm contention will drag performance into the floor when they are on the same HW set. Profile your HD access and put tables that want to be accessed at the same time on different HD sets. Even if you have to buy more HW to do it. Ron At 04:56 AM 11/22/2005, Guillaume Smet wrote: >Qingqing Zhou wrote: >>Someone is doing a massive *write* at this time, which makes your >>query *read* quite slow. Can you find out which process is doing write? > >Indexes should be in memory so I don't expect a massive write to >slow down the select queries. sdb is the RAID10 array dedicated to >our data so the postgresql process is the only one to write on it. >I'll check which write queries are running because there should >really be a few updates/inserts on our db during the day. > >On a four days log analysis, I have the following: >SELECT 403,964 >INSERT 574 >UPDATE 393 >DELETE 26 >So it's not really normal to have a massive write during the day. > >Thanks for your help > >-- >Guillaume > >---------------------------(end of broadcast)--------------------------- >TIP 2: Don't 'kill -9' the postmaster