Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6379209ybi; Wed, 29 May 2019 07:03:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxI+ehu/LkHX5TTNZzqp/C33CpgJ8HeXenx+V8owMygeyJqw8zTdEnWWsFlMk+GA2qcFE0f X-Received: by 2002:a17:90a:ff11:: with SMTP id ce17mr13032761pjb.128.1559138623627; Wed, 29 May 2019 07:03:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559138623; cv=none; d=google.com; s=arc-20160816; b=qvk9R1UeaHhXOlMO+2qYvnSLJoWKGG70tQL8C6EFN/zyQccdrxsq5E56RTxdeNj2Cw idhBGqAYHSHK8v8xNsLMeZA7t3ApPAN83FxdOwYX4W1b/TxWu7gDZyEsBl+aglugQKAK biA4e52neEZJvbisC2n6h+htkHHE0jTX9IcXfjQR9JLl7ZL+9vp8KaW6VU2cEGVa5sZf bGQo2hlHo3i3XGpiobjgIO6VN/HRbvfIvPIPPgllCZ2rF2Is31AiK9sB2jOggV60vL2M 1h+fjWHp6g+ypD1IWebGB5/7ZZU66EPEPP4nmRnGEYNF91GJtsXHg0mk42esIqcZU598 kZog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=096L/LOXEdmc+XaWi2V/0dCL3u92z1sdlldyNO1mdgI=; b=nUi2c60cZZAi20WqJmZ2QUnVhb4samJ3GSotHPsIKoKnJkVzZitUTg7l7sMtKCErHc iwJ7Ed4GkSPUuUMIqYROoKXWSnwqDgDVSva5qmJvMJzGfWk1pH3AGr7VGb/2RG7/Fp87 p8YwdcoMX6629Uv9w+gO8Rtrmw42xTqoqu8CJsebRjvcElr0LOLEFx8Nu5FtZTrfAzgV 7INWTfper+rhjuZfAIzfyTwzs+TsTx2h9GuIowPSA3wgZmPOaBsqcNO2WEPrAML0/o+Z 9anZPzkjudxVGlSkQLYfCBd1wJGeb8N8Dxq4gsM5mH1EYTaK51eLLfCeHi4lGYGckjjC L09Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=nMlg+I8J; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d15si11329471pgm.386.2019.05.29.07.03.21; Wed, 29 May 2019 07:03:43 -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; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=nMlg+I8J; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727499AbfE2OBV (ORCPT + 99 others); Wed, 29 May 2019 10:01:21 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:39114 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726889AbfE2OBV (ORCPT ); Wed, 29 May 2019 10:01:21 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x4TDrJA7001159; Wed, 29 May 2019 14:01:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2018-07-02; bh=096L/LOXEdmc+XaWi2V/0dCL3u92z1sdlldyNO1mdgI=; b=nMlg+I8J1a0BUCwqzV37xbUI5/URaP1WCX6i4ybMyd2pIT5QV/ccJEJGoB8N2X4Vg5Tz Wc2y5oa4ocs5lGXdDZE6hHEmfm4jpAUNYiZ/dlkl4spLqRe1QwiSQC4w3lMbwKO18Wuy U7e3yBLQmyf/5Yd540pZEL5T6gQ0olmU2OTLtr3OJkLXKvYShLe1ja3Ewd3oLNb36NOK RyBvaQ7gfrXKRDWcPkTF5QmQ25+dbFT9bsj/uNvod2xON8nY31ZUsKQ5j/84uoPjv9yD 8AmYvTV7IMhZX3S2LhCWRmGayuH8lUKTVBB8sEmR/QeElO+WwjzMVDjRsk1vlxv+dCjz wQ== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2130.oracle.com with ESMTP id 2spu7dj5tg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 29 May 2019 14:01:08 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x4TE03Ll058476; Wed, 29 May 2019 14:01:07 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3020.oracle.com with ESMTP id 2sr31v9chy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 29 May 2019 14:01:07 +0000 Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x4TE11MY017847; Wed, 29 May 2019 14:01:01 GMT Received: from ca-dmjordan1.us.oracle.com (/10.211.9.48) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 29 May 2019 07:01:01 -0700 Date: Wed, 29 May 2019 10:01:02 -0400 From: Daniel Jordan To: Kirill Tkhai Cc: akpm@linux-foundation.org, daniel.m.jordan@oracle.com, mhocko@suse.com, hannes@cmpxchg.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: Fix recent_rotated history Message-ID: <20190529140102.xfxeiv3fvcw555tv@ca-dmjordan1.us.oracle.com> References: <155905972210.26456.11178359431724024112.stgit@localhost.localdomain> <0354e97d-ecc5-f150-7b36-410984c666db@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0354e97d-ecc5-f150-7b36-410984c666db@virtuozzo.com> User-Agent: NeoMutt/20180323-268-5a959c X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9271 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905290092 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9271 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905290092 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 29, 2019 at 11:30:09AM +0300, Kirill Tkhai wrote: > 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. Ugh, good catch. I took another pass through this series but didn't notice anything else. > > > > 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); > > > > >