X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id D066211F622B for ; Wed, 26 Apr 2006 00:08:00 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 15411-01 for ; Wed, 26 Apr 2006 00:07:20 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtpauth04.mail.atl.earthlink.net (smtpauth04.mail.atl.earthlink.net [209.86.89.64]) by postgresql.org (Postfix) with ESMTP id 5FE7B11F6237 for ; Wed, 26 Apr 2006 00:07:19 -0300 (ADT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=ZxKD581OSaKS1b37Ow4SouJOGFiHTuWrMtCcKRNkbuepU4QRT6N5VxK1jWZr+XFw; h=Message-ID:Date:From:Reply-To:To:Subject:Cc:Mime-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:X-ELNK-Trace:X-Originating-IP; Received: from [209.86.224.41] (helo=elwamui-mouette.atl.sa.earthlink.net) by smtpauth04.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1FYaN3-0004oW-Ee; Tue, 25 Apr 2006 23:07:17 -0400 Received: from 70.22.235.105 by webmail.pas.earthlink.net with HTTP; Tue, 25 Apr 2006 23:07:17 -0400 Message-ID: <8991088.1146020837420.JavaMail.root@elwamui-mouette.atl.sa.earthlink.net> Date: Tue, 25 Apr 2006 23:07:17 -0400 (EDT) From: Ron Peacetree Reply-To: Ron Peacetree To: mark@mark.mielke.cc, Scott Marlowe Subject: Re: Large (8M) cache vs. dual-core CPUs Cc: Bill Moran , pgsql-performance@postgresql.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: EarthLink Zoo Mail 1.0 X-ELNK-Trace: acd68a6551193be5d780f4a490ca69563f9fea00a6dd62bc2e9d25295200e177cd33bf51438af657350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 209.86.224.41 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/595 X-Sequence-Number: 18679 >Another benefit of Pentium D over AMD X2, at least until AMD chooses >to switch, is that Pentium D supports DDR2, whereas AMD only supports >DDR. There are a lot of technical pros and cons to each - with claims >from AMD that DDR2 can be slower than DDR - but one claim that isn't >often made, but that helped me make my choice: > > 1) DDR2 supports higher transfer speeds. I'm using DDR2 5400 on > the Intel. I think I'm at 3200 or so on the AMD X2. > > 2) DDR2 is cheaper. I purchased 1 Gbyte DDR2 5400 for $147 CDN. > 1 Gbyte of DDR 3200 starts at around the same price, and > stretches into $200 - $300 CDN. > There's a logical fallacy here that needs to be noted. THROUGHPUT is better with DDR2 if and only if there is enough data to be fetched in a serial fashion from memory. LATENCY however is dependent on the base clock rate of the RAM involved. So PC3200, 200MHz x2, is going to actually perform better than PC2-5400, 166MHz x4, for almost any memory access pattern except those that are highly sequential. In fact, even PC2-6400, 200MHz x4, has a disadvantage compared to 200MHz x2 memory. The minimum latency of the two types of memory in clock cycles is always going to be higher for the memory type that multiplies its base clock rate by the most. For the mostly random memory access patterns that comprise many DB applications, the base latency of the RAM involved is going to matter more than the peak throughput AKA the bandwidth of that RAM. The big message here is that despite engineering tricks and marketing claims, the base clock rate of the RAM you use matters. A minor point to be noted in addition here is that most DB servers under load are limited by their physical IO subsystem, their HDs, and not the speed of their RAM. All of the above comments about the relative performance of different RAM types become insignificant when performance is gated by the HD subsystem.