pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ishan Joshi <Ishan.Joshi@amdocs.com>
To: Michael Lewis <mlewis@entrata.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: RE: Postgres server 12.2 crash with process exited abnormally and possibly corrupted shared memory
Date: Wed, 10 Jun 2020 06:05:52 +0000
Message-ID: <AM6PR0602MB339884872FE7EC2ABB1C9D3286830@AM6PR0602MB3398.eurprd06.prod.outlook.com> (raw)
In-Reply-To: <CAHOFxGqrM-jdX49CNqogqTJX5Twvc3UiN9ep_L2tDJYDeJtjVg@mail.gmail.com>
References: <AM6PR0602MB339842ED48E168FD776B088886820@AM6PR0602MB3398.eurprd06.prod.outlook.com>
	<CAHOFxGqrM-jdX49CNqogqTJX5Twvc3UiN9ep_L2tDJYDeJtjVg@mail.gmail.com>

Hi Michael,

Thanks for your response.

Please find answers for your questions
How many rows did these tables have before partitioning?     -->  We starts test with  0 rows in partition table.
Why did you decide to partition?                                                  -->  These tables are heave tables with high number of DML operation performed on this tables with high number of rows generated every hour.
Do these list partitions allow for plan-time pruning?                -->   WE have tune application queries to utilize partition pruning. Still we have 2-3 queries not utilizing partition pruning and we are working on same.
Do they support partition wise joins?                                          -->  Most of the queries are querying to single table.  We have change our queries that can utilize partition key.
work_mem can be used for each node of the plan and if you are getting parallel scans of many tables or indexes where you previously had one, that could be an issue. --> some of query are scanning indexes on all the partition.

Current work_mem is set with 9MB.
cpu_tuple_cost = 0.03
seq_page_cost = 0.7
random_page_cost=1
huge_pages=off.


Thanks & Regards,
Ishan Joshi

From: Michael Lewis <mlewis@entrata.com>
Sent: Wednesday, June 10, 2020 1:23 AM
To: Ishan Joshi <Ishan.Joshi@amdocs.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Postgres server 12.2 crash with process exited abnormally and possibly corrupted shared memory

On Tue, Jun 9, 2020 at 8:35 AM Ishan Joshi <Ishan.Joshi@amdocs.com<mailto:Ishan.Joshi@amdocs.com>> wrote:
I have using postgresql server v12.2  on CentOS Linux release 7.3.1611 (Core).

My application is working fine with non partition tables but recently we are trying to adopt partition table on few of application tables.
So we have created List partition on 6 table. 2 out of 6 tables have 24 partitions and 4 out of 6 tables have 500 list partitions. After performing partition table, we are trying to run our application it is getting crash as I can see the memory utilization is consumed 100% and once it reach to 100%  Postgres server getting crash with following error


How many rows did these tables have before partitioning? Why did you decide to partition? Do these list partitions allow for plan-time pruning? Do they support partition wise joins? work_mem can be used for each node of the plan and if you are getting parallel scans of many tables or indexes where you previously had one, that could be an issue.

2000 for max_connections strikes me as quite high. Consider the use of a connection pooler like pgbouncer or pgpool such that Postgres can be run with max connections more like 2-5x your number of CPUs, and those connections get re-used as needed. There is some fixed memory overhead for each potential connection.
This email and the information contained herein is proprietary and confidential and subject to the Amdocs Email Terms of Service, which you may review at https://www.amdocs.com/about/email-terms-of-service <https://www.amdocs.com/about/email-terms-of-service;


view thread (6+ messages)  latest in thread

Message-ID: <AM6PR0602MB339884872FE7EC2ABB1C9D3286830@AM6PR0602MB3398.eurprd06.prod.outlook.com>
Permalink:  ../AM6PR0602MB339884872FE7EC2ABB1C9D3286830@AM6PR0602MB3398.eurprd06.prod.outlook.com/
Also on:    postgresql.org/message-id/AM6PR0602MB339884872FE7EC2ABB1C9D3286830@AM6PR0602MB3398.eurprd06.prod.outlook.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: Ishan.Joshi@amdocs.com, mlewis@entrata.com
  Subject: Re: Postgres server 12.2 crash with process exited abnormally and possibly corrupted shared memory
  In-Reply-To: <AM6PR0602MB339884872FE7EC2ABB1C9D3286830@AM6PR0602MB3398.eurprd06.prod.outlook.com>
  References: <AM6PR0602MB339842ED48E168FD776B088886820@AM6PR0602MB3398.eurprd06.prod.outlook.com> <CAHOFxGqrM-jdX49CNqogqTJX5Twvc3UiN9ep_L2tDJYDeJtjVg@mail.gmail.com> <AM6PR0602MB339884872FE7EC2ABB1C9D3286830@AM6PR0602MB3398.eurprd06.prod.outlook.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox