agora inbox for pgsql-docs@postgresql.org
help / color / mirror / Atom feedFrom: Tom Lane <tgl@sss.pgh.pa.us>
To: gibbsr@swebs.com
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: https://www.postgresql.org/docs/current/kernel-resources.html
Date: Thu, 23 Jan 2025 14:49:17 -0500
Message-ID: <216933.1737661757@sss.pgh.pa.us> (raw)
In-Reply-To: <173764274875.1066.17835398570574540295@wrigleys.postgresql.org>
References: <173764274875.1066.17835398570574540295@wrigleys.postgresql.org>
PG Doc comments form <noreply@postgresql.org> writes:
> I believe, that the export of PG_OOM_ADJUST_FILE should not point to the
> file that the postmaster uses, but should be for example:
> export PG_OOM_ADJUST_FILE=/proc/self/oom_score_adj_child
> As if the example is blindly followed, then postmaster version of the file
> would be updated and become a candidate to be killed.
I don't think so. In the first place, you misunderstand what
this variable does: it is only consulted by postmaster child
processes not the postmaster itself. In the second place,
"/proc/self/oom_score_adj_child" isn't universal (it does not
exist on any of the Red-Hat-based distros I checked).
If it were universal and had the semantics that I guess it means from
the name, we could perhaps implement this feature differently and more
simply. But it's not, and I don't see a lot of value in supporting
two different implementations.
regards, tom lane
view thread (2+ messages)
Message-ID: <216933.1737661757@sss.pgh.pa.us>
Permalink: ../216933.1737661757@sss.pgh.pa.us/
Also on: postgresql.org/message-id/216933.1737661757@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-docs@postgresql.org
Cc: tgl@sss.pgh.pa.us, gibbsr@swebs.com, pgsql-docs@lists.postgresql.org
Subject: Re: https://www.postgresql.org/docs/current/kernel-resources.html
In-Reply-To: <216933.1737661757@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox