pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgreSQL.org
Subject: Re: /proc/self/oom_adj is deprecated in newer Linux kernels
Date: Sun, 18 Sep 2011 17:19:02 +0300
Message-ID: <1316355543.12186.9.camel@vanquo.pezone.net> (raw)
In-Reply-To: <29121.1316185073@sss.pgh.pa.us>
References: <29121.1316185073@sss.pgh.pa.us>

On fre, 2011-09-16 at 10:57 -0400, Tom Lane wrote:
> So it looks like it behooves us to cater for oom_score_adj in the
> future.  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.

There are lots of reasons why that won't work: backports, forward ports,
derivatives, custom kernels, distribution upgrades, virtual hosting.

ISTM that we could at least query the currently used kernel version.




view thread (66+ messages)  latest in thread

Message-ID: <1316355543.12186.9.camel@vanquo.pezone.net>
Permalink:  ../1316355543.12186.9.camel@vanquo.pezone.net/
Also on:    postgresql.org/message-id/1316355543.12186.9.camel@vanquo.pezone.net

 · 

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: peter_e@gmx.net, tgl@sss.pgh.pa.us
  Subject: Re: /proc/self/oom_adj is deprecated in newer Linux kernels
  In-Reply-To: <1316355543.12186.9.camel@vanquo.pezone.net>

* 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