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 1gG1us-0004mt-1T for pgsql-general@arkaria.postgresql.org; Fri, 26 Oct 2018 13:12:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gG1uq-00086Y-65 for pgsql-general@arkaria.postgresql.org; Fri, 26 Oct 2018 13:12:40 +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 1gG1up-00086R-UE for pgsql-general@lists.postgresql.org; Fri, 26 Oct 2018 13:12:39 +0000 Received: from [195.159.176.226] (helo=blaine.gmane.org) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gG1uj-0004N1-8l for pgsql-general@postgresql.org; Fri, 26 Oct 2018 13:12:39 +0000 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1gG1sb-0001VJ-M8 for pgsql-general@postgresql.org; Fri, 26 Oct 2018 15:10:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-general@postgresql.org From: Thomas Kellerer Subject: Different memory allocation strategy in Postgres 11? Date: Fri, 26 Oct 2018 15:12:26 +0200 Lines: 13 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 X-Mozilla-News-Host: news://news.gmane.org:119 Content-Language: en-GB X-Host-Lookup-Failed: Reverse DNS lookup failed for 195.159.176.226 (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I have a Postgres instance running on my Windows laptop for testing purposes. I typically configure "shared_buffers = 4096MB" on my 16GB system as sometimes when testing, it pays off to have a bigger cache. With Postgres 10 and earlier, the Postgres process(es) would only allocate that memory from the operating system when needed. So right after startup, it would only consume several hundred MB, not the entire 4GB However with Postgres 11 I noticed that it immediately grabs the complete memory configured for shared_buffers during startup. It's not really a big deal, but I wonder if that is an intentional change or a result from something else? Regards Thomas