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 1k5riX-0006Fh-H8 for pgsql-admin@arkaria.postgresql.org; Wed, 12 Aug 2020 14:27:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k5riW-0001LJ-Fc for pgsql-admin@arkaria.postgresql.org; Wed, 12 Aug 2020 14:27:00 +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 1k5riW-0001LC-3z for pgsql-admin@lists.postgresql.org; Wed, 12 Aug 2020 14:27:00 +0000 Received: from mout.perfora.net ([74.208.4.194]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5riT-0003Vf-Px for pgsql-admin@postgresql.org; Wed, 12 Aug 2020 14:26:59 +0000 Received: from [192.168.1.143] ([98.169.208.7]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MHVog-1k99V948Gi-003Jzu; Wed, 12 Aug 2020 16:26:52 +0200 Subject: Re: PG 11.8 > PG 12.3 : Unable to allocate section memory To: mjoigny@neteven.com Cc: pgsql-admin@postgresql.org References: <64eae88b-8ac5-366c-b6a2-e7b59b3d191b@neteven.com> From: MichaelDBA Message-ID: <544598c0-8d92-b66b-e015-4fc7e5735c35@sqlexec.com> Date: Wed, 12 Aug 2020 10:26:47 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.25 MIME-Version: 1.0 In-Reply-To: <64eae88b-8ac5-366c-b6a2-e7b59b3d191b@neteven.com> Content-Type: multipart/alternative; boundary="------------EB5C4E4BD1C384431B48256D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UCODhIiCu6cVzVP6qutdeuxE7+N15ziOUzwEDtV0mq5xZ5bPT/WygF l6EGzOOJXzGcCEUWNav7JJFQPX1+CCorgBHEWts5IrPb5+Xqqu8c9EmbFXeh7YDXbHu/zHU List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------EB5C4E4BD1C384431B48256D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Please specify some other stuff: 1. PG onprem or cloud? If cloud, which one and what instance type. 2. Is it a dedicated PG host?  How many hyper threads and memory do you have? 3. Does PGBouncer run on another host or on the same host as PG? JOIGNY Michael @Neteven wrote on 8/12/2020 10:09 AM: > > Hi Community, > > We have migrated from postgresql 11.8 to 12.3,unfortunately we have > sometimes the following errors in the logs, causing postgres process > to be killed. > > 2020-08-12 14:20:29.043 CEST [134644]: [71-1] > user=xx,db=xx,app=[unknown],client=localhost FATAL:  out of memory > 2020-08-12 14:20:29.049 CEST [30022]: [6126-1] > user=xx,db=xx,app=[unknown],client=localhost FATAL:  fatal llvm error: > Unable to allocate section memory! > 2020-08-12 14:20:29.197 CEST [78792]: [1-1] user=,db=,app=,client= > FATAL:  terminating connection due to administrator command > 2020-08-12 14:20:29.197 CEST [78791]: [1-1] user=,db=,app=,client= > FATAL:  terminating connection due to administrator command > 2020-08-12 14:20:29.197 CEST [78793]: [1-1] user=,db=,app=,client= > FATAL:  terminating connection due to administrator command > 2020-08-12 14:20:29.197 CEST [78790]: [1-1] user=,db=,app=,client= > FATAL:  terminating connection due to administrator command > 2020-08-12 14:21:02.621 CEST [86289]: [2-1] > user=postgres,db=template1,app=[unknown],client=[local] FATAL: out of > memory > 2020-08-12 14:21:04.632 CEST [29597]: [26704-1] > user=xx,db=xx,app=[unknown],client=localhost FATAL:  fatal llvm error: > Unable to allocate section memory! > > Here are our settings : > > _PG :_ > > max_connections = 3600 > > shared_buffers = 32GB > temp_buffers = 16MB > work_mem = 96MB > maintenance_work_mem = 8GB > max_stack_depth = 6MB > dynamic_shared_memory_type = posix > > We use postgresql with pgbouncer as a pooler. > > > _PGbouncer : > _ > > pooler mode : session > max_client_conn = 6000 > default_pool_size = 3000 > > We have ~ 2000 connections at the same time with ~ 20/30 are active. > > Note that we had the same configuration under PG11 without any problem. > > Do you have an idea ? > > Regards. > --------------EB5C4E4BD1C384431B48256D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Please specify some other stuff:

1. PG onprem or cloud? If cloud, which one and what instance type.
2. Is it a dedicated PG host?  How many hyper threads and memory do you have?
3. Does PGBouncer run on another host or on the same host as PG?

JOIGNY Michael @Neteven wrote on 8/12/2020 10:09 AM:

Hi Community,

We have migrated from postgresql 11.8 to 12.3, unfortunately we have sometimes the following errors in the logs, causing postgres process to be killed.

2020-08-12 14:20:29.043 CEST [134644]: [71-1] user=xx,db=xx,app=[unknown],client=localhost FATAL:  out of memory
2020-08-12 14:20:29.049 CEST [30022]: [6126-1] user=xx,db=xx,app=[unknown],client=localhost FATAL:  fatal llvm error: Unable to allocate section memory!
2020-08-12 14:20:29.197 CEST [78792]: [1-1] user=,db=,app=,client= FATAL:  terminating connection due to administrator command
2020-08-12 14:20:29.197 CEST [78791]: [1-1] user=,db=,app=,client= FATAL:  terminating connection due to administrator command
2020-08-12 14:20:29.197 CEST [78793]: [1-1] user=,db=,app=,client= FATAL:  terminating connection due to administrator command
2020-08-12 14:20:29.197 CEST [78790]: [1-1] user=,db=,app=,client= FATAL:  terminating connection due to administrator command
2020-08-12 14:21:02.621 CEST [86289]: [2-1] user=postgres,db=template1,app=[unknown],client=[local] FATAL:  out of memory
2020-08-12 14:21:04.632 CEST [29597]: [26704-1] user=xx,db=xx,app=[unknown],client=localhost FATAL:  fatal llvm error: Unable to allocate section memory!

Here are our settings :

PG :

max_connections = 3600    

shared_buffers = 32GB           
temp_buffers = 16MB                
work_mem = 96MB                    
maintenance_work_mem = 8GB           
max_stack_depth = 6MB                  
dynamic_shared_memory_type = posix 

We use postgresql with pgbouncer as a pooler.

 

PGbouncer :

pooler mode : session
max_client_conn = 6000
default_pool_size = 3000

We have ~ 2000 connections at the same time with ~ 20/30 are active.

Note that we had the same configuration under PG11 without any problem.

Do you have an idea ?

Regards.


--------------EB5C4E4BD1C384431B48256D--