Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 9171D1337A5D for ; Tue, 12 Apr 2011 05:57:15 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 13460-03 for ; Tue, 12 Apr 2011 08:57:08 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from nm14-vm0.bullet.mail.ukl.yahoo.com (nm14-vm0.bullet.mail.ukl.yahoo.com [217.146.183.250]) by mail.postgresql.org (Postfix) with SMTP id 096401337999 for ; Tue, 12 Apr 2011 05:57:07 -0300 (ADT) Received: from [217.146.183.181] by nm14.bullet.mail.ukl.yahoo.com with NNFMP; 12 Apr 2011 08:57:07 -0000 Received: from [217.146.183.72] by tm12.bullet.mail.ukl.yahoo.com with NNFMP; 12 Apr 2011 08:57:07 -0000 Received: from [127.0.0.1] by omp1033.mail.ukl.yahoo.com with NNFMP; 12 Apr 2011 08:57:07 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 491658.53752.bm@omp1033.mail.ukl.yahoo.com Received: (qmail 89476 invoked by uid 60001); 12 Apr 2011 08:57:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1302598627; bh=DSkBmIgDJB6cJAGL8J1LWPd2BSezJhoy8+/brW61OsM=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=bWdz20xKuKcAj/vXk4YVvNyg7/CPqeFSOuq5byr5Q9wCHj7zoJvFrc5aeyuQZzMKKdlFC1ssJJsADKfTf1yT/EZ/RvL6mBqdyxmuGRmHINET0awuKLLSrxxafNuMEOJ8vUC5dkHZQ0r31S+gMJCngXMs96ax2I68xpjNIptIhKk= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=FgXCfk0ad8oIiJjpGQJzfq78e/KFDnJrtLtBZdS71Nns8JzCBfer5XAL4CgnAZ13hq5YlSO+uh4Kh5b36c2AeHGrnuqZKJRYIlXxCuTK//yqFl4TyrQyg6rt+xAiin215TVcAOrJRyPAEheuoc+Hvj0fx1plRg79mrv/7FW3WX4=; Message-ID: <364861.84268.qm@web26005.mail.ukl.yahoo.com> X-YMail-OSG: LrMEEMIVM1kafYKqTEhCbacH3S5lMXrXm3hhOJW4VI0Q023 xqrgTkUf3jrarcztQbgzlKVxPSkeG9vKdT0ZsCo03_K9jgbb.KuzFKe5NCPk GF9q7OcVVVvouVXlMGMxXzmqysstDx6F0_6Og6Pwf_A8OuZ8bVQgZUDa0VJB E6dNwQ1hwgFzyxv1KLwfMPNssIrPIaiEWELuZu9Z3RVa8u9gSr521ltH2Poa .UXzjd6T8gDI.as2r2.hpsKwkSyQk8VssSSb6YhQHmwDEkWGFeDR7mpxdwH5 9orZ8b3sclTyc8fuaa7uYK02sZX_.zBqSgfQODAXPbEgqtWqQxompZZHqH8j M6NwO34_wOj_nx2LzEO5gvg1dCQ-- Received: from [83.100.146.195] by web26005.mail.ukl.yahoo.com via HTTP; Tue, 12 Apr 2011 09:57:07 BST X-Mailer: YahooMailClassic/12.0.2 YahooMailWebService/0.8.109.295617 Date: Tue, 12 Apr 2011 09:57:07 +0100 (BST) From: Glyn Astill Subject: Re: Linux: more cores = less concurrency. To: Scott Marlowe Cc: pgsql-performance@postgresql.org In-Reply-To: MIME-Version: 1.0 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.898 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201104/148 X-Sequence-Number: 43210 --- On Tue, 12/4/11, Scott Marlowe wrote:=0A=0A> = From: Scott Marlowe =0A> Subject: Re: [PERFORM] Li= nux: more cores =3D less concurrency.=0A> To: "Glyn Astill" =0A> Cc: pgsql-performance@postgresql.org=0A> Date: Tuesday, 12 Ap= ril, 2011, 6:55=0A> On Mon, Apr 11, 2011 at 7:04 AM, Glyn=0A> Astill =0A> wrote:=0A> > Hi Guys,=0A> >=0A> > I'm just doing som= e tests on a new server running one=0A> of our heavy select functions (the = select part of a plpgsql=0A> function to allocate seats) concurrently.=A0 W= e do use=0A> connection pooling and split out some selects to slony=0A> sla= ves, but the tests here are primeraly to test what an=0A> individual server= is capable of.=0A> >=0A> > The new server uses 4 x 8 core Xeon X7550 CPUs = at=0A> 2Ghz, our current servers are 2 x 4 core Xeon E5320 CPUs at=0A> 2Ghz= .=0A> >=0A> > What I'm seeing is when the number of clients is=0A> greater = than the number of cores, the new servers perform=0A> better on fewer cores= .=0A> =0A> O man, I completely forgot the issue I ran into in my=0A> machin= es, and=0A> that was that zone_reclaim completely screwed postgresql=0A> an= d file=0A> system performance.=A0 On machines with more CPU nodes=0A> and h= igher=0A> internode cost it gets turned on automagically and=0A> destroys= =0A> performance for machines that use a lot of kernel cache /=0A> shared= =0A> memory.=0A> =0A> Be sure and use sysctl.conf to turn it off:=0A> =0A> = vm.zone_reclaim_mode =3D 0=0A> =0A=0AI've made this change, not seen any im= mediate changes however it's good to know. Thanks Scott.