contrib/start-scripts/linux failing on RHEL 6 with ~9.3 because of missing oom_score_adj

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: contrib/start-scripts/linux failing on RHEL 6 with ~9.3 because of missing oom_score_adj
Date: 2015-04-22 00:56:48
Message-ID: CAB7nPqQcCSBDAWO45hH0FWDcHi_HcxHmyMLukiMzaDcd0W06sA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi all,

Support for oom_score_adj has been added in kernel 2.6.36, a version
newer than 2.6.32-71 which is embedded in RHEL6, so the startup script
contrib/start-scripts/linux would fail because it does not check for
the presence of oom_score_adj before adding the value of OOM_SCORE_ADJ
to it.

We could argue that this is not directly a problem of PG itself as one
could just copy the startup script from the code tree to create its
own service script and fix it, still I am getting the feeling that we
should show a better logic with something like the patch attached.
Thoughts?
--
Michael

Attachment Content-Type Size
20150422_startup_oom_fix.patch text/x-diff 1.6 KB

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2015-04-22 03:15:34 Re: Installton Error
Previous Message Kevin Grittner 2015-04-21 21:16:01 Re: BUG #12990: Missing pg_multixact/members files (appears to have wrapped, then truncated)