Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 4AECE64FC84 for ; Mon, 8 Dec 2008 01:58:57 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 66620-06 for ; Mon, 8 Dec 2008 01:58:53 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from QMTA10.emeryville.ca.mail.comcast.net (qmta10.emeryville.ca.mail.comcast.net [76.96.30.17]) by mail.postgresql.org (Postfix) with ESMTP id 5966064FC67 for ; Mon, 8 Dec 2008 01:58:52 -0400 (AST) Received: from OMTA08.emeryville.ca.mail.comcast.net ([76.96.30.12]) by QMTA10.emeryville.ca.mail.comcast.net with comcast id oRUx1a0030FhH24AAVyrvx; Mon, 08 Dec 2008 05:58:51 +0000 Received: from [192.168.1.101] ([71.236.132.25]) by OMTA08.emeryville.ca.mail.comcast.net with comcast id oVyp1a00A0Z28Dz8UVyqM0; Mon, 08 Dec 2008 05:58:51 +0000 Message-ID: <493CB7B4.3050504@cesmail.net> Date: Sun, 07 Dec 2008 21:59:16 -0800 From: "M. Edward (Ed) Borasky" User-Agent: Thunderbird 2.0.0.18 (X11/20081112) MIME-Version: 1.0 To: Bruce Momjian CC: Mark Mielke , Greg Smith , Mark Wong , pgsql-performance@postgresql.org Subject: Re: file system and raid performance References: <200812062134.mB6LYw915484@momjian.us> In-Reply-To: <200812062134.mB6LYw915484@momjian.us> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200812/53 X-Sequence-Number: 32089 Bruce Momjian wrote: > Mark Mielke wrote: >> Greg Smith wrote: >>> On Fri, 15 Aug 2008, Bruce Momjian wrote: >>>> 'data=3Dwriteback' is the recommended mount method for that file=20 >>>> system, though I see that is not mentioned in our official=20 >>>> documentation. >>> While writeback has good performance characteristics, I don't know=20 >>> that I'd go so far as to support making that an official=20 >>> recommendation. The integrity guarantees of that journaling mode are= =20 >>> pretty weak. Sure the database itself should be fine; it's got the=20 >>> WAL as a backup if the filesytem loses some recently written bits. =20 >>> But I'd hate to see somebody switch to that mount option on this=20 >>> project's recommendation only to find some other files got corrupted = >>> on a power loss because of writeback's limited journalling. ext3 has= =20 >>> plenty of problem already without picking its least safe mode, and=20 >>> recommending writeback would need a carefully written warning to that= =20 >>> effect. >> To contrast - not recommending it means that most people unaware will = be=20 >> running with a less effective mode, and they will base their performan= ce=20 >> measurements on this less effective mode. >> >> Perhaps the documentation should only state that "With ext3,=20 >> data=3Dwriteback is the recommended mode for PostgreSQL. PostgreSQL=20 >> performs its own journalling of data and does not require the addition= al=20 >> guarantees provided by the more conservative ext3 modes. However, if t= he=20 >> file system is used for any purpose other than PostregSQL database=20 >> storage, the data integrity requirements of these other purposes must = be=20 >> considered on their own." >> >> Personally, I use data=3Dwriteback for most purposes, but use data=3Dj= ournal=20 >> for /mail and /home. In these cases, I find even the default ext3 mode= =20 >> to be fewer guarantees than I am comfortable with. :-) >=20 > I have documented this in the WAL section of the manual, which seemed > like the most logical location. >=20 >=20 >=20 > -----------------------------------------------------------------------= - >=20 >=20 Ah, but shouldn't a PostgreSQL (or any other database, for that matter) have its own set of filesystems tuned to the application's I/O patterns? Sure, there are some people who need to have all of their eggs in one basket because they can't afford multiple baskets. For them, maybe the OS defaults are the right choice. But if you're building a database-specific server, you can optimize the I/O for that. --=20 M. Edward (Ed) Borasky, FBG, AB, PTA, PGS, MS, MNLP, NST, ACMC(P), WOM "A mathematician is a device for turning coffee into theorems." -- Alfr=C3=A9d R=C3=A9nyi via Paul Erd=C5=91s