Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jxeMq-0004Rj-EV for pgsql-admin@arkaria.postgresql.org; Mon, 20 Jul 2020 22:34:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jxeMp-0007D4-26 for pgsql-admin@arkaria.postgresql.org; Mon, 20 Jul 2020 22:34:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jxeMo-0007Cv-Qd for pgsql-admin@lists.postgresql.org; Mon, 20 Jul 2020 22:34:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jxeMi-00055j-Cl for pgsql-admin@postgresql.org; Mon, 20 Jul 2020 22:34:37 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 06KMYPjR736812; Mon, 20 Jul 2020 18:34:25 -0400 From: Tom Lane To: jian xu cc: MichaelDBA , Scott Ribe , Laurenz Albe , "pgsql-admin@postgresql.org" Subject: Re: checkpoint process use too much memory In-reply-to: References: <5193b00d175f2e06a171ba375f1ef723e1700de4.camel@cybertec.at> ,, Comments: In-reply-to jian xu message dated "Mon, 20 Jul 2020 21:33:55 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <736810.1595284465.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 20 Jul 2020 18:34:25 -0400 Message-ID: <736811.1595284465@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk jian xu writes: > we are seeing this issue again, the checkpoint process is eating u= p all the memory, > based on the htop, the checkpointer process has > VIRT: 103G > RES: 103G > SHR: 4099M hmmm ... > my pg version is 10.3 , Really the *first* thing you ought to do is update to current (10.13) and see if the problem is still there. But if it is, maybe collecting a memory context map in that process would be informative: https://wiki.postgresql.org/wiki/Developer_FAQ#Examining_backend_memory_us= e Note you may need a debug build for that recipe to work. regards, tom lane