pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Kurt Roeckx <kurt@roeckx.be>
To: Andres Freund <andres@anarazel.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16707: Memory leak
Date: Tue, 10 Nov 2020 20:44:46 +0100
Message-ID: <20201110194446.GA566206@roeckx.be> (raw )
In-Reply-To: <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 >
<20201110173948.GA562081@roeckx.be >
I took a copy of /proc/$pid/smaps about 2 hours apart, and a diff
shows:
-5604495f1000-5604886fd000 rw-p 00000000 00:00 0 [heap]
-Size: 1033264 kB
+5604495f1000-56048cc1c000 rw-p 00000000 00:00 0 [heap]
+Size: 1104044 kB
KernelPageSize: 4 kB
MMUPageSize: 4 kB
-Rss: 1030296 kB
-Pss: 1030296 kB
+Rss: 1101288 kB
+Pss: 1101288 kB
Shared_Clean: 0 kB
Shared_Dirty: 0 kB
Private_Clean: 0 kB
-Private_Dirty: 1030296 kB
-Referenced: 998992 kB
-Anonymous: 1030296 kB
+Private_Dirty: 1101288 kB
+Referenced: 1067220 kB
+Anonymous: 1101288 kB
LazyFree: 0 kB
AnonHugePages: 0 kB
ShmemPmdMapped: 0 kB
So the heap grew with 70 MB.
The new results from status:
VmPeak: 5928312 kB
VmSize: 5928056 kB
VmLck: 0 kB
VmPin: 0 kB
VmHWM: 5772336 kB
VmRSS: 5772084 kB
RssAnon: 1485980 kB
RssFile: 27472 kB
RssShmem: 4258632 kB
VmData: 1483776 kB
VmStk: 132 kB
VmExe: 5388 kB
VmLib: 68200 kB
VmPTE: 11512 kB
VmSwap: 0 kB
HugetlbPages: 0 kB
Both seem to say that the heap grew with 70 MB in about 2 hours.
With 10 processes growing at this rate, it grows with about 8 GB a
day.
Kurt
view thread (21+ messages) latest in thread
Message-ID: <20201110194446.GA566206@roeckx.be>
Permalink: ../20201110194446.GA566206@roeckx.be/
Also on: postgresql.org/message-id/20201110194446.GA566206@roeckx.be
copy link · copy postgr.es
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: kurt@roeckx.be, andres@anarazel.de, tgl@sss.pgh.pa.us, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16707: Memory leak
In-Reply-To: <20201110194446.GA566206@roeckx.be>
* 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