From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753894AbbBKUeG (ORCPT ); Wed, 11 Feb 2015 15:34:06 -0500 Received: from mail-qc0-f182.google.com ([209.85.216.182]:49261 "EHLO mail-qc0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751782AbbBKUeE (ORCPT ); Wed, 11 Feb 2015 15:34:04 -0500 Date: Wed, 11 Feb 2015 15:33:59 -0500 From: Tejun Heo To: Greg Thelen Cc: 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: <20150211203359.GF21356@htj.duckdns.org> References: <20150205131514.GD25736@htj.dyndns.org> <20150205222522.GA10580@htj.dyndns.org> <20150206141746.GB10580@htj.dyndns.org> <20150207143839.GA9926@htj.dyndns.org> <20150211021906.GA21356@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 Hello, Greg. On Wed, Feb 11, 2015 at 10:28:44AM -0800, Greg Thelen wrote: > This seems good. I assume that blkcg writeback would query > corresponding memcg for dirty page count to determine if over > background limit. And balance_dirty_pages() would query memcg's dirty Yeah, available memory to the matching memcg and the number of dirty pages in it. It's gonna work the same way as the global case just scoped to the cgroup. > page count to throttle based on blkcg's bandwidth. Note: memcg > doesn't yet have dirty page counts, but several of us have made > attempts at adding the counters. And it shouldn't be hard to get them > merged. Can you please post those? So, cool, we're in agreement. Working on it. It shouldn't take too long, hopefully. Thanks. -- tejun From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: [RFC] Making memcg track ownership per address_space or anon_vma Date: Wed, 11 Feb 2015 15:33:59 -0500 Message-ID: <20150211203359.GF21356@htj.duckdns.org> References: <20150205131514.GD25736@htj.dyndns.org> <20150205222522.GA10580@htj.dyndns.org> <20150206141746.GB10580@htj.dyndns.org> <20150207143839.GA9926@htj.dyndns.org> <20150211021906.GA21356@htj.duckdns.org> 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=Sadr7cIwd9D4EJUM75Na2fDtUZys3CNhciQiQu74SBw=; b=DKuRRtslrFfRXgxTE6ewo5TTxZsx2lFqftmCXin7D27p2f2hS0UzJcYl71MrxOVda8 vAVpovD1zVv0y73/FqN1cD2SB90PGhJM2AkKweY9dO9R/6M09/weRX9je+aKW9TWKO6Y cDstnSvFDUTJRJ5FW/GZrJMJ9u+tSpsWbxOxi76cY8nTgInLruxnl38pKZthmjl3OJVb mPHo4Sp+LRwgb2KPp0s5lir1uTh17fNYQUVyzF1r3yX9Spy6aRoekSwWYJuemG7ELG2t qrmyEdK5e3JCXX68TcDK0/YiOps7rlzopvkl4nOZqk1sI9N227leFcPyKKTCAHAHNOGJ 3i7Q== Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Greg Thelen Cc: 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, Greg. On Wed, Feb 11, 2015 at 10:28:44AM -0800, Greg Thelen wrote: > This seems good. I assume that blkcg writeback would query > corresponding memcg for dirty page count to determine if over > background limit. And balance_dirty_pages() would query memcg's dirty Yeah, available memory to the matching memcg and the number of dirty pages in it. It's gonna work the same way as the global case just scoped to the cgroup. > page count to throttle based on blkcg's bandwidth. Note: memcg > doesn't yet have dirty page counts, but several of us have made > attempts at adding the counters. And it shouldn't be hard to get them > merged. Can you please post those? So, cool, we're in agreement. Working on it. It shouldn't take too long, hopefully. 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