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

From Michael Paquier
Subject contrib/start-scripts/linux failing on RHEL 6 with ~9.3 because of missing oom_score_adj
Date
Msg-id CAB7nPqQcCSBDAWO45hH0FWDcHi_HcxHmyMLukiMzaDcd0W06sA@mail.gmail.com
Whole thread Raw
Responses Re: contrib/start-scripts/linux failing on RHEL 6 with ~9.3 because of missing oom_score_adj  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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

pgsql-bugs by date:

Previous
From: Kevin Grittner
Date:
Subject: Re: BUG #12990: Missing pg_multixact/members files (appears to have wrapped, then truncated)
Next
From: Michael Paquier
Date:
Subject: Re: Installton Error