Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1426952ybh; Sun, 19 Jul 2020 20:01:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKHg671kGLBYnIbxg+C88zZGgt9XHbPw3EGA8/lMhe/mNoxwUF0GBHy5n9D62oTJmniiKb X-Received: by 2002:a17:906:4f16:: with SMTP id t22mr18419270eju.179.1595214114344; Sun, 19 Jul 2020 20:01:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595214114; cv=none; d=google.com; s=arc-20160816; b=hQr4I6BkFlIxkMqyj/9Ywq3m1R9h1w5KgCKarr2qnPDhutGlcjZygEH5hjFyTZLQdY XnxNu4/LUBOEcPNl8eYCKs3Ss/AiWWa/I+z5/fhn57usGhX7q+d3KqN7ym6q4xrDyQbX EPVORxKe/QOfzytetlM0kL2Dn38NPsoWkifSFbaFylo9grNy3AJbNqIVXc6m2HXiLLM8 xfYG8q8bp2rf41EttBfwwU5EMhf9Awr44K3mL0z/bwAMHofvM65tlLOmHTV6YapvoXK4 fMBX9MV6M6NkmNtgA8c1/HbPAi2GDgfRrFWw1mkrm0YNteybSd2K0++U5gss1OFNNL1k B2tg== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=MyT4Xkib3Zy/rgE//6Arlyhm0BDQtQpqO7wGeFx2x5s=; b=wnXbfvuGo4Lj2iR4qeiM3dASMxM/l3PY4ofOvlijUuAJ1rmddt0vW8dm/kfoKIZrxX BiYlqBIYThCSivNDmCimAkyLUjCVlSoDg6Y7K6j6fKMy8eZtudNFDWhIvWJccdpteBAu F7RHvihpK5HjCX4t0QgzrC4Uwr9owZkGJd5jvLSGI0ErlR6rV3I+2wFhgdAO16m+vsMn yYJpPLAtd6xpUQ7TcH2Os6YdxTYu9R4xmQVZlKoMhlSE67N73HiYquuXu0GLVwvcwsH6 4BgjDzWopCRJ9ihq9MZAlNoHI9GPi1t6R9p/wdfOmLd1Xw3N2Ms8/rEQ08jVT8HmDtvP yqiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a8si10150067edr.123.2020.07.19.20.01.28; Sun, 19 Jul 2020 20:01:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726546AbgGTDBS (ORCPT + 99 others); Sun, 19 Jul 2020 23:01:18 -0400 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:43620 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726312AbgGTDBS (ORCPT ); Sun, 19 Jul 2020 23:01:18 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R951e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e07488;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=18;SR=0;TI=SMTPD_---0U3AgGSF_1595214071; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0U3AgGSF_1595214071) by smtp.aliyun-inc.com(127.0.0.1); Mon, 20 Jul 2020 11:01:12 +0800 Subject: Re: [PATCH v16 00/22] per memcg lru_lock To: Hugh Dickins Cc: Alexander Duyck , Andrew Morton , Mel Gorman , Tejun Heo , Konstantin Khlebnikov , Daniel Jordan , Yang Shi , Matthew Wilcox , Johannes Weiner , kbuild test robot , linux-mm , LKML , cgroups@vger.kernel.org, Shakeel Butt , Joonsoo Kim , Wei Yang , "Kirill A. Shutemov" References: <1594429136-20002-1-git-send-email-alex.shi@linux.alibaba.com> <57c619e7-da7e-198e-3de8-530bf19b9450@linux.alibaba.com> From: Alex Shi Message-ID: <5f2401d3-dd4f-cbc6-8cb4-4e92fc64998c@linux.alibaba.com> Date: Mon, 20 Jul 2020 11:01:10 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2020/7/19 下午11:23, Hugh Dickins 写道: > I noticed that 5.8-rc5, with lrulock v16 applied, took significantly > longer to run loads than without it applied, when there should have been > only slight differences in system time. Comparing /proc/vmstat, something > that stood out was "pgrotated 0" for the patched kernels, which led here: > > If pagevec_lru_move_fn() is now to TestClearPageLRU (I have still not > decided whether that's good or not, but assume here that it is good), > then functions called though it must be changed not to expect PageLRU! > > Signed-off-by: Hugh Dickins Good catch! Thanks a lot, Hugh! except 6 changes should apply, looks we add one more in swap.c file to stop !PageRLU further actions! Many Thanks! Alex @@ -649,7 +647,7 @@ void deactivate_file_page(struct page *page) * In a workload with many unevictable page such as mprotect, * unevictable page deactivation for accelerating reclaim is pointless. */ - if (PageUnevictable(page)) + if (PageUnevictable(page) || !PageLRU(page)) return; if (likely(get_page_unless_zero(page))) {