Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 165A46329AA for ; Fri, 11 Dec 2009 13:58:50 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 13761-06 for ; Fri, 11 Dec 2009 17:58:42 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 65B9A63289E for ; Fri, 11 Dec 2009 13:58:42 -0400 (AST) Received: from [71.94.248.88] (unknown [71.94.248.88]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 8F72E348045; Fri, 11 Dec 2009 09:58:40 -0800 (PST) Subject: Re: 8.4.1 ubuntu karmic slow createdb From: "Joshua D. Drake" Reply-To: jd@commandprompt.com To: Nikolas Everett Cc: Andres Freund , pgsql-performance@postgresql.org, Michael Clemmons In-Reply-To: References: <4427a97a0912101235x3ade510blcc00d5ce9883c6b6@mail.gmail.com> <200912102256.59868.andres@anarazel.de> <4427a97a0912101401kb29e1a5ic5424d6d0b7efe62@mail.gmail.com> <200912102309.04057.andres@anarazel.de> Content-Type: text/plain; charset="UTF-8" Organization: Command Prompt, Inc. Date: Fri, 11 Dec 2009 09:58:39 -0800 Message-ID: <1260554319.2611.10.camel@jd-desktop.unknown.charter.com> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200912/151 X-Sequence-Number: 36765 On Thu, 2009-12-10 at 20:38 -0500, Nikolas Everett wrote: > In my limited experience ext4 as presented by Karmic is not db > friendly. I had to carve my swap partition into a swap partition and > an xfs partition to get better db performance. Try fsync=off first, > but if that doesn't work then try a mini xfs. Do not turn fsync off. That is bad advice. I would not suggest ext4 at this point for database operations. Use ext3. It is backward compatible. Joshua D. Drake -- PostgreSQL.org Major Contributor Command Prompt, Inc: http://www.commandprompt.com/ - 503.667.4564 Consulting, Training, Support, Custom Development, Engineering If the world pushes look it in the eye and GRR. Then push back harder. - Salamander