Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 301621337BE8 for ; Tue, 26 Oct 2010 21:21:08 -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 08881-03 for ; Wed, 27 Oct 2010 00:21:02 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mail.postgresql.org (Postfix) with ESMTP id D52601337C7A for ; Tue, 26 Oct 2010 21:18:55 -0300 (ADT) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PAtjC-0005GQ-Ox for pgsql-performance@postgresql.org; Wed, 27 Oct 2010 02:18:54 +0200 Received: from 93-138-107-70.adsl.net.t-com.hr ([93.138.107.70]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Oct 2010 02:18:54 +0200 Received: from ivoras by 93-138-107-70.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Oct 2010 02:18:54 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-performance@postgresql.org From: Ivan Voras Subject: Re: CPUs for new databases Date: Wed, 27 Oct 2010 02:18:43 +0200 Lines: 27 Message-ID: References: <4CC6CFAA.10107@one.com> <4CC73FEF.9020805@agliodbs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 93-138-107-70.adsl.net.t-com.hr User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20101008 Thunderbird/3.1.4 In-Reply-To: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/453 X-Sequence-Number: 40871 On 10/27/10 01:45, James Cloos wrote: >>>>>> "JB" == Josh Berkus writes: > > JB> In a general workload, fewer faster cores are better. We do not scale > JB> perfectly across cores. The only case where that's not true is > JB> maintaining lots of idle connections, and that's really better dealt > JB> with in software. > > I've found that ram speed is the most limiting factor I've run into for > those cases where the db fits in RAM. The less efficient lookups run > just as fast when the CPU is in powersving mode as in performance, which > implies that the cores are mostly waiting on RAM (cache or main). > > I suspect cache size and ram speed will be the most important factors > until the point where disk i/o speed and capacity take over. FWIW, yes - once the IO is fast enough or not necessary (e.g. the read-mostly database fits in RAM), RAM bandwidth *is* the next bottleneck and it really, really can be observed in actual loads. Buying a QPI-based CPU instead of the cheaper DMI-based ones (if talking about Intel chips), and faster memory modules (DDR3-1333+) really makes a difference in this case. (QPI and DMI are basically the evolution the front side bus; AMD had HT - HyperTransport for years now. Wikipedia of course has more information for the interested.)