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 245A7DA4C2 for ; Thu, 10 Nov 2005 10:17:00 -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 18095-06 for ; Thu, 10 Nov 2005 14:16:56 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by svr1.postgresql.org (Postfix) with ESMTP id B8D1DD9CDC for ; Thu, 10 Nov 2005 10:16:58 -0400 (AST) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id E1A7640127E; Thu, 10 Nov 2005 14:15:14 +0000 (GMT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 2402515ED9; Thu, 10 Nov 2005 14:14:35 +0000 (GMT) Received: from mainbox.archonet.com ([127.0.0.1]) by localhost (mainbox [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30593-08; Thu, 10 Nov 2005 14:14:31 +0000 (GMT) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 20FBF15ED5; Thu, 10 Nov 2005 14:14:31 +0000 (GMT) Message-ID: <437355C6.4030604@archonet.com> Date: Thu, 10 Nov 2005 14:14:30 +0000 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Steinar H. Gunderson" Cc: pgsql-performance@postgresql.org Subject: Re: WAL sync behaviour References: <20051110133241.GA4031@uio.no> In-Reply-To: <20051110133241.GA4031@uio.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.031 required=5 tests=[AWL=0.031] X-Spam-Score: 0.031 X-Spam-Level: X-Archive-Number: 200511/174 X-Sequence-Number: 15431 Steinar H. Gunderson wrote: > Hi, > > We're having problems with our PostgreSQL server using forever for simple > queries, even when there's little load -- or rather, the transactions seem > to take forever to commit. We're using 8.1 (yay!) on a single Opteron, with > WAL on the system two-disk (software) RAID-1, separate from the database > four-disk RAID-10. All drives are 10000rpm SCSI disks, with write cache > turned off; we value our data :-) We're running Linux 2.6.13.4, with 64-bit > kernel but 32-bit userspace. You're beyond my area of expertise, but I do know that someone's going to ask what filesystem this is (ext2/xfs/etc). And probably to see the strace too. Hmm - the only things I can think to check: Do vmstat/iostat show any unusual activity? Are your system logs on these disks too? Could it be the journalling on the fs clashing with the WAL? -- Richard Huxton Archonet Ltd