From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f71.google.com (mail-wm0-f71.google.com [74.125.82.71]) by kanga.kvack.org (Postfix) with ESMTP id 0A32D6B007E for ; Thu, 9 Jun 2016 08:18:06 -0400 (EDT) Received: by mail-wm0-f71.google.com with SMTP id k184so20914006wme.3 for ; Thu, 09 Jun 2016 05:18:05 -0700 (PDT) Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com. [74.125.82.65]) by mx.google.com with ESMTPS id u7si7545975wjy.146.2016.06.09.05.18.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jun 2016 05:18:04 -0700 (PDT) Received: by mail-wm0-f65.google.com with SMTP id n184so10238647wmn.1 for ; Thu, 09 Jun 2016 05:18:04 -0700 (PDT) Date: Thu, 9 Jun 2016 14:18:02 +0200 From: Michal Hocko Subject: Re: [PATCH 07/10] mm: base LRU balancing on an explicit cost model Message-ID: <20160609121802.GD24777@dhcp22.suse.cz> References: <20160606194836.3624-1-hannes@cmpxchg.org> <20160606194836.3624-8-hannes@cmpxchg.org> <20160608125137.GH22570@dhcp22.suse.cz> <20160608161605.GF6727@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160608161605.GF6727@cmpxchg.org> Sender: owner-linux-mm@kvack.org List-ID: To: Johannes Weiner Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Rik van Riel , Mel Gorman , Andrea Arcangeli , Andi Kleen , Tim Chen , kernel-team@fb.com On Wed 08-06-16 12:16:05, Johannes Weiner wrote: > On Wed, Jun 08, 2016 at 02:51:37PM +0200, Michal Hocko wrote: > > On Mon 06-06-16 15:48:33, Johannes Weiner wrote: > > > Rename struct zone_reclaim_stat to struct lru_cost, and move from two > > > separate value ratios for the LRU lists to a relative LRU cost metric > > > with a shared denominator. > > > > I just do not like the too generic `number'. I guess cost or price would > > fit better and look better in the code as well. Up you though... > > Yeah, I picked it as a pair, numerator and denominator. But as Minchan > points out, denom is superfluous in the final version of the patch, so > I'm going to remove it and give the numerators better names. > > anon_cost and file_cost? Yes that is much more descriptive and easier to grep for. I didn't propose that because I thought you would want to preserve the array definition for an easier code to update them. -- Michal Hocko SUSE Labs -- 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