pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedpostmaster utilization
5+ messages / 4 participants
[nested] [flat]
* postmaster utilization
@ 2019-08-19 10:40 Shiwangini Shishulkar <shiwangini.shishulkar@webgility.com>
2019-08-19 11:01 ` Re: postmaster utilization Ron <ronljohnsonjr@gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: Shiwangini Shishulkar @ 2019-08-19 10:40 UTC (permalink / raw)
To: pgsql-general; +Cc: Prabodh Shenai <prabodhs@webgility.com>
Hi,
We have scheduled postgres full backup on centos 7 machine. DB size is
around 66 GB. We observed while backup is running, postmaster CPU % reaches
to 90 - 100%,which results very strange behavior: that we are not able to
perform any DDL and DML on to the database during the time.
Please suggest a way to limit it's CPU utilization or else let us know how
we can access the database during the backup window. Please let us know on
priority since this is our prod database.
Get back to us in case of any query/detail.
Regards,
Shiwangini
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: postmaster utilization
2019-08-19 10:40 postmaster utilization Shiwangini Shishulkar <shiwangini.shishulkar@webgility.com>
@ 2019-08-19 11:01 ` Ron <ronljohnsonjr@gmail.com>
2019-08-19 14:07 ` Re: postmaster utilization Stephen Frost <sfrost@snowman.net>
0 siblings, 1 reply; 5+ messages in thread
From: Ron @ 2019-08-19 11:01 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 8/19/19 5:40 AM, Shiwangini Shishulkar wrote:
> Hi,
>
> We have scheduled postgres full backup on centos 7 machine. DB size is
> around 66 GB. We observed while backup is running, postmaster CPU %
> reaches to 90 - 100%,which results very strange behavior: that we are not
> able to perform any DDL and DML on to the database during the time.
> Please suggest a way to limit it's CPU utilization or else let us know how
> we can access the database during the backup window. Please let us know on
> priority since this is our prod database.
Are you compressing the backup?
How many threads are you running?
How many CPUs on your system?
What version of Postgres?
--
Angular momentum makes the world go 'round.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: postmaster utilization
2019-08-19 10:40 postmaster utilization Shiwangini Shishulkar <shiwangini.shishulkar@webgility.com>
2019-08-19 11:01 ` Re: postmaster utilization Ron <ronljohnsonjr@gmail.com>
@ 2019-08-19 14:07 ` Stephen Frost <sfrost@snowman.net>
2019-08-20 04:53 ` Re: postmaster utilization Kyotaro Horiguchi <horikyota.ntt@gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: Stephen Frost @ 2019-08-19 14:07 UTC (permalink / raw)
To: Ron <ronljohnsonjr@gmail.com>; +Cc: pgsql-general@lists.postgresql.org
Greetings,
* Ron (ronljohnsonjr@gmail.com) wrote:
> On 8/19/19 5:40 AM, Shiwangini Shishulkar wrote:
> >We have scheduled postgres full backup on centos 7 machine. DB size is
> >around 66 GB. We observed while backup is running, postmaster CPU %
> >reaches to 90 - 100%,which results very strange behavior: that we are not
> >able to perform any DDL and DML on to the database during the time.
> >Please suggest a way to limit it's CPU utilization or else let us know how
> >we can access the database during the backup window. Please let us know on
> >priority since this is our prod database.
>
> Are you compressing the backup?
> How many threads are you running?
> How many CPUs on your system?
> What version of Postgres?
... What are you using to run the backup?
Thanks,
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: postmaster utilization
2019-08-19 10:40 postmaster utilization Shiwangini Shishulkar <shiwangini.shishulkar@webgility.com>
2019-08-19 11:01 ` Re: postmaster utilization Ron <ronljohnsonjr@gmail.com>
2019-08-19 14:07 ` Re: postmaster utilization Stephen Frost <sfrost@snowman.net>
@ 2019-08-20 04:53 ` Kyotaro Horiguchi <horikyota.ntt@gmail.com>
2019-08-20 14:19 ` Re: postmaster utilization Stephen Frost <sfrost@snowman.net>
0 siblings, 1 reply; 5+ messages in thread
From: Kyotaro Horiguchi @ 2019-08-20 04:53 UTC (permalink / raw)
To: sfrost@snowman.net; +Cc: ronljohnsonjr@gmail.com; pgsql-general@lists.postgresql.org
At Mon, 19 Aug 2019 10:07:30 -0400, Stephen Frost <sfrost@snowman.net> wrote in <20190819140730.GH16436@tamriel.snowman.net>
> Greetings,
>
> * Ron (ronljohnsonjr@gmail.com) wrote:
> > On 8/19/19 5:40 AM, Shiwangini Shishulkar wrote:
> > >We have scheduled postgres full backup on centos 7 machine. DB size is
> > >around 66 GB. We observed while backup is running, postmaster CPU %
> > >reaches to 90 - 100%,which results very strange behavior: that we are not
> > >able to perform any DDL and DML on to the database during the time.
> > >Please suggest a way to limit it's CPU utilization or else let us know how
> > >we can access the database during the backup window. Please let us know on
> > >priority since this is our prod database.
> >
> > Are you compressing the backup?
> > How many threads are you running?
> > How many CPUs on your system?
> > What version of Postgres?
>
> ... What are you using to run the backup?
It seems to have been reported as BUG #15961..
https://www.postgresql.org/message-id/15965-413bf5d18aaeface@postgresql.org
> PostgreSQL version: 11.4
> Operating system: CentOS Linux release 7.6.1810 (Core)
> pg_dump -U postgres -d wg -f wg.sql
regards.
--
Kyotaro Horiguchi
NTT Open Source Software Center
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: postmaster utilization
2019-08-19 10:40 postmaster utilization Shiwangini Shishulkar <shiwangini.shishulkar@webgility.com>
2019-08-19 11:01 ` Re: postmaster utilization Ron <ronljohnsonjr@gmail.com>
2019-08-19 14:07 ` Re: postmaster utilization Stephen Frost <sfrost@snowman.net>
2019-08-20 04:53 ` Re: postmaster utilization Kyotaro Horiguchi <horikyota.ntt@gmail.com>
@ 2019-08-20 14:19 ` Stephen Frost <sfrost@snowman.net>
0 siblings, 0 replies; 5+ messages in thread
From: Stephen Frost @ 2019-08-20 14:19 UTC (permalink / raw)
To: Kyotaro Horiguchi <horikyota.ntt@gmail.com>; +Cc: ronljohnsonjr@gmail.com; pgsql-general@lists.postgresql.org
Greetings,
* Kyotaro Horiguchi (horikyota.ntt@gmail.com) wrote:
> At Mon, 19 Aug 2019 10:07:30 -0400, Stephen Frost <sfrost@snowman.net> wrote in <20190819140730.GH16436@tamriel.snowman.net>
> > * Ron (ronljohnsonjr@gmail.com) wrote:
> > > On 8/19/19 5:40 AM, Shiwangini Shishulkar wrote:
> > > >We have scheduled postgres full backup on centos 7 machine. DB size is
> > > >around 66 GB. We observed while backup is running, postmaster CPU %
> > > >reaches to 90 - 100%,which results very strange behavior: that we are not
> > > >able to perform any DDL and DML on to the database during the time.
> > > >Please suggest a way to limit it's CPU utilization or else let us know how
> > > >we can access the database during the backup window. Please let us know on
> > > >priority since this is our prod database.
> > >
> > > Are you compressing the backup?
> > > How many threads are you running?
> > > How many CPUs on your system?
> > > What version of Postgres?
> >
> > ... What are you using to run the backup?
>
> It seems to have been reported as BUG #15961..
>
> https://www.postgresql.org/message-id/15965-413bf5d18aaeface@postgresql.org
>
> > PostgreSQL version: 11.4
> > Operating system: CentOS Linux release 7.6.1810 (Core)
> > pg_dump -U postgres -d wg -f wg.sql
Ah, then the pg_dump is clearly what's locking the tables against DDL.
That wouldn't impact DML though (unless, of course, a DDL was issued and
then blocked behind pg_dump, and then DML was attempted on the same
table as that would then be blocked behind the DDL).
There's not much help for that when you're taking logical backups,
unfortunately. Of course, you could take physical backups instead.
Thanks,
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2019-08-20 14:19 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-08-19 10:40 postmaster utilization Shiwangini Shishulkar <shiwangini.shishulkar@webgility.com>
2019-08-19 11:01 ` Ron <ronljohnsonjr@gmail.com>
2019-08-19 14:07 ` Stephen Frost <sfrost@snowman.net>
2019-08-20 04:53 ` Kyotaro Horiguchi <horikyota.ntt@gmail.com>
2019-08-20 14:19 ` Stephen Frost <sfrost@snowman.net>
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