Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jWocV-0001kR-8X for pgsql-general@arkaria.postgresql.org; Thu, 07 May 2020 22:03:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jWocU-0007uq-64 for pgsql-general@arkaria.postgresql.org; Thu, 07 May 2020 22:03:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jWocT-0007t5-SL for pgsql-general@lists.postgresql.org; Thu, 07 May 2020 22:03:53 +0000 Received: from athena.simkin.ca ([2607:f040:1001:2::ff:2]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jWocQ-000325-TI for pgsql-general@lists.postgresql.org; Thu, 07 May 2020 22:03:52 +0000 Received: from skynet.simkin.ca (d205-250-70-177.bchsia.telus.net [205.250.70.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by athena.simkin.ca (Postfix) with ESMTPSA id 116EEDC69703 for ; Thu, 7 May 2020 15:03:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.simkin.ca; s=athena; t=1588889029; bh=Zusk3pGiVtWNiynoEA4ZmKjckff3RkA78lAAiAaYEag=; h=Subject:From:To:Date:From:To:Subject:Date:Reply-To; b=S2m39K6y7H+g1LSWcGNb2bo9OvfwX9Dcas3Dmg3mNdsOC2MonNhKWV3GQqnL/SJiL nlsouqlYXvwI9BOdkzvsu318ZHUcC4f2jPiM6Hz5nQn6Flyz0XhqWrm+TPSIZ/0P/E qTUsy0BHVEFq5Fn4VueWvwtEhkm90Fo1pmCQNTFYFpR+99RVEN/F6VLzYVx3yNy4VH FnIYiAuwx/AlkXCMdu09QXupVYhAvR8b4Ln7Xitq21ndCV3elyWUWfqTeabVklTejS TC3sSapyJYvgmNvCfDlKyEy9/E5CmTvCygvMdjTnpkhv3PFKJ1IEjhbsBw+QOo8JxA l30ZkGHttvtmg== Received: from skynet.simkin.ca (skynet.simkin.ca [IPv6:::1]) by skynet.simkin.ca (Postfix) with ESMTP id B44F5105B1B00 for ; Thu, 7 May 2020 15:03:48 -0700 (PDT) Message-ID: <3ce4589dae05ec0f3308b0fb86f7a8a895e7b753.camel@lists.simkin.ca> Subject: Re: Memory footprint diff between 9.5 and 12 From: Alan Hodgson To: "pgsql-generallists.postgresql.org" Date: Thu, 07 May 2020 15:03:48 -0700 In-Reply-To: References: Content-Type: multipart/alternative; boundary="=-LCZcFQ4FmSz1voEek8L5" X-PGP-Key: fp="EF82 6F8D A3BA A096 FFA3 05F2 A7A0 40A5 34E5 AA0B"; id="0x34E5AA0B"; get= User-Agent: Evolution 3.34.4 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --=-LCZcFQ4FmSz1voEek8L5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Thu, 2020-05-07 at 13:33 -0700, Tory M Blue wrote: > I hadn't noticed this until today, but a running 9.5 system with > buffers at 10GB starts and has been running years without issues. > (15GB available) > Postgres 12 will not start with that configuration, complaining about > memory availability. So Postgres12 won't start until shared buffers > is 6GB, but even with that, my DB servers , postgres queries started > complaining about being unable to allocate memory "unable to > allocate". > > So dropping them to 4GB (on a 15GB system), may help, but did I miss a > huge note about significant memory changes between 9.5 to 12? > > Is there something else I'm missing that on busy systems is important, > something introduced in 10 or 11 as again I'm not seeing anything > noted in 12. > Thanks Is this running on an otherwise identical system? Or do you have a different kernel, overcommit settings, or swap configuration? --=-LCZcFQ4FmSz1voEek8L5 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
On Thu, 2020-05-07 at 13:33 -0700, Tory M Blue wrote:
I hadn't noticed this until today, but= a running 9.5 system with buffers at 10GB starts and has been running year= s without issues. (15GB available)

Postgres 12 will not = start with that configuration, complaining about memory availability. = So Postgres12 won't start until shared buffers is 6GB, but even with that,= my DB servers , postgres queries started complaining about being unable to= allocate memory "unable to allocate".

So dropping= them to 4GB (on a 15GB system), may help, but did I miss a huge note about= significant memory changes between 9.5 to 12?

Is = there something else I'm missing that on busy systems is important, somethi= ng introduced in 10 or 11 as again I'm not seeing anything noted in 12.
Thanks

Is this running o= n an otherwise identical system? Or do you have a different kernel, overcom= mit settings, or swap configuration?
--=-LCZcFQ4FmSz1voEek8L5--