Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754812AbbBKWah (ORCPT ); Wed, 11 Feb 2015 17:30:37 -0500 Received: from mail-qc0-f179.google.com ([209.85.216.179]:61688 "EHLO mail-qc0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753990AbbBKWaf (ORCPT ); Wed, 11 Feb 2015 17:30:35 -0500 Date: Wed, 11 Feb 2015 17:30:30 -0500 From: Tejun Heo 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 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: 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 Content-Length: 1131 Lines: 28 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 from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/