X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 271D8D1E93F; Thu, 18 Mar 2004 20:20:41 +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 06823-02; Thu, 18 Mar 2004 16:20:41 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id D65BDD1E2AA; Thu, 18 Mar 2004 16:20:31 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i2IKKORt011817; Thu, 18 Mar 2004 15:20:24 -0500 (EST) To: Kurt Roeckx Cc: Bruce Momjian , Mark Kirkwood , pgsql-performance@postgresql.org, PostgreSQL-development Subject: Re: [HACKERS] fsync method checking In-reply-to: <20040318200359.GA8330@ping.be> References: <20040318191840.GA7088@ping.be> <200403181922.i2IJMAd16258@candle.pha.pa.us> <20040318200359.GA8330@ping.be> Comments: In-reply-to Kurt Roeckx message dated "Thu, 18 Mar 2004 21:03:59 +0100" Date: Thu, 18 Mar 2004 15:20:23 -0500 Message-ID: <11816.1079641223@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/266 X-Sequence-Number: 6122 Kurt Roeckx writes: > I have no idea what the access pattern is for normal WAL > operations or how many times it gets synched. Does it only do > f(data)sync() at commit time, or for every block it writes? If we are using fsync/fdatasync, we issue those at commit time or when completing a WAL segment. If we are using the open flags, then of course there's no separate sync call. My previous point about checking different fsync spacings corresponds to different assumptions about average transaction size. I think a useful tool for determining wal_sync_method has got to be able to reflect that range of possibilities. regards, tom lane