Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754057AbZJPSde (ORCPT ); Fri, 16 Oct 2009 14:33:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751556AbZJPSde (ORCPT ); Fri, 16 Oct 2009 14:33:34 -0400 Received: from smtp-out.google.com ([216.239.45.13]:20210 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751335AbZJPSdd (ORCPT ); Fri, 16 Oct 2009 14:33:33 -0400 DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=date:from:x-x-sender:to:cc:subject:in-reply-to:message-id: references:user-agent:mime-version:content-type:x-system-of-record; b=M18OWYsJg+mBM6WnBlj4JFf7K+m+7iCkD8h2w+pBnOUpaACnPR6BsQY0rPAgkqS1F vKwl8/CJZQcIY/EhhwDjQ== Date: Fri, 16 Oct 2009 11:33:28 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Christoph Lameter 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.00 (DEB 882 2007-12-20) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-System-Of-Record: true Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 792 Lines: 19 On Fri, 16 Oct 2009, Christoph Lameter wrote: > > So writing to any file clears all counters? The documentation does not say > so. > No, it just clears that particular statistic. On a semi-related topic, it would have been nice to isolate all statistic files to its own directory: /sys/kernel/slab/kmalloc-256/stats/..., for example. It would have made collecting (and now clearing) all statistics much easier since userspace wouldn't need a predefined list of stat file names to scan. I wonder if Pekka would allow them to be moved... -- 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/