From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423369AbcFHQGO (ORCPT ); Wed, 8 Jun 2016 12:06:14 -0400 Received: from gum.cmpxchg.org ([85.214.110.215]:58630 "EHLO gum.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423053AbcFHQGM (ORCPT ); Wed, 8 Jun 2016 12:06:12 -0400 Date: Wed, 8 Jun 2016 12:06:06 -0400 From: Johannes Weiner To: Minchan Kim Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Rik van Riel , Mel Gorman , Andrea Arcangeli , Andi Kleen , Michal Hocko , Tim Chen , kernel-team@fb.com Subject: Re: [PATCH 07/10] mm: base LRU balancing on an explicit cost model Message-ID: <20160608160606.GE6727@cmpxchg.org> References: <20160606194836.3624-1-hannes@cmpxchg.org> <20160606194836.3624-8-hannes@cmpxchg.org> <20160608081421.GC28620@bbox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160608081421.GC28620@bbox> User-Agent: Mutt/1.6.1 (2016-04-27) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 08, 2016 at 05:14:21PM +0900, Minchan Kim wrote: > On Mon, Jun 06, 2016 at 03:48:33PM -0400, Johannes Weiner wrote: > > @@ -249,15 +249,10 @@ void rotate_reclaimable_page(struct page *page) > > } > > } > > > > -static void update_page_reclaim_stat(struct lruvec *lruvec, > > - int file, int rotated, > > - unsigned int nr_pages) > > +void lru_note_cost(struct lruvec *lruvec, bool file, unsigned int nr_pages) > > { > > - struct zone_reclaim_stat *reclaim_stat = &lruvec->reclaim_stat; > > - > > - reclaim_stat->recent_scanned[file] += nr_pages; > > - if (rotated) > > - reclaim_stat->recent_rotated[file] += nr_pages; > > + lruvec->balance.numer[file] += nr_pages; > > + lruvec->balance.denom += nr_pages; > > balance.numer[0] + balance.number[1] = balance.denom > so we can remove denom at the moment? You're right, it doesn't make sense to keep that around anymore. I'll remove it. Thanks!