Re: PL/pgSQL memory consumption?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PL/pgSQL memory consumption?
Дата
Msg-id 29390.1203826591@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: PL/pgSQL memory consumption?  ("Peter Koczan" <pjkoczan@gmail.com>)
Список pgsql-admin
"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

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Peter Koczan"
Дата:
Сообщение: Re: PL/pgSQL memory consumption?
Следующее
От: "Tena Sakai"
Дата:
Сообщение: Re: 8.3.0 postinstallation trouble