Received: from maia.hub.org (maia-1.hub.org [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 1A55F63229F for ; Mon, 10 May 2010 17:22:37 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 35142-03 for ; Mon, 10 May 2010 20:22:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-fx0-f46.google.com (mail-fx0-f46.google.com [209.85.161.46]) by mail.postgresql.org (Postfix) with ESMTP id 3225F632D40 for ; Mon, 10 May 2010 17:22:29 -0300 (ADT) Received: by fxm7 with SMTP id 7so536252fxm.19 for ; Mon, 10 May 2010 13:22:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=bBTbmzjkofZt2r6RNZN9N3vEgFI/YxuO5qawGOEQC74=; b=MKAfiwiq/vjfHP4SqYUABFgTyG7R5hvm+AfQBFvyIo+iUqSoDsHsDbfG2KKrLpWTOj O4deDk+gw+ef0ejKdjC9ssrsctUju5JUxNjWRr3TF5UIrdWY0a0gg2y0KMsbFs23MtgV tWaMO3G31WBhbvZEjseeflj6Phu6aKp4wFuhM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=FhhPI3KibKdRym2Xmb65ZI1q0WvV8JgIM44h7vreGQ+SAWorIXK9ydNeaTymEN49Mr 21q2OZJ0wOmNTmcRfPJ0bHsym+7v7ENi5qq0kYssqRPsMTli5tXrAUm7ePeKrP5TNpR1 e7xIH71cHIMj3L06h9IG1zfmZVd+/Yk7hH2eQ= Received: by 10.239.191.133 with SMTP id b5mr171305hbi.173.1273522945243; Mon, 10 May 2010 13:22:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.239.183.145 with HTTP; Mon, 10 May 2010 13:22:05 -0700 (PDT) In-Reply-To: References: <4BE3D3930200002500031382@gw.wicourts.gov> <4BE425F7.30804@dunslane.net> <4BE3E205020000250003138F@gw.wicourts.gov> From: =?ISO-8859-1?Q?C=E9dric_Villemain?= Date: Mon, 10 May 2010 22:22:05 +0200 Message-ID: Subject: Re: no universally correct setting for fsync To: Bernd Helmle Cc: Kevin Grittner , Andrew Dunstan , pgsql-hackers@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201005/480 X-Sequence-Number: 162143 2010/5/8 Bernd Helmle : > > > --On 7. Mai 2010 09:48:53 -0500 Kevin Grittner > wrote: > >> I think it goes beyond "tweaking" -- I think we should have a bald >> statement like "don't turn this off unless you're OK with losing the >> entire contents of the database cluster." =A0A brief listing of some >> cases where that is OK might be illustrative. >> > > +1 > >> I never meant to suggest any statement in that section is factually >> wrong; it's just all too rosy, leading people to believe it's no big >> deal to turn it off. > > I think one mistake in this paragraph is the passing mention of > "performance". I've seen installations in the past with fsync=3Doff only > because the admin was pressured to get instantly "more speed" out of the > database (think of "fast_mode=3Don"). In my opinion, phrases like "perfor= mance > penalty" are misleading, if you need that setting in 99% of all use cases > for reliable operation. > > I've recently even started to wonder if the performance gain with fsync= =3Doff > is still that large on modern hardware. While testing large migration > procedures to a new version some time ago (on an admitedly fast storage) = i > forgot here and then to turn it off, without a significant degradation in > performance. On a recent pg_restore -j 32, with perc 6i with BBU, RAID10 8 hd, results were not so bas with fsync turn on. (XFS with nobarrier su and sw) -- deactivate fsync time pg_restore -U postgres -d foodb -j 32 foo.psql real 170m0.527s user 43m12.914s sys 1m56.499s -- activate fsync time pg_restore -U postgres -d foodb -j 32 foo.psql real 177m0.121s user 42m54.581s sys 2m0.452s > > > -- > Thanks > > =A0 =A0 =A0 =A0Bernd > > -- > Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-hackers > --=20 C=E9dric Villemain