X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5BC58D83C3 for ; Fri, 28 Oct 2005 11:02:38 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 46017-05 for ; Fri, 28 Oct 2005 14:02:34 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.200]) by svr1.postgresql.org (Postfix) with ESMTP id 79145DB21D for ; Fri, 28 Oct 2005 11:02:36 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id 71so251531wra for ; Fri, 28 Oct 2005 07:02:41 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=geovcuviEXvLAAT2DWM4fe1Y8ZNYUtrGD6KtMZL/f4xkwu7mGvRNwoDRiM7qRJ8dLmmItTw0nZ7O5PjQ53WDsGaSh8ecOpYu2I6xSjBCsaTr7/URS1Yfx6yOCGj+dQ6Z8ZjE12VKc6f2QtYXrl9R7YjdBaC+TGH3jisywVQlrHc= Received: by 10.54.76.5 with SMTP id y5mr181223wra; Fri, 28 Oct 2005 07:02:41 -0700 (PDT) Received: by 10.54.84.8 with HTTP; Fri, 28 Oct 2005 07:02:41 -0700 (PDT) Message-ID: <33c6269f0510280702n2584f59we26b5256cd3422f6@mail.gmail.com> Date: Fri, 28 Oct 2005 10:02:41 -0400 From: Alex Turner To: "Jim C. Nasby" Subject: Re: How much memory? Cc: Ron Peacetree , PostgreSQL , pgsql-performance@postgresql.org In-Reply-To: <20051027225517.GU63747@pervasive.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <7021105.1130452773950.JavaMail.root@elwamui-norfolk.atl.sa.earthlink.net> <20051027225517.GU63747@pervasive.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.099 required=5 tests=[AWL=0.099] X-Spam-Score: 0.099 X-Spam-Level: X-Archive-Number: 200510/439 X-Sequence-Number: 15207 Reasons not to buy from Sun or Compaq - why get Opteron 252 when a 240 will do just fine for a fraction of the cost, which of course they don't stock, white box all the way baby ;). My box from Sun or Compaq or IBM is 2x the whitebox cost because you can't buy apples to apples. We have a bitchin' DB server for $7.5k Alex On 10/27/05, Jim C. Nasby wrote: > On Thu, Oct 27, 2005 at 06:39:33PM -0400, Ron Peacetree wrote: > > Databases basically come in 4 sizes: > > > > 1=3D The entire DB fits into memory. > > 2=3D The performance critical table(s) fit(s) into memory > > 3=3D The indexes of the performance critical table(s) fit into memory. > > 4=3D Neither the performance critical tables nor their indexes fit into= memory. > > > > Performance decreases (exponentially), and development + maintenance co= st/difficulty/pain increases (exponentially), as you go down the list. > > > > While it is often not possible to be in class "1" above, do everything = you can to be in at least class "3" and do everything you can to avoid clas= s "4". > > > > At ~$75-$150 per GB as of this post, RAM is the cheapest investment you= can make in a high perfomance, low hassle DBMS. IWill's and Tyan's 16 DIM= M slot mainboards are worth every penny. > > And note that your next investment after RAM should be better disk IO. > More CPUs *generally* don't buy you much (if anything). My rule of > thumb: the only time your database should be CPU-bound is if you've got > a bad design*. > > *NOTE: before everyone goes off about query parallelism and big > in-memory sorts and what-not, keep in mind I said "rule of thumb". :) > -- > Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com > Pervasive Software http://pervasive.com work: 512-231-6117 > vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461 > > ---------------------------(end of broadcast)--------------------------- > TIP 2: Don't 'kill -9' the postmaster >