Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 24C0D2E002E for ; Tue, 17 Jun 2008 13:22:19 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 94337-02 for ; Tue, 17 Jun 2008 13:22:14 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.239]) by developer.postgresql.org (Postfix) with ESMTP id 3B0472E0037 for ; Tue, 17 Jun 2008 13:22:15 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so6502669rvf.43 for ; Tue, 17 Jun 2008 09:22:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=YYjsfMUvS9EA09x6idVXMzcrw+qxgntgysI6D+JMUAg=; b=nf/H3MpIRsM2j7zt8ejl/wW7xVnoX4AXUFxFIK6ffamTuwNOeS/vJoagKzQtnhkOnG 8ZoblKos0SuZByRydSJs7r6TewzRemcq/sH2p14FXV8pq5x8jQYSIIJ8pDeesVMFpdVl fOxEyHVY9PTAlJoDrqyClO8xgaO4UesMYmWCY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=fb8tJsmn4/sxwX7Xp1QHnnLbpAW1wUqXzH905XiuUntNaIWHf/xDt+crnifP+//SfM yhY+k0VxNNYClEOG0ge7oPId3IBC1CTRaIQ1ng7V9PnNAfutBJqWqL+cdGoiks61AVgP jE3+bVlo6XYbaQsOLZ9vVIHw/wjuK8eNpDR8o= Received: by 10.114.151.13 with SMTP id y13mr8182251wad.134.1213719734339; Tue, 17 Jun 2008 09:22:14 -0700 (PDT) Received: by 10.114.130.17 with HTTP; Tue, 17 Jun 2008 09:22:14 -0700 (PDT) Message-ID: Date: Tue, 17 Jun 2008 10:22:14 -0600 From: "Scott Marlowe" To: "Andrew Sullivan" , pgsql-performance@postgresql.org Subject: Re: Which hardware ? In-Reply-To: <20080617154215.GI68434@commandprompt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080617142501.GG68434@commandprompt.com> <20080617154215.GI68434@commandprompt.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200806/82 X-Sequence-Number: 30432 On Tue, Jun 17, 2008 at 9:42 AM, Andrew Sullivan wrote: > On Tue, Jun 17, 2008 at 04:49:17PM +0200, Lionel wrote: >> My tomcat webapp is well coded and consumes nearly nothing. > > If I were ever inclined to say, "Nonsense," about code I've never > seen, this is probably the occasion on which I'd do it. A running JVM > is necessarily going to use some memory, and that is memory use that > you won't be able to factor out properly when developing models of > your database system performance. But if that amount of memory is 256 Megs and it only ever acts as a control panel or data access point, it's probably not a huge issue. If it's 2 Gig it's another issue. It's all about scale. The real performance hog for me on all in one boxes has been perl / fastcgi setups. > The power of the system is hard to know about in the context (with > only 8Go of memory, I don't consider this a powerful box at all, > note). I always think of main memory in terms of how high a cache hit rate it can get me. If 8G gets you a 50% hit rate, and 16G gets you a 95% hit rate, then 16G is the way to go. But if 8G gets you to 75% and 32G gets you to 79% because of your usage patterns (the world isn't always bell curve shaped) then 8G is plenty and it's time to work on faster disk subsystems if you need more performance.