Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 32FC71337C01 for ; Wed, 13 Oct 2010 09:12:37 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 72055-01-6 for ; Wed, 13 Oct 2010 12:12:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by mail.postgresql.org (Postfix) with ESMTP id 1D0CB1337C1E for ; Wed, 13 Oct 2010 09:12:28 -0300 (ADT) Received: from [192.168.1.7] (static-71-179-240-8.bltmmd.fios.verizon.net [71.179.240.8]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0Lvx1t-1ObxRg2HaH-018Gom; Wed, 13 Oct 2010 14:12:22 +0200 Message-ID: <4CB5A223.4070609@2ndquadrant.com> Date: Wed, 13 Oct 2010 08:12:19 -0400 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Dan Harris CC: pgsql-performance Subject: Re: Slow count(*) again... References: <201010091626.18636.neil.whelchel@gmail.com> <4CB11CC7.8070300@vmsinfo.com> <4CB167CA.9070109@postnewspapers.com.au> <4CB1F46E.80205@vmsinfo.com> <90E30938-1E5E-4DCA-A1FB-AEECEB76A70D@richrelevance.com> <4CB48127.6090200@drivefaster.net> <8BE535FE-F9DB-4CBC-A932-EB4F07905698@richrelevance.com> <4CB495A7.6010700@drivefaster.net> In-Reply-To: <4CB495A7.6010700@drivefaster.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:caHiyLMZFfTHi4wQT/WvD0+Z0lpsi+Bf23PS2tJNHL7 CXCQaGOe8X8UUI/hr50N/LxBRRuUj8wgFR19sZCr9LxNsKysXa 9zBKUT3nyvA81HaKAnr27JpSzi2SKSMyvsCuBivwL1tL7O/Un+ OTYzBCnIgsKbBZAzrU5KME83tMJCsARpafUnu5VU26ZWDUQ4tD 6rmLWjZ9GB0BeLmMcmbXhHxxn0mSaJ7evspOHlolBg= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201010/206 X-Sequence-Number: 40625 Dan Harris wrote: > I'm not sure how to figure out what version of XFS we're on.. but it's > Linux kernel 2.6.24-24 x86_64 on Ubuntu Server 8.04.3. Postgres > version 8.3 There's the kernel side support that matches your kernel, as well as the xfsprogs package. The latter is where a lot of distributions haven't kept up with upstream changes, and where I suspect the defragmenter bug you ran into is located at. Hardy ships with 2.9.4-2: http://packages.ubuntu.com/hardy/xfsprogs The work incorporating a more stable XFS into RHEL started with xfsprogs 3.0.1-6 going into Fedora 11, and 3.1.X would represent a current release. So your Ubuntu kernel is two major improvement releases behind, 3.0 and 3.1 were the upgrades to xfsprogs where things really got going again making that code modern and solid. Ubuntu Lucid switched to 3.1.0, RHEL6 will probably ship 3.1.0 too. -- Greg Smith, 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD PostgreSQL Training, Services and Support www.2ndQuadrant.us Author, "PostgreSQL 9.0 High Performance" Pre-ordering at: https://www.packtpub.com/postgresql-9-0-high-performance/book