Re: 9.5: Better memory accounting, towards memory-bounded HashAgg

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: 9.5: Better memory accounting, towards memory-bounded HashAgg
Дата
Msg-id 1409303753.27388.8.camel@jeff-desktop
обсуждение исходный текст
Ответ на Re: 9.5: Better memory accounting, towards memory-bounded HashAgg  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: 9.5: Better memory accounting, towards memory-bounded HashAgg  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Fri, 2014-08-22 at 12:34 -0400, Robert Haas wrote:
> Still doesn't look good here.  On the same PPC64 machine I've been
> using for testing:

I have a new approach to the patch which is to call a callback at each
block allocation and child contexts inherit the callback from their
parents. The callback could be defined to simply dereference and
increment its argument, which would mean block allocations anywhere in
the hierarchy are incrementing the same variable, avoiding the need to
traverse the hierarchy.

I've made some progress I think (thanks to both Robert and Tomas), but I
have a bit more microoptimization and testing to do. I'll mark it
"returned with feedback" for now, though if I find the time I'll do more
testing to see if the performance concerns are fully addressed.

Regards,Jeff Davis





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

Предыдущее
От: arhipov
Дата:
Сообщение: Re: Why data of timestamptz does not store value of timezone passed to it?
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: implement subject alternative names support for SSL connections