pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Avi Vallarapu <avi.vallarapu@percona.com>
Cc: Raghavendra Rao J S V <raghavendrajsv@gmail.com>
Cc: Avinash Kumar <avinash.vallarapu@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: "checkpointer process" is consuming more memory. How to control it?
Date: Thu, 23 Aug 2018 06:46:28 -0700
Message-ID: <20180823134628.yax2zzcklcmsk36w@alap3.anarazel.de> (raw)
In-Reply-To: <CAKH_tAsa0EcAFoCuDATY=kAb2R+tLD5zAroSfKbHke6aSAD1AQ@mail.gmail.com>
References: <CAEHH7R4ePisRmxRpTA7ak_p+wasOKzuYvzBs3Ky+QhQmPmyotA@mail.gmail.com>
	<CAN0TujepZnutjWptC1OPMOM0zsODkXvaC=PtMfBATovkY1EmHg@mail.gmail.com>
	<CAEHH7R5mVx5gRxbo1q__fkGUwvVN0AA98ZxPGzE9dyrD6NQT3Q@mail.gmail.com>
	<CAKH_tAsa0EcAFoCuDATY=kAb2R+tLD5zAroSfKbHke6aSAD1AQ@mail.gmail.com>

On 2018-08-22 11:14:48 -0300, Avi Vallarapu wrote:
> Seams like you are with the default or fairly less checkpoint_* settings.
> 
> You need to look at several patterns to understand the best values for
> these settings.
> 
> For now, i can say 300 seconds for checkpoint_timeout could be fairly very
> less. Try increasing that with a reload.
> 
> See this =>
> https://www.percona.com/blog/2018/06/15/tuning-postgresql-for-sysbench-tpcc/
> 
> Please do note that delaying checkpointing could also increase the time for
> crash recovery/shutdown, etc.........

This seems to have not that much to do with the problem the OP has, no?

I suggest just using pmap -d $process_id_of_checkpointer
that'll likely show that it doesn't actually use much memory, but that
the RSS originates from the shared memory it has touched.

- Andres




view thread (7+ messages)

Message-ID: <20180823134628.yax2zzcklcmsk36w@alap3.anarazel.de>
Permalink:  ../20180823134628.yax2zzcklcmsk36w@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20180823134628.yax2zzcklcmsk36w@alap3.anarazel.de

 · 

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: andres@anarazel.de, avi.vallarapu@percona.com, raghavendrajsv@gmail.com, avinash.vallarapu@gmail.com
  Subject: Re: "checkpointer process" is consuming more memory. How to control it?
  In-Reply-To: <20180823134628.yax2zzcklcmsk36w@alap3.anarazel.de>
  References: <CAEHH7R4ePisRmxRpTA7ak_p+wasOKzuYvzBs3Ky+QhQmPmyotA@mail.gmail.com> <CAN0TujepZnutjWptC1OPMOM0zsODkXvaC=PtMfBATovkY1EmHg@mail.gmail.com> <CAEHH7R5mVx5gRxbo1q__fkGUwvVN0AA98ZxPGzE9dyrD6NQT3Q@mail.gmail.com> <CAKH_tAsa0EcAFoCuDATY=kAb2R+tLD5zAroSfKbHke6aSAD1AQ@mail.gmail.com> <20180823134628.yax2zzcklcmsk36w@alap3.anarazel.de>

* 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