Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 2A8C01337990 for ; Tue, 12 Apr 2011 14:01:03 -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 15222-04 for ; Tue, 12 Apr 2011 17:00:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by mail.postgresql.org (Postfix) with ESMTP id ACEBD1337BA8 for ; Tue, 12 Apr 2011 14:00:53 -0300 (ADT) Received: from [75.210.91.130] (130.sub-75-210-91.myvzw.com [75.210.91.130]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0LiIi3-1PWpos2pOd-00mjMT; Tue, 12 Apr 2011 19:00:50 +0200 Message-ID: <4DA48537.7080405@2ndquadrant.com> Date: Tue, 12 Apr 2011 10:00:39 -0700 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Kevin Grittner CC: david@lang.hm, Steve Clark , Glyn Astill , "Joshua D. Drake" , Scott Marlowe , pgsql-performance@postgresql.org Subject: Re: Linux: more cores = less concurrency. References: <4DA41EA5020000250003C6E1@gw.wicourts.gov> <812972.84286.qm@web26008.mail.ukl.yahoo.com> <4DA43A2B020000250003C702@gw.wicourts.gov> In-Reply-To: <4DA43A2B020000250003C702@gw.wicourts.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:XQLHI7WYh8qbLFMJdw6cb9fkBG22qv+uvx24OUhfet3 NskJWmwSOb70IKXcTZO08Bza28ePAQA2XEMR+INw82b2gwRAtk Ttgt01rK1qKC87R+NtZa3npeFcv87X3P8e9asu3QOkzxpSnUt5 wqPA6P2+n/M3e/KX6fw2ponLVyeANXTdeQ2+qN6m/RPXT9qGVc lDW9Gf6nuChLrU0O8b2WKgYmRSiLQOTexu02yGXjSg= 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: 201104/167 X-Sequence-Number: 43229 Kevin Grittner wrote: > Glyn Astill wrote: > > >> Results from Greg Smiths stream_scaling test are here: >> >> http://www.privatepaste.com/4338aa1196 >> > > Well, that pretty much clinches it. Your RAM access tops out at 16 > processors. It appears that your processors are spending most of > their time waiting for and contending for the RAM bus. > I've pulled Glyn's results into https://github.com/gregs1104/stream-scaling so they're easy to compare against similar processors, his system is the one labled 4 X X7550. I'm hearing this same story from multiple people lately: these 32+ core servers bottleneck on aggregate memory speed with running PostgreSQL long before the CPUs are fully utilized. This server is close to maximum memory utilization at 8 cores, and the small increase in gross throughput above that doesn't seem to be making up for the loss in L1 and L2 thrashing from trying to run more. These systems with many cores can only be used fully if you have a program that can work efficiency some of the time with just local CPU resources. That's very rarely the case for a database that's moving 8K pages, tuple caches, and other forms of working memory around all the time. > I have gotten machines in where moving a jumper, flipping a DIP > switch, or changing BIOS options from the default made a big > difference. I'd be looking at the manuals for my motherboard and > BIOS right now to see what options there might be to improve that I already forwarded Glyn a good article about tuning these Dell BIOSs in particular from an interesting blog series others here might like too: http://bleything.net/articles/postgresql-benchmarking-memory.html Ben Bleything is doing a very thorough walk-through of server hardware validation, and as is often the case he's already found one major problem with the vendor config he had to fix to get expected results. -- Greg Smith 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.us "PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books