From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qa0-f47.google.com (mail-qa0-f47.google.com [209.85.216.47]) by kanga.kvack.org (Postfix) with ESMTP id 749BD6B0032 for ; Wed, 11 Feb 2015 17:30:35 -0500 (EST) Received: by mail-qa0-f47.google.com with SMTP id v10so5052688qac.6 for ; Wed, 11 Feb 2015 14:30:35 -0800 (PST) Received: from mail-qa0-x233.google.com (mail-qa0-x233.google.com. [2607:f8b0:400d:c00::233]) by mx.google.com with ESMTPS id b9si2645465qce.45.2015.02.11.14.30.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Feb 2015 14:30:34 -0800 (PST) Received: by mail-qa0-f51.google.com with SMTP id i13so5006396qae.10 for ; Wed, 11 Feb 2015 14:30:34 -0800 (PST) Date: Wed, 11 Feb 2015 17:30:30 -0500 From: Tejun Heo Subject: Re: [RFC] Making memcg track ownership per address_space or anon_vma Message-ID: <20150211223030.GB12728@htj.duckdns.org> References: <20150207143839.GA9926@htj.dyndns.org> <20150211021906.GA21356@htj.duckdns.org> <20150211203359.GF21356@htj.duckdns.org> <20150211214650.GA11920@htj.duckdns.org> <20150211220530.GA12728@htj.duckdns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Konstantin Khlebnikov Cc: Greg Thelen , Konstantin Khlebnikov , Johannes Weiner , Michal Hocko , Cgroups , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Jan Kara , Dave Chinner , Jens Axboe , Christoph Hellwig , Li Zefan , Hugh Dickins Hello, On Thu, Feb 12, 2015 at 02:15:29AM +0400, Konstantin Khlebnikov wrote: > Well, ok. Even if shared writes are rare whey should be handled somehow > without relying on kupdate-like writeback. If memcg has a lot of dirty pages This only works iff we consider those cases to be marginal enough to be handle them in a pretty ghetto way. > but their inodes are accidentially belong to wrong wb queues when tasks in > that memcg shouldn't stuck in balance-dirty-pages until somebody outside > acidentially writes this data. That's all what I wanted to say. But, right, yeah, corner cases around this could be nasty if writeout interval is set really high. I don't think it matters for the default 5s interval at all. Maybe what we need is queueing a delayed per-wb work w/ the default writeout interval when dirtying a foreign inode. I'll think more about it. 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