Re: /proc/self/oom_adj is deprecated in newer Linux kernels

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: /proc/self/oom_adj is deprecated in newer Linux kernels
Дата
Msg-id 4592.1316193917@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: /proc/self/oom_adj is deprecated in newer Linux kernels  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы [PATCH] Use new oom_score_adj without a new compile-time constant
Список pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Now the problem is that we have defined the LINUX_OOM_ADJ symbol as
> meaning the value we're going to write.  Maybe this wasn't the best
> choice.  I mean, it's very flexible, but it doesn't seem to offer any
> benefit over a plain boolean choice.

> Is your proposal to create a new LINUX_OOM_SCORE_ADJ cpp symbol with the
> same semantics?

Yes, that's what I was thinking.  We could avoid that if we were going
to hard-wire a decision that zero is the thing to write, but I see no
reason to place such a restriction on users.  Who's to say they might
not want backends to adopt some other value?
        regards, tom lane


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: /proc/self/oom_adj is deprecated in newer Linux kernels
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Improve lseek scalability v3