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 | 4408.1403136914@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: /proc/self/oom_adj is deprecated in newer Linux kernels (Gurjeet Singh <gurjeet@singh.im>) |
Ответы |
Re: /proc/self/oom_adj is deprecated in newer Linux kernels
|
Список | pgsql-hackers |
Gurjeet Singh <gurjeet@singh.im> writes: > On Tue, Jun 10, 2014 at 12:05 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote: >> If we're going to do this, I would say that we should also take the >> opportunity to get out from under the question of which kernel API >> we're dealing with. So perhaps a design like this: >> >> 1. If the environment variable PG_OOM_ADJUST_FILE is defined, it's >> the name of a file to write something into after forking. The typical >> value would be "/proc/self/oom_score_adj" or "/proc/self/oom_adj". >> If not set, nothing happens. >> >> 2. If the environment variable PG_OOM_ADJUST_VALUE is defined, that's >> the string we write, otherwise we write "0". > Please find attached the patch. It includes the doc changes as well. Applied with some editorialization. regards, tom lane
В списке pgsql-hackers по дате отправления: