Re: VACUUM memory management

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: VACUUM memory management
Дата
Msg-id CAM-w4HMwc=kKhd_y1MwfNWJwWG7dsPkrt2iVQjzQb=OfAr0eZw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: VACUUM memory management  (Ibrar Ahmed <ibrar.ahmad@gmail.com>)
Ответы Re: VACUUM memory management  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On Mon, 9 Dec 2019 at 14:03, Ibrar Ahmed <ibrar.ahmad@gmail.com> wrote:
> I'd
> actually argue that the segment size should be substantially smaller
> than 1 GB, like say 64MB; there are still some people running systems
> which are small enough that allocating 1 GB when we may need only 6
> bytes can drive the system into OOM."

I don't even see why you would allocated as much as 64MB. I would
think something around 1MB would be more sensible. So you might need
an array of segment pointers as long as a few thousand pointers, big
deal. We can handle repalloc on 8kB arrays pretty easily.

-- 
greg



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: log bind parameter values on error
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [Proposal] Level4 Warnings show many shadow vars