From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: [PATCH] cgroups: Do not show inactive devices in cgroups statistics Date: Wed, 26 Jun 2013 18:23:04 -0700 Message-ID: <20130627012304.GG4536@htj.dyndns.org> References: <1372274770-30679-1-git-send-email-anatol.pomozov@gmail.com> <20130626204540.GA4536@htj.dyndns.org> <20130626210820.GA17564@redhat.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=is+yMHdAtjcxLwz1zVEsVAGchUAwNhF8QlaevYv7lRc=; b=SbFqqvaFPT5wuGUWYMVfQrIsuEFWHBM2qGOc0ETTQ9jnuHzMyS3fOxMprgq7iRFCfT 6S6H1+8qd1w249pW89emANmZ1Kvw1c39+pL8qnb4VZ9Ul9hYjgMNQhewtuq2eAqXI2GZ HwV2skba/7mTGzgV20i7zhN+UlKi0uVWjNmiYMuhqMmoWFErWk9w3MBeyKSV7a/Dquu6 pTXfftPbOEbE2zxC1iNvM6ati7DHLErshWCPasyZp1CRI11pib29EbOKAh6MUvoeHobJ anDhoNs4jUt0OH26eYxzWRBF9VjunKkpKW67bqBZRVLBFs1wlG0GNt3GpJjkhz1mIOmy heBg== Content-Disposition: inline In-Reply-To: Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Anatol Pomozov Cc: Vivek Goyal , Cgroups , Jens Axboe Hello, On Wed, Jun 26, 2013 at 05:37:38PM -0700, Anatol Pomozov wrote: > Bottom line: when we set weight for a device then it creates cfq_group > and initializes device stats with zero. Later that zero stat is shown > even if no activity happened on the device. Both CFQ and our custom IO > scheduler have this problem. And because we write set weight for all > devices in all cgroups we endup with a lot of zero useless stats. > > What is the right fix in this situation? Yeah, I think yours is fine. You're just configuring each blkg during init. Please just update the u64 case and repost. Thanks! -- tejun