X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id A4693D1DB6B for ; Thu, 15 Jan 2004 21:18:04 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 65557-07 for ; Thu, 15 Jan 2004 17:17:35 -0400 (AST) Received: from sydpb.low.st (CPE-138-217-48-211.vic.bigpond.net.au [138.217.48.211]) by svr1.postgresql.org (Postfix) with ESMTP id 78B30D1DA98 for ; Thu, 15 Jan 2004 17:17:33 -0400 (AST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by sydpb.low.st (Postfix) with ESMTP id D02F475106E for ; Fri, 16 Jan 2004 08:17:32 +1100 (EST) Mime-Version: 1.0 (Apple Message framework v609) In-Reply-To: <22333.1074181481@sss.pgh.pa.us> References: <22333.1074181481@sss.pgh.pa.us> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <3B34D6CC-47A0-11D8-BC83-00039398E788@aliencamel.com> Content-Transfer-Encoding: 7bit From: Syd <569170@aliencamel.com> Subject: Re: insert speed - Mac OSX vs Redhat Date: Fri, 16 Jan 2004 08:17:32 +1100 To: pgsql-performance@postgresql.org X-Mailer: Apple Mail (2.609) X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/159 X-Sequence-Number: 5334 On 16/01/2004, at 2:44 AM, Tom Lane wrote: ... > As noted elsewhere, it's highly likely that this has nothing to do with > the OS, and everything to do with write caching in the disks being > used. > > I assume you are benchmarking small individual transactions (one insert > per xact). In such scenarios it's essentially impossible to commit > more > than one transaction per revolution of the WAL disk, because you have > to > write the same WAL disk page repeatedly and wait for it to get down to > the platter. When you get results that are markedly in excess of the > disk RPM figure, it's proof positive that the disk is lying about write > complete (or that you don't have fsync on). > Tom, thanks for this explanation - we'll check this out straight away, but it would explain a lot.