pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: valgog@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #12183: Memory leak in long running sessions
Date: Mon, 08 Dec 2014 14:02:00 -0500
Message-ID: <31927.1418065320@sss.pgh.pa.us> (raw)
In-Reply-To: <20141208184618.2526.62775@wrigleys.postgresql.org>
References: <20141208184618.2526.62775@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

valgog@gmail.com writes:
> We experience a situations, that some of the sessions (in our case the
> oldest ones) do not give the memory back.

You have not shown any evidence of an actual problem.  In particular,
if you are looking at ps RSS output and claiming that there's a leak,
you are probably simply wrong.  The output shown here looks like normal
behavior of the RSS stat: it does not count shared memory pages for a
particular process until that process has touched the individual pages.
So the usual behavior of long-lived PG processes is that the reported
RSS starts small and gradually grows until it includes all of shared
memory ... and that looks like what you've got here, especially since
the larger RSS numbers are pretty similar to the VSZ numbers which are
nearly common across all the backends.

If you had some individual processes with RSS/VSZ greatly exceeding
your shared memory allocation, then I'd believe you had a leak problem.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (5+ messages)  latest in thread

Message-ID: <31927.1418065320@sss.pgh.pa.us>
Permalink:  ../31927.1418065320@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/31927.1418065320@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, valgog@gmail.com
  Subject: Re: BUG #12183: Memory leak in long running sessions
  In-Reply-To: <31927.1418065320@sss.pgh.pa.us>
  References: <20141208184618.2526.62775@wrigleys.postgresql.org> <31927.1418065320@sss.pgh.pa.us>

* 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