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 1kcXch-0004Q7-DA for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Nov 2020 17:40:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kcXcg-0004kT-9z for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Nov 2020 17:40:02 +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 1kcXcg-0004kJ-4Y for pgsql-bugs@lists.postgresql.org; Tue, 10 Nov 2020 17:40:02 +0000 Received: from excelsior.roeckx.be ([195.234.45.115]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kcXcd-0001hM-Tb for pgsql-bugs@lists.postgresql.org; Tue, 10 Nov 2020 17:40:01 +0000 Received: from intrepid.roeckx.be (localhost [127.0.0.1]) by excelsior.roeckx.be (Postfix) with ESMTP id 0F2C3A8A010D; Tue, 10 Nov 2020 17:39:49 +0000 (UTC) Received: by intrepid.roeckx.be (Postfix, from userid 1000) id 92F521FE0DC8; Tue, 10 Nov 2020 18:39:48 +0100 (CET) Date: Tue, 10 Nov 2020 18:39:48 +0100 From: Kurt Roeckx To: Andres Freund Cc: Tom Lane , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16707: Memory leak Message-ID: <20201110173948.GA562081@roeckx.be> References: <16707-f5df308978a55bf8@postgresql.org> <1999972.1604957673@sss.pgh.pa.us> <20201109220329.GC391173@roeckx.be> <2002012.1604960437@sss.pgh.pa.us> <20201110043127.sfkyvvjqy7x3er5k@alap3.anarazel.de> <20201110081120.GF391173@roeckx.be> <20201110081934.GA546675@roeckx.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201110081934.GA546675@roeckx.be> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Nov 10, 2020 at 09:19:34AM +0100, Kurt Roeckx wrote: > On Tue, Nov 10, 2020 at 09:11:20AM +0100, Kurt Roeckx wrote: > > On Mon, Nov 09, 2020 at 08:31:27PM -0800, Andres Freund wrote: > > > As this is on a halfway recent linux, I suggest doing something like > > > > > > $ grep ^Rss /proc/$pid/status > > > RssAnon: 6664 kB > > > RssFile: 69512 kB > > > RssShmem: 15788 kB > > > > RssAnon: 1197064 kB > > RssFile: 27420 kB > > RssShmem: 4248052 kB > > Maybe this is useful: > $ grep kB /proc/10000/status > VmPeak: 5654956 kB > VmSize: 5637004 kB > VmLck: 0 kB > VmPin: 0 kB > VmHWM: 5479104 kB > VmRSS: 5472668 kB > RssAnon: 1197196 kB > RssFile: 27420 kB > RssShmem: 4248052 kB > VmData: 1192724 kB > VmStk: 132 kB > VmExe: 5388 kB > VmLib: 68200 kB > VmPTE: 10932 kB > VmSwap: 0 kB > HugetlbPages: 0 kB The same thing, about 9 hours later: VmPeak: 5882112 kB VmSize: 5857276 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 5722668 kB VmRSS: 5697940 kB RssAnon: 1414988 kB RssFile: 27472 kB RssShmem: 4255480 kB VmData: 1412996 kB VmStk: 132 kB VmExe: 5388 kB VmLib: 68200 kB VmPTE: 11372 kB VmSwap: 0 kB HugetlbPages: 0 kB Kurt