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 1kcOsO-0007OZ-5p for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Nov 2020 08:19: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 1kcOsM-0007Mo-Li for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Nov 2020 08:19:38 +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 1kcOsM-0007Mh-FV for pgsql-bugs@lists.postgresql.org; Tue, 10 Nov 2020 08:19:38 +0000 Received: from excelsior.roeckx.be ([2a05:7300:0:100::3]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kcOsK-0005hE-CL for pgsql-bugs@lists.postgresql.org; Tue, 10 Nov 2020 08:19:37 +0000 Received: from intrepid.roeckx.be (localhost [127.0.0.1]) by excelsior.roeckx.be (Postfix) with ESMTP id CA531A8A0062; Tue, 10 Nov 2020 08:19:34 +0000 (UTC) Received: by intrepid.roeckx.be (Postfix, from userid 1000) id A55A21FE0DC8; Tue, 10 Nov 2020 09:19:34 +0100 (CET) Date: Tue, 10 Nov 2020 09:19:34 +0100 From: Kurt Roeckx To: Andres Freund Cc: Tom Lane , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16707: Memory leak Message-ID: <20201110081934.GA546675@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201110081120.GF391173@roeckx.be> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 Kurt