From: Tejun Heo Subject: Re: [PATCH 12/12] cfq-iosched: add hierarchical cfq_group statistics Date: Tue, 18 Dec 2012 11:21:55 -0800 Message-ID: <20121218192155.GQ1844@htj.dyndns.org> References: <1355524885-22719-1-git-send-email-tj@kernel.org> <1355524885-22719-13-git-send-email-tj@kernel.org> <20121218191117.GD24050@redhat.com> <20121218191425.GO1844@htj.dyndns.org> <20121218191854.GB25908@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=Fs5ndqjhmwgca3q+v6zcse1GpqVKlPqC2ewOw67zFZU=; b=LgvANfTAWfGs0MynRoIjxRqR48Es5Yguxmi0SYvbR/USFsoHADgVk70mKL3aL2gEQ8 YYihQSLJRUkENbnnZJwdaqebGadRqUbjA/lEgn9Di89DDSCrJXP7Ru5IaMR/WCPDDr1C ZeFAjxsFGJu9YXeWQGlDnvOngKitAEeTEXMyQ2zAXppyeUc5F6YwvdHR4HdGON36WQtq OY+kLd8laUQjaRjk/kA9lAi2TC4h8n5YdYwXHQaaiDm9PBW2Q9sBuxxBOm2S5UTmgSWD BYOy9+NZMuedkxofl4oBWAltO22HLy30TdI6PdpIK/ygDzprvGbsAt42BzG2uGViq/de RjIg== Content-Disposition: inline In-Reply-To: <20121218191854.GB25908-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Vivek Goyal Cc: axboe-tSWWG44O7X1aa/9Udqfwiw@public.gmane.org, ctalbott-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org, rni-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org, containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Tue, Dec 18, 2012 at 02:18:54PM -0500, Vivek Goyal wrote: > > Yeah, hmmm, maybe we should add another set of counters to carry stats > > from dead ones? Avoiding hierarchical accounting overhead in hot path > > while remembering by-gones shouldn't be that hard. Will work on that. > > So are you planning to migrate the stats to parent when a cgroup is being > deleted? That should make sure we don't do hierarhical update. Yeah, something like that. The current statistics being !hierarchical means that we need to keep them separate from the actual stats, so it'll end up with another set of stats. Kinda nasty but I don't see any better way out. Thanks. -- tejun