From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Koczan <pjkoczan@gmail.com>
Cc: Dawid Kuroczko <qnex42@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: PL/pgSQL memory consumption?
Date: Sat, 23 Feb 2008 23:16:31 -0500
Message-ID: <29390.1203826591@sss.pgh.pa.us> (raw)
In-Reply-To: <4544e0330802231917x2045466s735989836698df2@mail.gmail.com>
References: <758d5e7f0802220523x12a444ap679e51b990190ccc@mail.gmail.com>
<3216.1203692055@sss.pgh.pa.us>
<4544e0330802231917x2045466s735989836698df2@mail.gmail.com>
"Peter Koczan" <pjkoczan@gmail.com> writes:
> Correct me if I'm wrong, as well, but I believe that Linux (and
> probably other modern Unices) does code-sharing, meaning that separate
> processes referring to the same code/libraries will refer to the same
> copy in physical memory.
> So, even though each process is seeing 40 MB of libpgsql, there's
> likely only 1 copy in physical memory. So, the total memory
> consumption in the system from this library is 40 MB, not
> 40*num_processes MB.
plpgsql.so is not 40MB ... on my machines it's well under 1MB. Anyway
the OP specifically stated he was not counting shared text segments.
So there's something pretty weird about these numbers.
regards, tom lane
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, pjkoczan@gmail.com, qnex42@gmail.com
Subject: Re: PL/pgSQL memory consumption?
In-Reply-To: <29390.1203826591@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