Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJdZA-000090-Tc for pgsql-docs@arkaria.postgresql.org; Mon, 05 Nov 2018 12:01:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gJdZ8-0008Jd-PY for pgsql-docs@arkaria.postgresql.org; Mon, 05 Nov 2018 12:01:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJdZ8-0008JV-Jq for pgsql-docs@lists.postgresql.org; Mon, 05 Nov 2018 12:01:10 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gJdZ5-0005Wu-QM for pgsql-docs@lists.postgresql.org; Mon, 05 Nov 2018 12:01:10 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1gJdZ2-0004Dw-9l; Mon, 05 Nov 2018 07:01:04 -0500 Date: Mon, 5 Nov 2018 07:01:04 -0500 From: Bruce Momjian To: Peter Eisentraut Cc: nat@makarevitch.org, pgsql-docs@lists.postgresql.org Subject: Re: effective_cache_size Message-ID: <20181105120104.GA13769@momjian.us> References: <153685164808.22334.15432535018443165207@wrigleys.postgresql.org> <20181011174849.GC7807@momjian.us> <20181016153820.GD31154@momjian.us> <369ec766-b947-51bd-4dad-6fb9e026439f@2ndquadrant.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <369ec766-b947-51bd-4dad-6fb9e026439f@2ndquadrant.com> User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Nov 5, 2018 at 12:50:01PM +0100, Peter Eisentraut wrote: > On 16/10/2018 17:38, Bruce Momjian wrote: > > diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c > > index 2317e8b..e471d7f 100644 > > --- a/src/backend/utils/misc/guc.c > > +++ b/src/backend/utils/misc/guc.c > > @@ -2987,10 +2987,9 @@ static struct config_int ConfigureNamesInt[] = > > > > { > > {"effective_cache_size", PGC_USERSET, QUERY_TUNING_COST, > > - gettext_noop("Sets the planner's assumption about the size of the disk cache."), > > - gettext_noop("That is, the portion of the kernel's disk cache that " > > - "will be used for PostgreSQL data files. This is measured in disk " > > - "pages, which are normally 8 kB each."), > > + gettext_noop("Sets the planner's assumption about the size of the data cache."), > > + gettext_noop("That is, the size of the cache used for PostgreSQL data files. " > > + "This is measured in disk pages, which are normally 8 kB each."), > > GUC_UNIT_BLOCKS, > > }, > > &effective_cache_size, > > This change completely loses the context that this is the kernel's/host > system's memory size. What is "data cache"? I think this is a bad > change. I know it's confusing, but the old description at least had > some basis in terms that are known to the user. Well, the change as outlined in the email is that effective_cache_size is a combination of shared_buffers and kernel cache size, which I think the docs now make clear. Do you have better wording for the GUC? -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +