Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tb3Cb-007YRu-3s for pgsql-docs@arkaria.postgresql.org; Thu, 23 Jan 2025 19:49:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tb3Ca-003bFo-9g for pgsql-docs@arkaria.postgresql.org; Thu, 23 Jan 2025 19:49:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tb3CZ-003bFf-Vh for pgsql-docs@lists.postgresql.org; Thu, 23 Jan 2025 19:49:19 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tb3CX-0019BJ-2a for pgsql-docs@lists.postgresql.org; Thu, 23 Jan 2025 19:49:19 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 50NJnHbb216934; Thu, 23 Jan 2025 14:49:17 -0500 From: Tom Lane To: gibbsr@swebs.com cc: pgsql-docs@lists.postgresql.org Subject: Re: https://www.postgresql.org/docs/current/kernel-resources.html In-reply-to: <173764274875.1066.17835398570574540295@wrigleys.postgresql.org> References: <173764274875.1066.17835398570574540295@wrigleys.postgresql.org> Comments: In-reply-to PG Doc comments form message dated "Thu, 23 Jan 2025 14:32:28 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <216932.1737661757.1@sss.pgh.pa.us> Date: Thu, 23 Jan 2025 14:49:17 -0500 Message-ID: <216933.1737661757@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Doc comments form 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