Re: PostgreSQL oom_adj postmaster process to -17

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PostgreSQL oom_adj postmaster process to -17
Дата
Msg-id 4273.1344018772@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: PostgreSQL oom_adj postmaster process to -17  (Radovan Jablonovsky <radovan.jablonovsky@replicon.com>)
Список pgsql-admin
Radovan Jablonovsky <radovan.jablonovsky@replicon.com> writes:
> In usual load there are not much pressure on memory, but it is possible to
> have all clients start using heavy reports. They are valid requests and
> could consume all memory. In this border and not likely but possible
> scenario it could be useful to let OOM killer to kill client's
> processes/connections but leave PostgreSQL system processes (postmaster,
> writer, stat, log, streaming, ...) excluded  from reach of OOM killer.

The code already supports excluding the postmaster itself from OOM kills
while letting its children be subject to them.  Being selective about
which children are subject is pointless, though: if any child is kill
-9'd, we have to zap the rest and restart, because there is no way to be
sure that the victim left shared memory in a consistent state.

            regards, tom lane

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

Предыдущее
От: Laszlo Nagy
Дата:
Сообщение: Re: Messed up time zones
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: PostgreSQL oom_adj postmaster process to -17