From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932469AbXJPF0Y (ORCPT ); Tue, 16 Oct 2007 01:26:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754355AbXJPF0E (ORCPT ); Tue, 16 Oct 2007 01:26:04 -0400 Received: from smtp-out.google.com ([216.239.33.17]:63321 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932330AbXJPF0C (ORCPT ); Tue, 16 Oct 2007 01:26:02 -0400 DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=received:date:from:x-x-sender:to:cc:subject:in-reply-to: message-id:references:mime-version:content-type; b=cICXvzuU5TEYsRqFZ/BGLFgFf3VHEL5uBQi0n9cQRneAOEJaOe6COrqidZMKJOvA8 WhvULp7msVBGPZfaE25ug== Date: Mon, 15 Oct 2007 22:25:07 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Matt Mackall cc: Andrew Morton , linux-kernel@vger.kernel.org, Dave Hansen , Rusty Russell , Jeremy Fitzhardinge , Fengguang Wu Subject: Re: [PATCH 11/11] maps3: make page monitoring /proc file optional In-Reply-To: <12.290135367@selenic.com> Message-ID: References: <12.290135367@selenic.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 15 Oct 2007, Matt Mackall wrote: > Index: l/init/Kconfig > =================================================================== > --- l.orig/init/Kconfig 2007-10-14 13:35:07.000000000 -0500 > +++ l/init/Kconfig 2007-10-15 17:18:16.000000000 -0500 > @@ -571,6 +571,15 @@ config SLOB > > endchoice > > +config PROC_PAGE_MONITOR > + default y > + bool "Enable /proc page monitoring" if EMBEDDED && PROC_FS && MMU > + help > + Various /proc files exist to monitor process memory utilization: > + /proc/pid/smaps, /proc/pid/clear_refs, /proc/pid/pagemap, > + /proc/kpagecount, and /proc/kpageflags. Disabling these > + interfaces will reduce the size of the kernel by approximately 4kb. > + > endmenu # General setup > > config RT_MUTEXES It's probably better not to include the text size savings since it will most likely be outdated at some time in the future.