Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3041767ybd; Fri, 28 Jun 2019 01:45:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqyC7cPu4NvAJmNwX1rciRD6lbKSjvNhOZ3r/0bM+NTjd+eaj95fmgQhbV+u3/jjCjLCrsNo X-Received: by 2002:a65:62c4:: with SMTP id m4mr7931466pgv.243.1561711543044; Fri, 28 Jun 2019 01:45:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561711543; cv=none; d=google.com; s=arc-20160816; b=VGyafVZKwW3reVJNtdHBLxbi2J3aeYREe1LMbno5SUXY/YFECzGLZ90E2UlCbL/QdM jheEK7OGN9gH0q4FBuQRPJhFNxbKkGwd2LxZ5ceo2clLk5tUKTPPlqIDoF2q2P5R/5Qf WOCcyZUeHPYosWa4FnSCEsBkFaLrpiV7ATjlwGWNu7/XPX1BVsYuSKWTBF5wcdHMghnq eztaFPrT+icfnbeJ+b/ZDnguRzV+y78QeCffmCRpN/4tnM4ljHLThP431Sf1wVJ2Chdv pD5QAFYaf7hL1qZhcZv57tEx+xeKfNSfbLDOa+h312kpV73x3eWqG/L+WFeywvX7zsxo bydw== 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=9cCBNQ/DLgtpUPdtAQUtvcyuKyE7Z8O611WKPmcesJs=; b=FSvDY96c0q2R66Cum8V3NPCatbJpxbUBGZ+Eh39OirYGubjZexVmSKxB8EXNkH6gL1 SIl/MVreFnvhZuPqFQ0WK7KOvW4T+xPIUr0wmHuwGcf9PCUdsj4r0zyx3n/nfSQIJTn4 be58eCH71opRZlc/821yb5YWVXgLs9AFDjCdxkmM6iFSPc7mGPQhA0XH9Ds/cMCD53vA K0c4M10SWEh0xcsmGfKLP60iipvUYBdhAm5AgCVfnmWbekQtFhFk2YFoioYz1yBvkfA6 tJFKS7BqvQe6MKEdivZa/vlKozNIikf6AjOTsLRmeY0SFtrb6j027zuqVOVOmkAsV8hh TleA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NJhiRaFT; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q14si1618376pjp.78.2019.06.28.01.45.26; Fri, 28 Jun 2019 01:45: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=@chromium.org header.s=google header.b=NJhiRaFT; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726653AbfF1IpA (ORCPT + 99 others); Fri, 28 Jun 2019 04:45:00 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:33971 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726524AbfF1IpA (ORCPT ); Fri, 28 Jun 2019 04:45:00 -0400 Received: by mail-pf1-f195.google.com with SMTP id c85so2634334pfc.1 for ; Fri, 28 Jun 2019 01:44:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=9cCBNQ/DLgtpUPdtAQUtvcyuKyE7Z8O611WKPmcesJs=; b=NJhiRaFTwbXgWwYMuOKzcTTAPu8tvSUXftkWjd2iiLgQl4WJT7WRsvULRO5tF8PluC Nn+xvF88SuY6E/ZeAT3axrY8RuBSq8aQZRGAiy3DZuNjp2jnGcFdj/vf3GXwc4KU26Zj mspXga43P9yxdB55hXqpNtLBeXU2cevRPgdoY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=9cCBNQ/DLgtpUPdtAQUtvcyuKyE7Z8O611WKPmcesJs=; b=FrBda/QLzzIuj4bVXYrXh1RpR0ouSfHHO7RMlPf0Dw33zxZV7q2Ip+YoO4ty6sk8F0 xUosfEl2/wdif0u4DFjl4lhfbqNeSdwjk6F0at7jmVe9ADqf88ZiVpRJluqi3HPmzUXF DnN3Pr1Tnkt1KZq6ndpX9gg7n1/iKSWVLwdwpFwPmOZo82oUQ7Dntn/0XAKypap8M/+0 0JWVNuTf7pmsfpg+wvwu3iM1qc9KJ3kIZtZCzrH9ZPKveUyze47mv0WxNFgRvK3JVKRr yhj7mADdFLY5oiSgwHQHWdGv3GmOyLYjGygzmWGHJmJO5cztIgOjLTECD5QL6XudYMLV 3OHA== X-Gm-Message-State: APjAAAVCxm+lpT37g2h0SZUpT9HRG9t9FRFzK/DPtaauTSEu2Tkn+kqJ xYDr1RFaszwCfH/GbdsgeCTHTpIPrB6q X-Received: by 2002:a17:90a:b104:: with SMTP id z4mr11674941pjq.102.1561711499289; Fri, 28 Jun 2019 01:44:59 -0700 (PDT) Received: from google.com ([2401:fa00:1:b:d89e:cfa6:3c8:e61b]) by smtp.gmail.com with ESMTPSA id s20sm670784pfe.169.2019.06.28.01.44.57 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 28 Jun 2019 01:44:58 -0700 (PDT) Date: Fri, 28 Jun 2019 16:44:55 +0800 From: Vovo Yang To: Minchan Kim Cc: Johannes Weiner , Andrew Morton , Michal Hocko , Sonny Rao , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] mm: vmscan: fix not scanning anonymous pages when detecting file refaults Message-ID: <20190628084455.GA59379@google.com> References: <20190619080835.GA68312@google.com> <20190627184123.GA11181@cmpxchg.org> <20190628065138.GA251482@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190628065138.GA251482@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 28, 2019 at 03:51:38PM +0900, Minchan Kim wrote: > Hi Johannes, > > On Thu, Jun 27, 2019 at 02:41:23PM -0400, Johannes Weiner wrote: > > > > Acked-by: Johannes Weiner > > > > Your change makes sense - we should indeed not force cache trimming > > only while the page cache is experiencing refaults. > > > > I can't say I fully understand the changelog, though. The problem of > > I guess the point of the patch is "actual_reclaim" paramter made divergency > to balance file vs. anon LRU in get_scan_count. Thus, it ends up scanning > file LRU active/inactive list at file thrashing state. > > So, Fixes: 2a2e48854d70 ("mm: vmscan: fix IO/refault regression in cache workingset transition") > would make sense to me since it introduces the parameter. > Thanks for the review and explanation, I will update the changelog to make it clear. > > forcing cache trimming while there is enough page cache is older than > > the commit you refer to. It could be argued that this commit is > > incomplete - it could have added refault detection not just to > > inactive:active file balancing, but also the file:anon balancing; but > > it didn't *cause* this problem. > > > > Shouldn't this be > > > > Fixes: e9868505987a ("mm,vmscan: only evict file pages when we have plenty") > > Fixes: 7c5bd705d8f9 ("mm: memcg: only evict file pages when we have plenty") > > That would affect, too but it would be trouble to have stable backport > since we don't have refault machinery in there.