pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Charles Martin <ssappeals@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Trouble Upgrading Postgres
Date: Mon, 5 Nov 2018 06:06:14 -0800
Message-ID: <e4343efe-7cf9-ed0a-7846-a1e958d45bb5@aklaver.com> (raw)
In-Reply-To: <CAFw6=U0QrHd2NfL=Cteif8EVCjrC_LHKW74ku+D=v0wx4bpJuA@mail.gmail.com>
References: <CAFw6=U2oz9rTF0qa0LFMg91bu=hdisfu2-xXU1==D7yBif+2uw@mail.gmail.com>
	<529c7e29-38eb-0b22-379a-f78e638b97bd@aklaver.com>
	<CAFw6=U09NDUULsrtchBBLxA0z-nCqteUEhB_KODbKk9cymqeJg@mail.gmail.com>
	<cafc1eb5-b54c-cb31-b085-5b7ff243e273@aklaver.com>
	<CAFw6=U1S3-HzC2Bf+X7aZtFU4DKjZAWbztkscTnw6_TzNkueZg@mail.gmail.com>
	<18968e03-6342-a01e-3423-04642e15390b@aklaver.com>
	<CAFw6=U04tmKYe-78uUchSpjPeXnWd+vhOt_PozwJpRf2Fwc6QA@mail.gmail.com>
	<10885f27-4b59-6e93-38f7-a03c0b96e906@aklaver.com>
	<CAFw6=U2oUBZB+iTa7J6-CMtZtL-kw7XQCeWgjtK5jR5zqkw2VQ@mail.gmail.com>
	<0a915be8-3ae0-0dab-cfd0-e2138060b5ae@aklaver.com>
	<CAFw6=U0QrHd2NfL=Cteif8EVCjrC_LHKW74ku+D=v0wx4bpJuA@mail.gmail.com>

On 11/5/18 5:56 AM, Charles Martin wrote:
> Tom said:
> 
>  >That's kind of odd: a COPY shouldn't really consume very much working
>  >memory.  I suspect that much of the process's apparent VM consumption may
>  >be shared buffers ... what have you got shared_buffers set to on the old
>  >server?  If it's more than half a GB or so, maybe reducing it would help.
> 
> This is not a VM, but hardware.

Tom was referring to this from your previous post:

(postmaster) total-vm:3068900kB,

where vm(VM) is Virtual Memory:

https://stackoverflow.com/questions/18845857/what-does-anon-rss-and-total-vm-mean#22326766

So what is your shared_buffers:

https://www.postgresql.org/docs/10/static/runtime-config-resource.html

set to?

> 
> Adrian said:
> 
>  >In addition to the other suggestions, what is the exact pg_dump command
>  >you are using?
> 
> The last time:
> 
> [postgres@mandj tmp]$ pg_dump martinandjones > 
> /mnt/4tbB/pgbackup/2018-11-02/mandj.bak
> 
> 
> 
> 
> On Sun, Nov 4, 2018 at 8:16 PM Adrian Klaver <adrian.klaver@aklaver.com 
> <mailto:adrian.klaver@aklaver.com>> wrote:
> 
>     On 11/4/18 2:55 PM, Charles Martin wrote:
>      > Yep, you called it:
>      >
>      > Nov  2 20:30:45 localhost kernel: Out of memory: Kill process 30438
>      > (postmaster) score 709 or sacrifice child
>      > Nov  2 20:30:45 localhost kernel: Killed process 30438, UID 26,
>      > (postmaster) total-vm:3068900kB, anon-rss:1695392kB,
>     file-rss:1074692kB
>      >
>      > So it's running out of memory when trying to dump this table. The
>     "old"
>      > server has 4GB of ram, the "new" server 20GB.
>      >
> 
>     In addition to the other suggestions, what is the exact pg_dump command
>     you are using?
> 
> 
>     -- 
>     Adrian Klaver
>     adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (35+ messages)  latest in thread

Message-ID: <e4343efe-7cf9-ed0a-7846-a1e958d45bb5@aklaver.com>
Permalink:  ../e4343efe-7cf9-ed0a-7846-a1e958d45bb5@aklaver.com/
Also on:    postgresql.org/message-id/e4343efe-7cf9-ed0a-7846-a1e958d45bb5@aklaver.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 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, ssappeals@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: Trouble Upgrading Postgres
  In-Reply-To: <e4343efe-7cf9-ed0a-7846-a1e958d45bb5@aklaver.com>
  References: <CAFw6=U2oz9rTF0qa0LFMg91bu=hdisfu2-xXU1==D7yBif+2uw@mail.gmail.com> <529c7e29-38eb-0b22-379a-f78e638b97bd@aklaver.com> <CAFw6=U09NDUULsrtchBBLxA0z-nCqteUEhB_KODbKk9cymqeJg@mail.gmail.com> <cafc1eb5-b54c-cb31-b085-5b7ff243e273@aklaver.com> <CAFw6=U1S3-HzC2Bf+X7aZtFU4DKjZAWbztkscTnw6_TzNkueZg@mail.gmail.com> <18968e03-6342-a01e-3423-04642e15390b@aklaver.com> <CAFw6=U04tmKYe-78uUchSpjPeXnWd+vhOt_PozwJpRf2Fwc6QA@mail.gmail.com> <10885f27-4b59-6e93-38f7-a03c0b96e906@aklaver.com> <CAFw6=U2oUBZB+iTa7J6-CMtZtL-kw7XQCeWgjtK5jR5zqkw2VQ@mail.gmail.com> <0a915be8-3ae0-0dab-cfd0-e2138060b5ae@aklaver.com> <CAFw6=U0QrHd2NfL=Cteif8EVCjrC_LHKW74ku+D=v0wx4bpJuA@mail.gmail.com> <e4343efe-7cf9-ed0a-7846-a1e958d45bb5@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