pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dawid Kuroczko <qnex42@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: PL/pgSQL memory consumption?
Date: Fri, 22 Feb 2008 09:54:15 -0500
Message-ID: <3216.1203692055@sss.pgh.pa.us> (raw)
In-Reply-To: <758d5e7f0802220523x12a444ap679e51b990190ccc@mail.gmail.com>
References: <758d5e7f0802220523x12a444ap679e51b990190ccc@mail.gmail.com>

"Dawid Kuroczko" <qnex42@gmail.com> writes:
> I have recently found a nice utility called memstat (which shows how
> much of private
> (not shared)) memory each process uses.  What kind of surprised me was
> the amount
> of memory that is used by PL/pgSQL (one more reason not to provide it
> by default? ;-)).

Why should we put any credence whatsoever in these numbers?
I rather doubt that "memstat" knows anything about our palloc
mechanism, so I don't see how it could possibly give reliable
answers about how much memory one portion or another of Postgres
is using.

Having said that, it would be interesting to know exactly what it
*is* measuring.

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <3216.1203692055@sss.pgh.pa.us>
Permalink:  ../3216.1203692055@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3216.1203692055@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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, qnex42@gmail.com
  Subject: Re: PL/pgSQL memory consumption?
  In-Reply-To: <3216.1203692055@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