Re: excessive amounts of consumed memory (RSS), triggering OOM killer

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: excessive amounts of consumed memory (RSS), triggering OOM killer
Дата
Msg-id 547CFA47.2060607@dunslane.net
обсуждение исходный текст
Ответ на excessive amounts of consumed memory (RSS), triggering OOM killer  (Tomas Vondra <tv@fuzzy.cz>)
Ответы Re: excessive amounts of consumed memory (RSS), triggering OOM killer  (Tomas Vondra <tv@fuzzy.cz>)
Список pgsql-hackers
On 12/01/2014 05:39 PM, Tomas Vondra wrote:
> Hi all,
>
> while working on the patch decreasing amount of memory consumed by
> array_agg [1], I've ran into some strange OOM issues. Reproducing them
> using the attached SQL script is rather simple.
>
>    [1] https://commitfest.postgresql.org/action/patch_view?id=1652
>
> At first I thought there's some rare hidden memory leak, but I'm pretty
> sure that's not the case. I've even put some explicit counters into
> aset.c counting allocated/freed blocks, and it seems to be working just
> fine (and matching the context tree perfectly). So no memory leak.


Doesn't this line:
   TopMemoryContext: 136614192 total in 16678 blocks; 136005936 free (500017 chunks); 608256 used


look pretty suspicious?


cheers

andrew



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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: excessive amounts of consumed memory (RSS), triggering OOM killer
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: excessive amounts of consumed memory (RSS), triggering OOM killer