Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WkDYh-0001kE-Ck for pgsql-performance@arkaria.postgresql.org; Tue, 13 May 2014 14:19:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WkDYg-0001pr-SP for pgsql-performance@arkaria.postgresql.org; Tue, 13 May 2014 14:19:54 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WkDYf-0001pj-It for pgsql-performance@postgresql.org; Tue, 13 May 2014 14:19:53 +0000 Received: from harad.mathom.us ([2001:4978:f:83fa::1]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WkDYX-00042c-3t for pgsql-performance@postgresql.org; Tue, 13 May 2014 14:19:52 +0000 Received: from osgiliath.mathom.us (osgiliath.mathom.us [IPv6:2001:4830:1614:2341::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by harad.mathom.us (Postfix) with ESMTPS id 77FB1405ED for ; Tue, 13 May 2014 14:19:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mathom.us; s=mail; t=1399990780; bh=kTjYDkGX/wAj0Kau2yyv33ZNprhuBRPjUQoT51c3QcI=; h=Date:From:To:Subject:References:In-Reply-To:From; b=d7wLJHvPtF7o/JIXEL/H+k8g9wKru8jbWX/wuEX1W1fJyAOxuVym1JV88kRlHN1AJ VgSYL6dXhTnBCjfNPB6v5AyIdJ30CafImrGt4VH0sGh7RGG7GL3BI3x4hgDX9h7P3J EJHifb+A9RYqKtQrCvacIJMpyWs3siEGIaScs8Hs= Received: from localhost (localhost [127.0.0.1]) by osgiliath.mathom.us (Postfix) with ESMTP id 6449F6E621 for ; Tue, 13 May 2014 10:19:13 -0400 (EDT) Received: from osgiliath.mathom.us ([127.0.0.1]) by localhost (osgiliath.mathom.us [127.0.0.1]) (amavisd-new, port 10024) with LMTP id u2QEVc35gAnG for ; Tue, 13 May 2014 10:19:13 -0400 (EDT) Received: by osgiliath.mathom.us (Postfix, from userid 1000) id 4B9066E8D1; Tue, 13 May 2014 10:19:13 -0400 (EDT) Date: Tue, 13 May 2014 10:19:13 -0400 From: Michael Stone To: pgsql-performance@postgresql.org Subject: Re: Specifications for a new server Message-ID: <9f5e8e56-daa8-11e3-aa78-00163eeb5320@msgid.mathom.us> Mail-Followup-To: pgsql-performance@postgresql.org References: <20140506110714.GA9155@mathom.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Pgp-Fingerprint: 02D5 315F F11F 1861 860E 1E02 F61A ACDC FA11 FFDE User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On Thu, May 08, 2014 at 10:11:38AM +0200, Johann Spies wrote: >I understand your remark about the CPU in the light of my wrong assumption >earlier, but I do not understand your remark about the RAM.  The fact that >temporary files of up to 250Gb are created at times during complex queries, is >to me an indication of too low RAM. If you can afford infinite RAM, then infinite RAM is great. If your working set size exceeds the memory size, then you will eventually need to deal with disk IO. At that point, maybe a bit more memory will help and maybe it will not--you'll be able to fit a little bit more working data into memory, but that won't likely radically change the performance. (If you can afford to fit *everything* you need into RAM than that's ideal, but that's not the case for most people with non-trival data sets.) What is certain is that improving the disk IO performance will improve your overall performance if you're IO bound. (And the mere existence of temporary files isn't an indication of insufficient RAM if the system can utilize the memory more efficiently with the files than it can without them--they could contain data that isn't needed in a particular phase of a query, freeing up resources that are needed for other data in that phase.) Mike Stone -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance