pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jason McLaurin <jason@jcore.io>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Very slow queries followed by checkpointer process killed with signal 9
Date: Sun, 02 Apr 2023 21:40:18 -0400
Message-ID: <1090044.1680486018@sss.pgh.pa.us> (raw)
In-Reply-To: <CAJN0UCSqDfQpS-xsiMj4BdSUOS0iyFWo8-Xs+4UN-GFY8ucnZQ@mail.gmail.com>
References: <CAJN0UCS1xhx11YMVXua4LkyDYmLbJWF0dUwcasjhWGcHCvBCbQ@mail.gmail.com>
	<1077329.1680479022@sss.pgh.pa.us>
	<CAJN0UCSqDfQpS-xsiMj4BdSUOS0iyFWo8-Xs+4UN-GFY8ucnZQ@mail.gmail.com>

Jason McLaurin <jason@jcore.io> writes:
> Is there anywhere you'd suggest we start looking for hints? I'd be
> interested in increasing relevant logging verbosity so that we can see when
> key background processes are running, both in Postgres core and Timescale.

It might be helpful to try to identify which wait events the slow
queries are blocking on (pg_stat_activity.wait_event_type and
.wait_event).  I'm not sure if you're going to be able to extract
useful data, because your query on pg_stat_activity is likely to
be slow too.  But it's a place to start.

Also, given that you're evidently incurring the wrath of the OOM
killer, you should try to understand why the kernel thinks it's
under memory pressure.  Do you have too many processes, or perhaps
you've configured too much shared memory?

			regards, tom lane





view thread (6+ messages)  latest in thread

Message-ID: <1090044.1680486018@sss.pgh.pa.us>
Permalink:  ../1090044.1680486018@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1090044.1680486018@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, jason@jcore.io
  Subject: Re: Very slow queries followed by checkpointer process killed with signal 9
  In-Reply-To: <1090044.1680486018@sss.pgh.pa.us>
  References: <CAJN0UCS1xhx11YMVXua4LkyDYmLbJWF0dUwcasjhWGcHCvBCbQ@mail.gmail.com> <1077329.1680479022@sss.pgh.pa.us> <CAJN0UCSqDfQpS-xsiMj4BdSUOS0iyFWo8-Xs+4UN-GFY8ucnZQ@mail.gmail.com> <1090044.1680486018@sss.pgh.pa.us>

* 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