Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 5EEE82E007E for ; Wed, 2 Apr 2008 17:46:51 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 83188-10 for ; Wed, 2 Apr 2008 17:46:40 -0300 (ADT) X-Greylist: delayed 00:22:46.248231 by SQLgrey-1.7.5 Received: from heaven.kostyrka.org (h1634.serverkompetenz.net [81.169.154.44]) by developer.postgresql.org (Postfix) with ESMTP id 303262E0050 for ; Wed, 2 Apr 2008 17:46:39 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by heaven.kostyrka.org (Postfix) with ESMTP id 0B4604FCD1; Wed, 2 Apr 2008 22:23:48 +0200 (CEST) Received: from heaven.kostyrka.org ([127.0.0.1]) by localhost (heaven.kostyrka.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26560-08; Wed, 2 Apr 2008 22:23:47 +0200 (CEST) Received: from [192.168.2.33] (unknown [85.127.156.187]) by heaven.kostyrka.org (Postfix) with ESMTP id 7257D4FB3A; Wed, 2 Apr 2008 22:23:47 +0200 (CEST) Subject: Re: POSIX file updates From: Andreas Kostyrka To: James Mansion Cc: Greg Smith , pgsql-performance@postgresql.org In-Reply-To: <47F3DA25.7050705@mansionfamily.plus.com> References: <47F1413B.40109@mansionfamily.plus.com> <47F3DA25.7050705@mansionfamily.plus.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-o/LFjS0GnvKwj0b2AFTT" Date: Wed, 02 Apr 2008 22:24:12 +0200 Message-Id: <1207167852.8299.179.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.497 tagged_above=0 required=5 tests=AWL=-1.322, MIME_QP_LONG_LINE=1.819 X-Spam-Level: X-Archive-Number: 200804/22 X-Sequence-Number: 29515 --=-o/LFjS0GnvKwj0b2AFTT Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Am Mittwoch, den 02.04.2008, 20:10 +0100 schrieb James Mansion: > It strikes me as odd that fsync_writethrough isn't the most preferred=20 > option where > it is implemented. The postgres approach of *requiring* that there be no=20 > cache > below the OS is problematic, especially since the battery backup on inter= nal > array controllers is hardly the handiest solution when you find the mobo=20 > has died. Well, that might sound brutal, but I'm having today a brute day. There are some items here. 1.) PostgreSQL relies on filesystem semantics. Which might be better or worse then the raw devices other RDBMS use as an interface, but in the end it is just an interface. How well that works out depends strongly on your hardware selection, your OS selection and so on. DB tuning is an scientific art form ;) Worse the fact that raw devices work better on hardware X/os Y than say filesystems is only of limited interest, only if you happen to have already an investement in X or Y. In the end the questions are is the performance good enough, is the data safety good enough, and at which cost (in money, work, ...). 2.) data safety requirements vary strongly. In many (if not most) cases, the recovery of the data on a failed hardware is not critical. Hint: being down till somebody figures out what failed, if the rest of the system is still stable, and so on are not acceptable at all. Meaning the moment that the database server has any problem, one of the hot standbys takes over. The thing you worry about is if all data has made it to the replication servers, not if some data might get lost in the hardware cache of a controller. (Actually, talk to your local computer forensics guru, there are a number of way to keep the current to electronics while moving them.) 3.) a controller cache is an issue if you have a filesystem in your data path or not. If you do raw io, and the stupid hardware do cache writes, well it's about as stupid as it would be if it would have cached filesystem writes. Andreas > And especially when the inability to flush caches on modern SATA and SAS > drives would appear to be more a failing in some operating systems than i= n > the drives themselves.. >=20 > The links I've been accumulating into my bibliography include: >=20 > http://www.h2database.com/html/advanced.html#transaction_isolation > http://lwn.net/Articles/270891/ > http://article.gmane.org/gmane.linux.kernel/646040 > http://lists.apple.com/archives/darwin-dev/2005/Feb/msg00072.html > http://brad.livejournal.com/2116715.html >=20 > And your handy document on wal tuning, of course. >=20 > James >=20 >=20 --=-o/LFjS0GnvKwj0b2AFTT Content-Type: application/pgp-signature; name=signature.asc Content-Description: Dies ist ein digital signierter Nachrichtenteil -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBH8+tsHJdudm4KnO0RAh5uAKC6u6OuKyr0y4wIMQmDuGTym0gDqACg3R/Q 0Ac+DQBuEP/eImpiu28gRRk= =jEWx -----END PGP SIGNATURE----- --=-o/LFjS0GnvKwj0b2AFTT--