Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJfWL-0006N3-4S for pgsql-general@arkaria.postgresql.org; Mon, 05 Nov 2018 14:06:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gJfWI-0002TM-He for pgsql-general@arkaria.postgresql.org; Mon, 05 Nov 2018 14:06:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJfWG-0002T9-Um for pgsql-general@lists.postgresql.org; Mon, 05 Nov 2018 14:06:22 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJfWD-0002ph-KO for pgsql-general@postgresql.org; Mon, 05 Nov 2018 14:06:19 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id B84C922BB7; Mon, 5 Nov 2018 09:06:16 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 05 Nov 2018 09:06:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=G qlA60w5Ggg/0TsFL96v+l4NoFNNjVrem3sL14kngfY=; b=j/H24rHGrQImXFeSV PB/tVwrTt9+S3NR8+32qw4Usc67wVZq0NOiP3nKwemJhDi/7qXbnKfhtVDw1MBrJ an8x3i9MMxkrNGJLmZuxPVQJrHQ2JXVKMNdM6yDs6o/oaYXtqEu1O0sInwnbusAA inprQ8T8b9B3Zw/aIQcB7Smzzeu3D59KQPiC5lpDjlJRlCSr+d46//AmsQGYTend dRIVo2X21g2Spjz2YoqdLNmbhnIH/9RAGg1Kn9P5Q7Se1dk5ibK6PPMIkMqIlYQ3 vFVLinkm7zH3V+hVcbbteZVdONGVtQs+riEfc/LVUR8K0ag4xzq/EsNvXyVe4e12 wpD9Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=GqlA60w5Ggg/0TsFL96v+l4NoFNNjVrem3sL14kng fY=; b=SVuLmQYk8kii937z/8NM+SpZJoJJPNQqSwougFCZA3Q4cmHtvFT8Q1TL9 3Y57Px3C9whIB9wXhDk5QKO9bBB8EHOdECbgTshDtSHeRnVsMCiJNgZqyjl3x4OS WMo+KZdnPoyNSa10lxMhR3LkIXaYi3KOA3TK2BXK69spC335tvkRmlZf6zm2cGGM bt/N4YmJyC5xGIt/QLUf2wRWQ5SIpQgNnomwz5WnNiotXPNXfWgC1dIJaIctOG/D 8wZnBuqd3PR58N8mspCyuAQ+JB13JXCTIKdIwTgloPfxV7Ant1DeXAqho2lAJ64a x1IA5aiFk08Suz/aSK3+XgN2tYIQQ== X-ME-Sender: X-ME-Proxy: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id 60E51E427A; Mon, 5 Nov 2018 09:06:15 -0500 (EST) Subject: Re: Trouble Upgrading Postgres To: Charles Martin , Tom Lane , pgsql-general References: <529c7e29-38eb-0b22-379a-f78e638b97bd@aklaver.com> <18968e03-6342-a01e-3423-04642e15390b@aklaver.com> <10885f27-4b59-6e93-38f7-a03c0b96e906@aklaver.com> <0a915be8-3ae0-0dab-cfd0-e2138060b5ae@aklaver.com> From: Adrian Klaver Message-ID: Date: Mon, 5 Nov 2018 06:06:14 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 > 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 > -- Adrian Klaver adrian.klaver@aklaver.com