From: Tejun Heo Subject: Re: [PATCH 3/3] memcg: simplify mem_cgroup_reclaim_iter Date: Tue, 11 Jun 2013 01:00:49 -0700 Message-ID: <20130611080049.GF22530@mtj.dyndns.org> References: <20130607005242.GB16160@htj.dyndns.org> <20130607073754.GA8117@dhcp22.suse.cz> <20130607232557.GL14781@mtj.dyndns.org> <20130610080208.GB5138@dhcp22.suse.cz> <20130610195426.GC12461@mtj.dyndns.org> <20130610204801.GA21003@dhcp22.suse.cz> <20130610231358.GD12461@mtj.dyndns.org> <20130611072743.GB24031@dhcp22.suse.cz> <20130611074404.GE22530@mtj.dyndns.org> <20130611075540.GD24031@dhcp22.suse.cz> 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=16HZNBU4ysA34X91WOuzFMzs4Ulk8XzFgRuuI2DDaW0=; b=uFWtPB5aviQOgNOZ/PZ1typIErSy2wjnNwB0aFRnkyByuB0mPR4xagWBdENngpxrVQ HPiTzCzEAYJ4UugdNucoAcONks29ve9QmY9p5AfIQlByuzaJnj9NTAnQdPzAbZz6tku8 zSzlIPj+JorBhgrsHqJAz78ulaDoPT01TTckw3sW4LrG5yPE3r7zLetQX6f9GuSW5rFF WXy+KJgi7pJFEOW1XP+Ntfxg8u2V9A7Ay4Mz2Fh60vd1GhJw2yRI7k60zr9nzl9QJa/f 1Sx8hh2ejvAaFUpqtetWTlxu7d8WQvWv/NMe3ysVs25BOzJYuk/BNDYPs5OqQVZcd+30 AIeA== Content-Disposition: inline In-Reply-To: <20130611075540.GD24031@dhcp22.suse.cz> Sender: owner-linux-mm@kvack.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Michal Hocko Cc: Johannes Weiner , bsingharora@gmail.com, cgroups@vger.kernel.org, linux-mm@kvack.org, lizefan@huawei.com Hello, On Tue, Jun 11, 2013 at 09:55:40AM +0200, Michal Hocko wrote: > > Anyways, I think we're getting too deep into details but one more > > thing, what do you mean by "non-NULL new cache"? > > If you replace cached memcg by a new (non-NULL) one then all the parents > up the hierarchy can reuse the same replacement and do not have to > search again. As finding the next one to visit is pretty cheap, it isn't likely to be a big difference but yeah we can definitely re-use the first non-NULL next for all further ancestors. Thanks. -- tejun -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org