Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 8FDACB5DD68 for ; Fri, 16 Sep 2011 13:38:24 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 69684-01-8 for ; Fri, 16 Sep 2011 16:38:17 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id CBBD0B5DC6B for ; Fri, 16 Sep 2011 13:37:47 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p8GGbkTe003625; Fri, 16 Sep 2011 12:37:46 -0400 (EDT) To: Greg Stark cc: pgsql-hackers@postgresql.org Subject: Re: /proc/self/oom_adj is deprecated in newer Linux kernels In-reply-to: References: <29121.1316185073@sss.pgh.pa.us> Comments: In-reply-to Greg Stark message dated "Fri, 16 Sep 2011 16:46:34 +0100" Date: Fri, 16 Sep 2011 12:37:46 -0400 Message-ID: <3624.1316191066@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/798 X-Sequence-Number: 194987 Greg Stark writes: > On Fri, Sep 16, 2011 at 3:57 PM, Tom Lane wrote: >> Does anyone want >> to argue for doing something more complicated, and if so what exactly? > Well there's no harm trying to write to oom_score_adj and if that > fails with EEXISTS trying to write to oom_adj. Well, (1) what value are you going to write (they need to be different for the two files), and (2) the main point of the exercise, at present, is to avoid kernel log messages. I'm not sure that trying to create random files under /proc isn't going to draw bleats in the kernel log. regards, tom lane