Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X2KGu-00074m-Mj for pgsql-hackers@arkaria.postgresql.org; Wed, 02 Jul 2014 13:08:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X2KGu-00055e-4Q for pgsql-hackers@arkaria.postgresql.org; Wed, 02 Jul 2014 13:08:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X2KGr-0004zX-6V for pgsql-hackers@postgresql.org; Wed, 02 Jul 2014 13:08:21 +0000 Received: from tex.lwn.net ([70.33.254.29] helo=vena.lwn.net) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1X2KGm-00058F-3Z for pgsql-hackers@postgresql.org; Wed, 02 Jul 2014 13:08:19 +0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by vena.lwn.net (Postfix) with ESMTP id 16521154003C; Wed, 2 Jul 2014 07:08:12 -0600 (MDT) Date: Wed, 2 Jul 2014 09:08:10 -0400 From: Jonathan Corbet To: Robert Haas Cc: Christoph Berg , Tom Lane , Gurjeet Singh , Andres Freund , Peter Eisentraut , PGSQL Hackers Subject: Re: /proc/self/oom_adj is deprecated in newer Linux kernels Message-ID: <20140702090810.73c5572d@lwn.net> In-Reply-To: References: <20140610153347.GM8406@alap3.anarazel.de> <31348.1402415537@sss.pgh.pa.us> <31652.1402416356@sss.pgh.pa.us> <4408.1403136914@sss.pgh.pa.us> <16883.1403538769@sss.pgh.pa.us> <17054.1403542164@sss.pgh.pa.us> <20140701122244.GD15590@msg.df7cb.de> Organization: LWN.net X-Mailer: Claws Mail 3.10.0 (GTK+ 2.24.22; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Tue, 1 Jul 2014 15:57:25 -0400 Robert Haas wrote: > Of course, we have no guarantee that the Linux kernel guys won't > change this again. Apparently "we don't break userspace" is a > somewhat selectively-enforced principle. It's selectively enforced in that kernel developers don't (and can't) scan the world for software that might break. OTOH, if somebody were to respond to a proposed change by saying "this breaks PostgreSQL," I would be amazed if the change were to be merged in that form. In other words, it's important to scream. There were concerns during the last round of messing with the OOM logic, but nobody pointed to something that actually broke. I predict that somebody will certainly try to rewrite the OOM code again in the future. The nature of that code is such that it is never going to work as well as people would like. But if application developers make it clear that they are dependent on the current interface working, kernel developers will be constrained to keep it working. jon -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers