Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id EF0CF1337B93 for ; Wed, 13 Apr 2011 06:48:09 -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 04764-04 for ; Wed, 13 Apr 2011 09:48:03 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from nm18-vm0.bullet.mail.ukl.yahoo.com (nm18-vm0.bullet.mail.ukl.yahoo.com [217.146.183.95]) by mail.postgresql.org (Postfix) with SMTP id 1AAB41337B80 for ; Wed, 13 Apr 2011 06:48:02 -0300 (ADT) Received: from [217.146.183.217] by nm18.bullet.mail.ukl.yahoo.com with NNFMP; 13 Apr 2011 09:48:02 -0000 Received: from [217.146.183.167] by tm10.bullet.mail.ukl.yahoo.com with NNFMP; 13 Apr 2011 09:48:02 -0000 Received: from [127.0.0.1] by omp1008.mail.ukl.yahoo.com with NNFMP; 13 Apr 2011 09:48:02 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 444089.29743.bm@omp1008.mail.ukl.yahoo.com Received: (qmail 3980 invoked by uid 60001); 13 Apr 2011 09:48:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1302688082; bh=3UpocOVE5Fy1o7lfluPQ+0QtiStsFUJPLnOLXyBpP7E=; 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=Z5Vj9Kdd2jMCs4kP+N1Sv+ip3KmiPsJu0ZonJkKbBeYtW7QdLsZyy8MDgr2y1vjuyDwNGxBarCcFMOMZRNtKbrmq83ZfDtHtQCJCkPQYoA8GoRIaNw5hGFBGWQWm3EaJ2QLbknViW2nz3fYLYftDRicRt5vwOb1ihUeARpne6L8= 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=bknrKEsqXBmNdtE7ChC+qzKNHzquYeiFYFbrp0ZY3Q1YAIIvSlZ5v7wFUftgYS3O9+RzkKqglZyzdrpFaCNYnEQFOzzJEjTq+CrsDg4MaS5YsuhRuw4PwgI6g9tsOfwBW+tkackDLMXz0bWXYIbi0DDplwpz+fPLq53WzdxN7u0=; Message-ID: <188622.2398.qm@web26002.mail.ukl.yahoo.com> X-YMail-OSG: EHqwHWYVM1lZtZPX6SZaewnM6r_yCuIA_69ZPK6i9SrMRnG BpWrm1oJRwfwSwLWQMp3KGzgfamclrznwLFkhc8CLyhJ9oCizDQgocsvPT0j CaLzxiRcKtAuHBMUQDJmmvVQVPLGuy93QdSp8bTkcYAnifDuSoiNd9barvNA faCC04bTcsD5Q233CBzqji5E0ho_LSaK7bZHphDGh_PJvgaFVY2Zq62MWCt5 ser4zoj7PzmESCsJc7uCFKvD54xh3A_IP5KtY8Hm42UhkLh0CNhaEl_Ko1pR S4HcyEo3N1FDrFVIUMvNBu8Xhnz7ujjc261iXMngXdsVFYIAzT5e2E3LXvMW 6zWvJepfTXbF_sCfntFqLn0ra Received: from [83.100.146.195] by web26002.mail.ukl.yahoo.com via HTTP; Wed, 13 Apr 2011 10:48:01 BST X-Mailer: YahooMailClassic/12.0.2 YahooMailWebService/0.8.109.295617 Date: Wed, 13 Apr 2011 10:48:01 +0100 (BST) From: Glyn Astill Subject: Re: Linux: more cores = less concurrency. To: Kevin Grittner , Greg Smith Cc: david@lang.hm, Steve Clark , "Joshua D. Drake" , Scott Marlowe , pgsql-performance@postgresql.org In-Reply-To: <4DA48537.7080405@2ndquadrant.com> 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/183 X-Sequence-Number: 43245 --- On Tue, 12/4/11, Greg Smith wrote:=0A=0A> From: = Greg Smith =0A> Subject: Re: [PERFORM] Linux: more co= res =3D less concurrency.=0A> To: "Kevin Grittner" =0A> Cc: david@lang.hm, "Steve Clark" , "Glyn As= till" , "Joshua D. Drake" , "= Scott Marlowe" , pgsql-performance@postgresql.org= =0A> Date: Tuesday, 12 April, 2011, 18:00=0A> Kevin Grittner wrote:=0A> > G= lyn Astill =0A> wrote:=0A> >=A0 =A0 =0A> >> Results= from Greg Smiths stream_scaling test are=0A> here:=0A> >> =0A> >> http://w= ww.privatepaste.com/4338aa1196=0A> >>=A0 =A0=A0=A0=0A> >=A0 Well, that pret= ty much clinches it.=A0 Your=0A> RAM access tops out at 16=0A> > processors= .=A0 It appears that your processors are=0A> spending most of=0A> > their t= ime waiting for and contending for the RAM=0A> bus.=0A> >=A0=A0=A0=0A> =0A>= I've pulled Glyn's results into https://github.com/gregs1104/stream-scalin= g so they're=0A> easy to compare against similar processors, his system is= =0A> the one labled 4 X X7550.=A0 I'm hearing this same story=0A> from mult= iple people lately:=A0 these 32+ core servers=0A> bottleneck on aggregate m= emory speed with running PostgreSQL=0A> long before the CPUs are fully util= ized.=A0 This server=0A> is close to maximum memory utilization at 8 cores,= and the=0A> small increase in gross throughput above that doesn't seem=0A>= to be making up for the loss in L1 and L2 thrashing from=0A> trying to run= more.=A0 These systems with many cores can=0A> only be used fully if you h= ave a program that can work=0A> efficiency some of the time with just local= CPU=0A> resources.=A0 That's very rarely the case for a database=0A> that'= s moving 8K pages, tuple caches, and other forms of=0A> working memory arou= nd all the time.=0A> =0A> =0A> > I have gotten machines in where moving a j= umper,=0A> flipping a DIP=0A> > switch, or changing BIOS options from the d= efault made=0A> a big=0A> > difference.=A0 I'd be looking at the manuals fo= r my=0A> motherboard and=0A> > BIOS right now to see what options there mig= ht be to=0A> improve that=0A> =0A> I already forwarded Glyn a good article = about tuning these=0A> Dell BIOSs in particular from an interesting blog se= ries=0A> others here might like too:=0A> =0A> http://bleything.net/articles= /postgresql-benchmarking-memory.html=0A> =0A> Ben Bleything is doing a very= thorough walk-through of=0A> server hardware validation, and as is often t= he case he's=0A> already found one major problem with the vendor config he= =0A> had to fix to get expected results.=0A> =0A=0AThanks Greg. I've been = through that post, but unfortunately there's no settings that make a differ= ence.=0A=0AHowever upon further investigation and looking at the manual for= the R910 here=0A=0Ahttp://support.dell.com/support/edocs/systems/per910/en= /HOM/HTML/install.htm#wp1266264=0A=0AI've discovered we only have 4 of the = 8 memory risers, and the manual states that in this configuration we are ru= nning in "Power Optimized" mode, rather than "Performance Optimized".=0A=0A= We've got two of these machines, so I've just pulled all the risers from on= e system, removed half the memory as indicated by that document from Dell a= bove, and now I'm seeing almost double the throughput.=0A=0A