Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6027451ybi; Wed, 29 May 2019 01:31:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCmeQmw+q++4bksHLnTwM7BgebiYLMmAM17CLl0uaddktcZCbbmrAME7Oph8aGfkpDMmlX X-Received: by 2002:a17:902:27a8:: with SMTP id d37mr31095456plb.150.1559118705018; Wed, 29 May 2019 01:31:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559118705; cv=none; d=google.com; s=arc-20160816; b=jon+pXp8u/5z9Rk8psNxwPk8ytClbKVQAdr4ZavlTFhho1BIOB2YnhwDHUX+KOLDVe /8/k8zeJqqxeTWtteo8DutsOLGfjd3LxekeXRTqI5kiQVXj+pdJhLKLKl/rNveKepfvJ WL5GdjbjxB7e4iZctyz2ywdBmFBKu5QR64TMp7b9QvcIV5D8lat9i+5Vt/NU76omqsMq CXXuQcMRa6fnGMAsszi772+0SIAbBg/oEp/hh8XnV4hLHFhGV+jnGwyKaFV1dU7VI3Qs x+estLC8jRwopVs5w6lKC1UIylpE2uO6hL9gT9BOSljB0ThUmU50Y2sCcERRO5bvAtzQ 23HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=66z9CXn36BXlIrCgiNA17P4fMDdbt/qtJa35gb5lgsc=; b=d7LuR1tB3dtGIXVBXPTHhV5wMWqdUFrZUlAhiFnJoyRUheAKEtWt+doE3atzLOs0+X 86PKu0Bwp5/rQofRxeDDzjENYfmiEfDdkfddpKLI+KPSgtj50L4D/HLTJF+0E83kKz6x tJ2scaQZSdolSOGDiDfPOpkqk4xwZTs7VAE2kRPk+TUO60jRPTpR5S8ogTOwO74HVqJY 7KSMA2kfFhDs0psGJ3GMvJxtlzENKrFiz8gqD458Sd4u9BftlwhMsgSPnRi1YwWBSkSK mVxROlE2AJS4WusKGyp00qRx8HO4KDmL8zAi0SLoz3YErm2pLHJGSc/XgAIvmUpiGGX0 kY2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bx7si5696522pjb.93.2019.05.29.01.31.28; Wed, 29 May 2019 01:31:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726186AbfE2IaP (ORCPT + 99 others); Wed, 29 May 2019 04:30:15 -0400 Received: from relay.sw.ru ([185.231.240.75]:42042 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725911AbfE2IaP (ORCPT ); Wed, 29 May 2019 04:30:15 -0400 Received: from [172.16.25.169] by relay.sw.ru with esmtp (Exim 4.91) (envelope-from ) id 1hVtyM-0001yM-CE; Wed, 29 May 2019 11:30:10 +0300 Subject: Re: [PATCH] mm: Fix recent_rotated history To: akpm@linux-foundation.org, daniel.m.jordan@oracle.com, mhocko@suse.com, hannes@cmpxchg.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <155905972210.26456.11178359431724024112.stgit@localhost.localdomain> From: Kirill Tkhai Message-ID: <0354e97d-ecc5-f150-7b36-410984c666db@virtuozzo.com> Date: Wed, 29 May 2019 11:30:09 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <155905972210.26456.11178359431724024112.stgit@localhost.localdomain> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Missed Johannes :( CC On 28.05.2019 19:09, Kirill Tkhai wrote: > Johannes pointed that after commit 886cf1901db9 > we lost all zone_reclaim_stat::recent_rotated > history. This commit fixes that. > > Fixes: 886cf1901db9 "mm: move recent_rotated pages calculation to shrink_inactive_list()" > Reported-by: Johannes Weiner > Signed-off-by: Kirill Tkhai > --- > mm/vmscan.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/mm/vmscan.c b/mm/vmscan.c > index d9c3e873eca6..1d49329a4d7d 100644 > --- a/mm/vmscan.c > +++ b/mm/vmscan.c > @@ -1953,8 +1953,8 @@ shrink_inactive_list(unsigned long nr_to_scan, struct lruvec *lruvec, > if (global_reclaim(sc)) > __count_vm_events(item, nr_reclaimed); > __count_memcg_events(lruvec_memcg(lruvec), item, nr_reclaimed); > - reclaim_stat->recent_rotated[0] = stat.nr_activate[0]; > - reclaim_stat->recent_rotated[1] = stat.nr_activate[1]; > + reclaim_stat->recent_rotated[0] += stat.nr_activate[0]; > + reclaim_stat->recent_rotated[1] += stat.nr_activate[1]; > > move_pages_to_lru(lruvec, &page_list); > >