Re: Sort memory not being released

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Sort memory not being released
Дата
Msg-id 12671.1055861139@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Sort memory not being released  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: Sort memory not being released  (Martijn van Oosterhout <kleptog@svana.org>)
Re: Sort memory not being released  ("Jim C. Nasby" <jim@nasby.net>)
Список pgsql-general
Martijn van Oosterhout <kleptog@svana.org> writes:
> For large allocations glibc tends to mmap() which does get unmapped. There's
> a threshold of 4KB I think. Ofcourse, thousands of allocations for a few
> bytes will never trigger it.

But essentially all our allocation traffic goes through palloc, which
bunches small allocations together.  In typical scenarios malloc will
only see requests of 8K or more, so we should be in good shape on this
front.

(Not that this is very relevant to Jim's problem, since he's not using
glibc...)

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Damn triggers and NEW
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: adddepend and partial indexes