Re: Different memory allocation strategy in Postgres 11?

From: Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>
To: Thomas Kellerer <spam_eater(at)gmx(dot)net>
Cc: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Different memory allocation strategy in Postgres 11?
Date: 2018-10-26 20:13:26
Message-ID: CAEepm=0dQdoZTLVZ0cEA0aXUxdvpNx8iKRrtigZ8V9amvpZcvw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, Oct 27, 2018 at 6:10 AM Thomas Kellerer <spam_eater(at)gmx(dot)net> wrote:
> Jeff Janes schrieb am 26.10.2018 um 17:42:
> > 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?
> >
> >
> > Do you have pg_prewarm in shared_preload_libraries?
>
> No. The only shared libraries are those for pg_stat_statemens

Does your user have "Lock Pages in Memory" privilege? One thing that
is new in 11 is huge AKA large page support, and the default is
huge_pages=try. Not a Windows person myself but I believe that should
succeed if you have that privilege and enough contiguous chunks of
physical memory are available. If you set huge_pages=off does it
revert to the old behaviour?

--
Thomas Munro
http://www.enterprisedb.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Christoph Moench-Tegeder 2018-10-26 21:27:26 Re: rw_redis_fdw: SQL Errors when statement is within a function
Previous Message Yuxia Qiu 2018-10-26 17:37:59 How to get partition info for a partition table?