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

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: /proc/self/oom_adj is deprecated in newer Linux kernels
Date: 2011-09-18 14:19:02
Message-ID: 1316355543.12186.9.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dave Page 2011-09-18 14:45:27 Re: Is there really no interest in SQL Standard?
Previous Message Peter Eisentraut 2011-09-18 14:14:32 Re: Is there really no interest in SQL Standard?