From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Wells Oliver <wells.oliver@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: 13.4 on RDS, SSL SYSCALL EOF on restore
Date: Fri, 8 Oct 2021 19:45:59 -0300
Message-ID: <202110082245.4wq5lie5euyx@alvherre.pgsql> (raw)
In-Reply-To: <CAOC+FBU=X5g129058p9=L2VvRNpsQ2ue95BLvn72JyKdwrHxJg@mail.gmail.com>
On 2021-Oct-08, Wells Oliver wrote:
> Dug out some more logging:
> 2021-10-08 20:35:08 UTC::@:[12682]:LOG: server process (PID 3970) was terminated by signal 9: Killed
> 2021-10-08 20:35:08 UTC::@:[12682]:DETAIL: Failed process was running: CREATE INDEX ...
So what's happening here is that the instance is running out of RAM
while creating some index, and the kernel is killing the process. I
would probably blame the combination of shared_buffers=4GB with
maintenance_work_mem=2GB, together with the instance's total RAM.
I would suggest to keep an eye on memory usage (if there is such a
thing) in the RDS console; with some experimentation, reducing
maintenace_work_mem as Bruce adviced and/or shared_buffers, you can
probably find some combination that doesn't take as long as with the
default params but is able to complete.
--
Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: alvherre@alvh.no-ip.org, wells.oliver@gmail.com, tgl@sss.pgh.pa.us, bruce@momjian.us
Subject: Re: 13.4 on RDS, SSL SYSCALL EOF on restore
In-Reply-To: <202110082245.4wq5lie5euyx@alvherre.pgsql>
* 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