Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 4B05B6334CB for ; Mon, 30 Aug 2010 12:16:09 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 67581-05 for ; Mon, 30 Aug 2010 15:16:02 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mail.postgresql.org (Postfix) with ESMTP id E2FD36331D3 for ; Mon, 30 Aug 2010 12:16:01 -0300 (ADT) Received: from [192.168.1.6] (static-71-179-240-8.bltmmd.fios.verizon.net [71.179.240.8]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0MVHmU-1OJcrO0ZSg-00YBgS; Mon, 30 Aug 2010 17:16:00 +0200 Message-ID: <4C7BCB2E.3090100@2ndquadrant.com> Date: Mon, 30 Aug 2010 11:15:58 -0400 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Yeb Havinga CC: Jose Ildefonso Camargo Tolosa , "pgsql-performance@postgresql.org" Subject: Re: Performance on new 64bit server compared to my 32bit desktop References: <4C6CE64D.6070104@edd.fr> <4C6D76FE.9010407@2ndquadrant.com> <4C77F4F4.4020900@2ndquadrant.com> <4C7B6498.5040800@gmail.com> In-Reply-To: <4C7B6498.5040800@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:0JVOGELdj2geerC8s5k+1XJpAnIS9POSTEsV+TshVea 3vhrn7ClhOAGOjnWxahsT+8eiDdjsk9NP6d9A7sBM+n3eaa7oq 9nD4XRDaPo9th1/+HHKI9+x/zKD26EO/lAt3Ub+w6X3X+yJ7UG e7TOpphgRDv68eKvn2/ABClJGqTTQnM+2mvLUhS5J1jvbJ9Pt+ BqElAQZEoS6ijrWtYDpdkn6Zw3TXeXb6qHTX62HA0A= 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: 201008/325 X-Sequence-Number: 40168 Yeb Havinga wrote: > model name : AMD Phenom(tm) II X4 940 Processor @ 3.00GHz > cpu cores : 4 > stream compiled with -O3 > Function Rate (MB/s) Avg time Min time Max time > Triad: 5395.1815 0.0089 0.0089 0.0089 For comparison sake, an only moderately expensive desktop Intel CPU using DDR3-1600: model name : Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz cpu cores : 4 siblings : 8 Number of Threads requested = 4 Function Rate (MB/s) Avg time Min time Max time Triad: 13666.0986 0.0108 0.0107 0.0108 8 hyper-threaded cores here. They work well for improving CPU-heavy tasks, but with 4 threads total is where the memory throughput maxes out at. I'm not sure if Yeb's stream was compiled to use MPI correctly though, because I'm not seeing "Number of Threads" in his results. Here's what works for me: gcc -O3 -fopenmp stream.c -o stream And then you can set: export OMP_NUM_THREADS=4 Or whatever you want in order to control the number of threads it uses inside. Here's the way scaling works on my processor: Number of Threads requested = 1 Function Rate (MB/s) Avg time Min time Max time Triad: 9806.2648 0.0150 0.0149 0.0151 Number of Threads requested = 2 Function Rate (MB/s) Avg time Min time Max time Triad: 12495.2113 0.0117 0.0117 0.0118 Number of Threads requested = 3 Function Rate (MB/s) Avg time Min time Max time Triad: 13388.7187 0.0111 0.0109 0.0126 Number of Threads requested = 4 Function Rate (MB/s) Avg time Min time Max time Triad: 13695.6611 0.0107 0.0107 0.0108 Number of Threads requested = 5 Function Rate (MB/s) Avg time Min time Max time Triad: 12651.7200 0.0116 0.0116 0.0116 Number of Threads requested = 6 Function Rate (MB/s) Avg time Min time Max time Triad: 12804.7192 0.0115 0.0114 0.0117 Number of Threads requested = 7 Function Rate (MB/s) Avg time Min time Max time Triad: 12670.2525 0.0116 0.0116 0.0117 Number of Threads requested = 8 Function Rate (MB/s) Avg time Min time Max time Triad: 12468.5739 0.0119 0.0117 0.0131 -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support greg@2ndQuadrant.com www.2ndQuadrant.us