Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TMNKd-0002Iy-K8 for pgsql-performance@postgresql.org; Thu, 11 Oct 2012 18:18:03 +0000 Received: from smtp.01.com ([199.36.142.181]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TMNKb-00059n-S6 for pgsql-performance@postgresql.org; Thu, 11 Oct 2012 18:18:02 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id E6BD42CD662 for ; Thu, 11 Oct 2012 13:18:00 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-1.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-1.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M5L8ns9Oqq-5 for ; Thu, 11 Oct 2012 13:18:00 -0500 (CDT) Received: from smtp.01.com (localhost.localdomain [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id BDDE62CD663 for ; Thu, 11 Oct 2012 13:18:00 -0500 (CDT) Received: from Sidney-Stratton.local (70-36-143-92.dsl.dynamic.sonic.net [70.36.143.92]) by smtp-out-1.01.com (Postfix) with ESMTPSA id 90F102CD662 for ; Thu, 11 Oct 2012 13:18:00 -0500 (CDT) Message-ID: <50770D57.9000409@agliodbs.com> Date: Thu, 11 Oct 2012 11:17:59 -0700 From: Josh Berkus Organization: PostgreSQL Experts Inc. User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: shared_buffers/effective_cache_size on 96GB server References: <20121010210315.GI11892@momjian.us> In-Reply-To: X-Enigmail-Version: 1.4.4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201210/152 X-Sequence-Number: 48111 Jeff, > Does anyone see effective_cache_size make a difference anyway? If so, > in what circumstances? E_C_S, together with random_page_cost, the table and index sizes, the row estimates and the cpu_* costs, form an equation which estimates the cost of doing various kinds of scans, particularly index scan vs. table scan. If you have an extremely small database (< shared_buffers) or a very large database ( > 50X RAM ), the setting for E_C_S probably doesn't matter, but in the fairly common case where some tables and indexes fit in RAM and some don't, it matters. > In my hands, queries for which effective_cache_size might come into > play (for deciding between seq scan and index scan) are instead > planned as bitmap scans. You have a very unusual workload, or a very small database. -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com