Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754279Ab0HXCLn (ORCPT ); Mon, 23 Aug 2010 22:11:43 -0400 Received: from mga11.intel.com ([192.55.52.93]:44190 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754175Ab0HXCLk (ORCPT ); Mon, 23 Aug 2010 22:11:40 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.56,260,1280732400"; d="scan'208";a="599514989" Date: Tue, 24 Aug 2010 10:11:36 +0800 From: Wu Fengguang To: Michael Rubin Cc: KOSAKI Motohiro , Peter Zijlstra , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-mm@kvack.org" , "jack@suse.cz" , "riel@redhat.com" , "akpm@linux-foundation.org" , "david@fromorbit.com" , "npiggin@kernel.dk" , "hch@lst.de" , "axboe@kernel.dk" Subject: Re: [PATCH 4/4] writeback: Reporting dirty thresholds in /proc/vmstat Message-ID: <20100824021136.GA9254@localhost> References: <20100821054808.GA29869@localhost> <20100824100943.F3B6.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1381 Lines: 38 > Right now we don't mount all of debugfs at boot time. We have not done > the work to verify its safe in our environment. It's mostly a nit. You work discreetly, that's a good thing. Note that most sub-directories under debugfs can be turned off in kconfig. > Also I was under the impression that debugfs was intended more for > kernel devs while /proc and /sys was intended for application > developers. I guess the keyword here is "debugging/diagnosing". Think about /debug/tracing. DirtyThresh seems like the same stuff. > >> 3) Full system counters are easier to handle the juggling of removable > >> storage where these numbers will appear and disappear due to being > >> dynamic. > > This is the biggie to me. The idea is to get a complete view of the > system's writeback behaviour over time. With systems with hot plug > devices, or many many drives collecting that view gets difficult. Sorry for giving a wrong example. Hope this one is better: $ cat /debug/bdi/default/stats [...] DirtyThresh: 1838904 kB BackgroundThresh: 919452 kB [...] It's a trick to avoid messing with real devices :) Thanks, Fengguang -- 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/