Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753767AbZJQUtw (ORCPT ); Sat, 17 Oct 2009 16:49:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753572AbZJQUtw (ORCPT ); Sat, 17 Oct 2009 16:49:52 -0400 Received: from smtp2.ultrahosting.com ([74.213.174.253]:42375 "EHLO smtp.ultrahosting.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752440AbZJQUtv (ORCPT ); Sat, 17 Oct 2009 16:49:51 -0400 Date: Sat, 17 Oct 2009 16:41:59 -0400 (EDT) From: Christoph Lameter X-X-Sender: cl@gentwo.org To: David Rientjes cc: Pekka Enberg , linux-kernel@vger.kernel.org Subject: Re: [patch] slub: allow stats to be cleared In-Reply-To: Message-ID: References: User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1107 Lines: 27 On Sat, 17 Oct 2009, David Rientjes wrote: > On Fri, 16 Oct 2009, Christoph Lameter wrote: > > > > No, it just clears that particular statistic. > > > > Ahh. Yes I mis-scanned the loop there. Would it not be better to reset all > > counters using some trigger file? Its a bit difficult to reset them all > > with this patch. > > > > Pekka seems willing to look at a patch that moves all statistic files to > /sys/kernel/slab/cache/stats, so it should make both collecting and now > clearing stats very easy without the addition of another file. I think we should move the stats regardless of that issue. I'd also like to be able to just do a single echo to clear the all stats instead of everyone trying to improvise something to touch all files. Its highly unlikely that one only wants to zero individual counters. One way to reset them all would suffice. -- 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/