Re: Preventing OOM kills

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Preventing OOM kills
Дата
Msg-id BANLkTikGEq2Gji8UQXS4p-F9eb_EoucCXw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Preventing OOM kills  (Andrej <andrej.groups@gmail.com>)
Список pgsql-general
On Tue, May 24, 2011 at 6:50 PM, Andrej <andrej.groups@gmail.com> wrote:
> On 25 May 2011 12:32, Yang Zhang <yanghatespam@gmail.com> wrote:
>> PG tends to be picked on by the Linux OOM killer, so lately we've been
>> forcing the OOM killer to kill other processes first with this script:
>>
>> while true; do
>>  for i in `pgrep postgres`; do
>>    echo -17 > /proc/$i/oom_adj
>>  done
>>  sleep 60
>> done
>>
>> Is there a Better Way?  Thanks in advance.
>
> Add more RAM?  Look at tunables for other processes on
> the machine?  At the end of the day making the kernel shoot
> anything out of despair shouldn't be the done thing.

I thought that setting vm.overcommit_memory=2 stopped the OOM killer.

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

Предыдущее
От: Andrej
Дата:
Сообщение: Re: Preventing OOM kills
Следующее
От: Devrim GÜNDÜZ
Дата:
Сообщение: Re: Preventing OOM kills