pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-hackers@postgresql.org
Subject: Re: /proc/self/oom_adj is deprecated in newer Linux kernels
Date: Tue, 12 Jun 2012 12:37:38 -0400
Message-ID: <18434.1339519058@sss.pgh.pa.us> (raw)
In-Reply-To: <29121.1316185073@sss.pgh.pa.us>
References: <29121.1316185073@sss.pgh.pa.us>

I was reminded today that we still haven't done anything about this:

Tom Lane <tgl@sss.pgh.pa.us> writes:
> While testing 9.1 RPMs on Fedora 15 (2.6.40 kernel), I notice
> messages like these in the kernel log:
> Sep 11 13:38:56 rhl kernel: [  415.308092] postgres (18040): /proc/18040/oom_adj is deprecated, please use /proc/18040/oom_score_adj instead.

At this point there are no shipping Fedora versions that don't emit this
gripe, and F15 is even about to go EOL.

The previous discussion thread at
http://archives.postgresql.org/pgsql-hackers/2011-09/msg00794.php
went off into the weeds of what was in my opinion over-design.
I still think it's sufficient to do what I suggested initially:

> ... The simplest, least risky change that I can think of is to
> copy-and-paste the relevant #ifdef code block in fork_process.c.
> If we do that, then it would be up to the packager whether to #define
> LINUX_OOM_ADJ or LINUX_OOM_SCORE_ADJ or both depending on the behavior
> he wants.

and would like to squeeze that into 9.2 so that we're only a year late
and not two years late in responding to this issue :-(.

Objections?

			regards, tom lane



view thread (66+ messages)  latest in thread

Message-ID: <18434.1339519058@sss.pgh.pa.us>
Permalink:  ../18434.1339519058@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18434.1339519058@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: /proc/self/oom_adj is deprecated in newer Linux kernels
  In-Reply-To: <18434.1339519058@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox