From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vivek Goyal Subject: Re: [PATCH 2/6] blkcg: add blkg_[rw]stat->aux_cnt and replace cfq_group->dead_stats with it Date: Fri, 26 Jun 2015 09:27:02 -0400 Message-ID: <20150626132702.GA14803@redhat.com> References: <1435268337-1738-1-git-send-email-tj@kernel.org> <1435268337-1738-3-git-send-email-tj@kernel.org> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <1435268337-1738-3-git-send-email-tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Tejun Heo Cc: axboe-tSWWG44O7X1aa/9Udqfwiw@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, avanzini.arianna-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, kernel-team-b10kYP2dOMg@public.gmane.org On Thu, Jun 25, 2015 at 05:38:53PM -0400, Tejun Heo wrote: [..] > It's planned that the core stats will be moved to blkcg_gq, so we want > to move the mechanism for keeping track of the stats of dead children > from cfq to blkcg core. This patch adds blkg_[rw]stat->aux_cnt which > are atomic64_t's keeping track of auxiliary counts which are excluded > when reading local counts but included for recursive. Hi Tejun, So aux_cnt is atomic64_t as updation is not the hot path hence there is not much value in keeping it as per cpu? Thanks Vivek From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752729AbbFZN1M (ORCPT ); Fri, 26 Jun 2015 09:27:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42601 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752136AbbFZN1D (ORCPT ); Fri, 26 Jun 2015 09:27:03 -0400 Date: Fri, 26 Jun 2015 09:27:02 -0400 From: Vivek Goyal To: Tejun Heo Cc: axboe@kernel.dk, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, avanzini.arianna@gmail.com, kernel-team@fb.com Subject: Re: [PATCH 2/6] blkcg: add blkg_[rw]stat->aux_cnt and replace cfq_group->dead_stats with it Message-ID: <20150626132702.GA14803@redhat.com> References: <1435268337-1738-1-git-send-email-tj@kernel.org> <1435268337-1738-3-git-send-email-tj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1435268337-1738-3-git-send-email-tj@kernel.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 25, 2015 at 05:38:53PM -0400, Tejun Heo wrote: [..] > It's planned that the core stats will be moved to blkcg_gq, so we want > to move the mechanism for keeping track of the stats of dead children > from cfq to blkcg core. This patch adds blkg_[rw]stat->aux_cnt which > are atomic64_t's keeping track of auxiliary counts which are excluded > when reading local counts but included for recursive. Hi Tejun, So aux_cnt is atomic64_t as updation is not the hot path hence there is not much value in keeping it as per cpu? Thanks Vivek