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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Greg Stark <stark(at)mit(dot)edu>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: /proc/self/oom_adj is deprecated in newer Linux kernels
Date: 2011-09-16 16:37:46
Message-ID: 3624.1316191066@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Greg Stark <stark(at)mit(dot)edu> writes:
> On Fri, Sep 16, 2011 at 3:57 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Does anyone want
>> to argue for doing something more complicated, and if so what exactly?

> Well there's no harm trying to write to oom_score_adj and if that
> fails with EEXISTS trying to write to oom_adj.

Well, (1) what value are you going to write (they need to be different
for the two files), and (2) the main point of the exercise, at present,
is to avoid kernel log messages. I'm not sure that trying to create
random files under /proc isn't going to draw bleats in the kernel log.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2011-09-16 17:17:35 Re: /proc/self/oom_adj is deprecated in newer Linux kernels
Previous Message Greg Stark 2011-09-16 15:46:34 Re: /proc/self/oom_adj is deprecated in newer Linux kernels