From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Glenn Pierce <glennpierce@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: performance of pg_upgrade "Copying user relation files"
Date: Wed, 2 Oct 2019 16:16:29 -0700
Message-ID: <a501a04b-e5a1-174c-cf71-35271c783e2c@aklaver.com> (raw)
In-Reply-To: <CAM5ipV8xf2AmDChfdnUiieONzyevDikyEnzLu_Ox=pGRJuux9A@mail.gmail.com>
References: <CAM5ipV8xf2AmDChfdnUiieONzyevDikyEnzLu_Ox=pGRJuux9A@mail.gmail.com>
On 10/2/19 3:30 PM, Glenn Pierce wrote:
> I have been trying to upgrade postgres 9.5 to 9.6 with pg_upgrade
>
> Everything seems to start fine but when pg_upgrade gets to "Copying
> user relation files"
> It takes ages to complete copying.
Adding to previous list:
4) Which pg_upgrade version did you use, 9.5 or 9.6?
>
> ie
> Each file like
>
> /var/lib/pgsql/9.5/data/base/24602/25140
> is 1G and taking ~5-10 minutes to copyand that directory is 223G of
> about 990 files
>
> After a couple of hours running pg_upgrade I had to give up.
>
> looking a iotop I was seeing
>
> 99% IO load caused by [md0_raid1]
>
> and only seeing pg_upgrade go to 99% every 3-4 seconds
>
> I had no other processes using io or high cpu.
>
> Has anyone got any pointers of what could be the issue ?
>
> Ps running cp on /var/lib/pgsql/9.5/data/base/24602/25140 to my home
> directory is instantaneous
>
> System is Centos 7
>
> Thanks
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, glennpierce@gmail.com
Subject: Re: performance of pg_upgrade "Copying user relation files"
In-Reply-To: <a501a04b-e5a1-174c-cf71-35271c783e2c@aklaver.com>
References: <CAM5ipV8xf2AmDChfdnUiieONzyevDikyEnzLu_Ox=pGRJuux9A@mail.gmail.com> <a501a04b-e5a1-174c-cf71-35271c783e2c@aklaver.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