pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Pryzby <pryzby@telsasoft.com>
To: Ogden Brash <info@litika.com>
Cc: pgsql-performance@lists.postgresql.org
Subject: Re: Some observations on very slow pg_restore operations
Date: Fri, 4 Oct 2019 01:03:00 -0500
Message-ID: <20191004060300.GA11241@telsasoft.com> (raw)
In-Reply-To: <CAFCR_K35nhd3FxEuDsFsu9rQDHEEYxeRm0J-KFDF+jVMODSJgQ@mail.gmail.com>
References: <CAFCR_K35nhd3FxEuDsFsu9rQDHEEYxeRm0J-KFDF+jVMODSJgQ@mail.gmail.com>

What is the state of KSM/THP?  Did you try disabling them ?  I've seen these
can cause high iowait (although that was a virtual environment).  It would be
interesting to see vmstat output.
tail /sys/kernel/mm/ksm/run /sys/kernel/mm/transparent_hugepage/khugepaged/defrag /sys/kernel/mm/transparent_hugepage/enabled /sys/kernel/mm/transparent_hugepage/defrag                                                           
https://www.postgresql.org/message-id/20170718180152.GE17566%40telsasoft.com

I realize the postgres params don't seem related to the difference between
local/remote/NFS, but did you see all these ?
https://www.postgresql.org/docs/current/populate.html

Justin





view thread (4+ messages)

Message-ID: <20191004060300.GA11241@telsasoft.com>
Permalink:  ../20191004060300.GA11241@telsasoft.com/
Also on:    postgresql.org/message-id/20191004060300.GA11241@telsasoft.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: pryzby@telsasoft.com, info@litika.com, pgsql-performance@lists.postgresql.org
  Subject: Re: Some observations on very slow pg_restore operations
  In-Reply-To: <20191004060300.GA11241@telsasoft.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