pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mohammed Afsar <mohammed.afsar7799@gmail.com>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: Postgresql background writer and checkpointer memory utilization in Linux server
Date: Tue, 11 Aug 2020 11:40:21 -0400
Message-ID: <3398631.1597160421@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+s2FCNdjKVgwT49bFei03kzwEPrdCW8A2RhYzpbRMHzQ2XjmA@mail.gmail.com>
References: <CA+s2FCOB-HKRf9G2KeB66arqTUQjKbKfJLa7D3P8wPoxwXd00Q@mail.gmail.com>
	<3398104.1597159685@sss.pgh.pa.us>
	<CA+s2FCNdjKVgwT49bFei03kzwEPrdCW8A2RhYzpbRMHzQ2XjmA@mail.gmail.com>

Mohammed Afsar <mohammed.afsar7799@gmail.com> writes:
> Thanks for response,the exact issue which am facing is when there is no
> transaction queries are happening in database checkpointer and background
> writer is continuously utilizing memory from server.

That sounds like complete nonsense.  Those processes don't execute
queries.  It's true that they'll continue to do I/O work for some
time after queries have executed in other processes, but that's normal.

I say again that you haven't offered any evidence of having a problem
to solve.  If you don't want the database to be consuming any cycles
at all, then you should shut it down.  But if you want it to do useful
work, it's designed to spread out that work, not necessarily to do it
all before a query returns results to the client.

			regards, tom lane





view thread (7+ messages)  latest in thread

Message-ID: <3398631.1597160421@sss.pgh.pa.us>
Permalink:  ../3398631.1597160421@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3398631.1597160421@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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mohammed.afsar7799@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Postgresql background writer and checkpointer memory utilization in Linux server
  In-Reply-To: <3398631.1597160421@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