Re: Built-in support for a memory consumption ulimit?

Поиск
Список
Период
Сортировка
От Noah Misch
Тема Re: Built-in support for a memory consumption ulimit?
Дата
Msg-id 20140620032435.GD1069299@tornado.leadboat.com
обсуждение исходный текст
Ответ на Re: Built-in support for a memory consumption ulimit?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Tue, Jun 17, 2014 at 04:39:51PM -0400, Tom Lane wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
> > We could do better by accounting for memory usage ourselves, inside
> > the memory-context system, but that'd probably impose some overhead we
> > don't have today.

> I wonder how practical it would be to forestall Noah's scenario by
> preallocating all the stack space we want before enabling the rlimit.

I think that's worth a closer look.  Compared to doing our own memory usage
tracking, it has the major advantage of isolating the added CPU overhead at
backend start.

-- 
Noah Misch
EnterpriseDB                                 http://www.enterprisedb.com



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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: idle_in_transaction_timeout
Следующее
От: Amit Langote
Дата:
Сообщение: Re: Proposal for CSN based snapshots