Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753317Ab2BWQEA (ORCPT ); Thu, 23 Feb 2012 11:04:00 -0500 Received: from filtteri2.pp.htv.fi ([213.243.153.185]:39637 "EHLO filtteri2.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751851Ab2BWQD7 (ORCPT ); Thu, 23 Feb 2012 11:03:59 -0500 Subject: Re: [PATCH] oom: add sysctl to enable slab memory dump From: Pekka Enberg To: Rafael Aquini Cc: David Rientjes , linux-mm@kvack.org, Randy Dunlap , Christoph Lameter , Matt Mackall , Rik van Riel , Josef Bacik , linux-kernel@vger.kernel.org In-Reply-To: <20120223152226.GA2014@x61.redhat.com> References: <20120222115320.GA3107@x61.redhat.com> <20120223152226.GA2014@x61.redhat.com> Content-Type: text/plain; charset="ISO-8859-1" Date: Thu, 23 Feb 2012 18:03:56 +0200 Message-ID: <1330013036.13624.78.camel@jaguar> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1115 Lines: 25 On Thu, 2012-02-23 at 13:22 -0200, Rafael Aquini wrote: > > I think this also gives another usecase for a possible /dev/mem_notify in > > the future: userspace could easily poll on an eventfd and wait for an oom > > to occur and then cat /proc/slabinfo to attain all this. In other words, > > if we had this functionality (which I think we undoubtedly will in the > > future), this patch would be obsoleted. > > Great! So, why not letting the time tell us if this feature will be obsoleted > or not? I'd rather have this patch obsoleted by another one proven better, than > just stay still waiting for something that might, or might not, happen in the > future. Sure. I'm not really convinced such an ABI would be a full replacement for this patch. There's certainly advantages to having all this visible in syslog even if we'd have such a mechanism. Pekka -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/