Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1914954ybt; Thu, 2 Jul 2020 17:56:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlWjJ6wBRNEcRFtvJ/RFLK+Hly3PJ2abIzk7Pm51sUZhyLIVdFNg4lhp6IhvYiqH587CYj X-Received: by 2002:a17:906:1245:: with SMTP id u5mr29385803eja.286.1593737762409; Thu, 02 Jul 2020 17:56:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593737762; cv=none; d=google.com; s=arc-20160816; b=mHjnVSDmewxiqNsevTiHK2NV2du73+vBVQlqLwLApHioVhmOUManr7WuY8NozaGIsJ WirGeP4DdWi+TkFNkWGnYHYGHQMQ96waTRpZfqtg49+YwwmhCjbSpbjNjOhHTD+tr1ap Bbv+H+sdhfajNGqvtVLRtWu0jM2TrfRcEQhnn1my8aoNSdek7uJyoIDiYi4apACVC7z8 Dv4aYMVvO7RDfL+vO1CD07++e/EVYclx0I1qoSvbdeMj2s1QGyeXBQFhinXcSsN+dSYe VG5SK359dq8YY873JSiYeZuKud4M9IN5GKeDGS5LAA/+ZkzRWxZIdayyc+qHDsppeM6H 2fAA== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=gmp3Sx0pjIvLynX6ju8pg2+6n+L9gz/8CB7hRCXkhfk=; b=BPm4g33xihqaN+sVV5gPTqHXjEBQs/XnZW7Puns8hzBkM77q7mvHNHNKFoD38sbQhK /fJWJuGNJp9N6kvt3I5Qxi46sUPTRMOT72Z7cDFh6jILM2Seh2cApaYeeHaDhCTdybwP F+0/9zMMTd2VwZOIL+1JCAdL9U79h+/n+lZbvQETvs0ZaKlRyG1prYUmcwA3rcSKJ19I Q1N6lXO3BdbOWsYduHNf6uDiXNj7+03Lzepr3oTVvByipjmVTa80J+/DbGC03pabpsMc PXQzW77alb1jhrVDphdzBDdOaTfuUXigy4lEJIjKsReOTO1bSF0HlvaLAht65vfENLWL LiXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fwdqCTnZ; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ot18si6361359ejb.303.2020.07.02.17.55.39; Thu, 02 Jul 2020 17:56:02 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fwdqCTnZ; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726396AbgGCAyg (ORCPT + 99 others); Thu, 2 Jul 2020 20:54:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726028AbgGCAyf (ORCPT ); Thu, 2 Jul 2020 20:54:35 -0400 Received: from mail-qt1-x842.google.com (mail-qt1-x842.google.com [IPv6:2607:f8b0:4864:20::842]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94250C08C5C1 for ; Thu, 2 Jul 2020 17:54:35 -0700 (PDT) Received: by mail-qt1-x842.google.com with SMTP id w34so2731882qte.1 for ; Thu, 02 Jul 2020 17:54:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=gmp3Sx0pjIvLynX6ju8pg2+6n+L9gz/8CB7hRCXkhfk=; b=fwdqCTnZCLxC184dA8HxziJBoAe0zO52Ae1M2LCViDgVE+qlKTRZt5IInzpUEVU5Jx XXWbiMOEeY5wBa9HQH6Kz2c65qVpf2wc6V50kEx/KgToQCtAwOizLd/F+crebi7LZZEF dRAV7gt1RcMoOPuOjKvT7UrQivfvxZzpnOWrLoXPMBhrxrt0bY3oxOYd6gEQKEUnMpG/ +gLfJqft9x6XvsJd4AUg7/jlfZKZrxkgeiyfFBNPnb5rmtnvkdUth0fJp1lK/XQ3LIkM CKggfbt431MdbhyZWRFMASmWg46z3NdY90ZDn/eOFrl26NFhvpyp+M3Sp9TtJnI+3noY uDvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=gmp3Sx0pjIvLynX6ju8pg2+6n+L9gz/8CB7hRCXkhfk=; b=Tb7D5RlHeTSbtrcTHtRrKkG4J4YI+NnKFZ9aJ8zqi5EsCbBho4TLIfsl2OVAUaXrfA QnNMHSdZWf48CcagP01cLitvlQp1H6TdxuT77qH0N/6U+WeZGtz8cB0UOKD0yOdSWVeL YcPSxkaJ9SFEDiX5BofA1NaRaZNQE8qvqnqHAPTO+B0T5QgCG1C0ue3l3CfSRjWBdEgC P5sL6i6pQUS+V+SMGsO00ayZMNRcmm6qLcwAG1xMLwSa3vCTAP0x6gMxzlUR9q5V59Cp pKqGTsI3gXkjg+c7gDMqxKal6MfOvEmHvcAnu45sXCyqRQDZ+xeiVpApFBmmNxvj4oQC wcIA== X-Gm-Message-State: AOAM5320vUIZwSRtD3D/GOOA7i7/2/DNCIIaKcGxxWn7/c2lUVYbIi/+ EdzztBJ+2JzKUeeq8Q6wAZ+55tAkMZG1FkDd28HnlHfT X-Received: by 2002:ac8:5691:: with SMTP id h17mr30471835qta.35.1593737674869; Thu, 02 Jul 2020 17:54:34 -0700 (PDT) MIME-Version: 1.0 References: <1592371583-30672-1-git-send-email-iamjoonsoo.kim@lge.com> <1592371583-30672-7-git-send-email-iamjoonsoo.kim@lge.com> In-Reply-To: From: Joonsoo Kim Date: Fri, 3 Jul 2020 09:54:23 +0900 Message-ID: Subject: Re: [PATCH v6 6/6] mm/vmscan: restore active/inactive ratio for anonymous LRU To: Vlastimil Babka Cc: Andrew Morton , Linux Memory Management List , LKML , Johannes Weiner , Michal Hocko , Hugh Dickins , Minchan Kim , Mel Gorman , kernel-team@lge.com, Joonsoo Kim , Matthew Wilcox Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2020=EB=85=84 7=EC=9B=94 2=EC=9D=BC (=EB=AA=A9) =EC=98=A4=ED=9B=84 10:45, V= lastimil Babka =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > On 6/17/20 7:26 AM, js1304@gmail.com wrote: > > From: Joonsoo Kim > > > > Now, workingset detection is implemented for anonymous LRU. > > We don't have to worry about the misfound for workingset due to > > the ratio of active/inactive. Let's restore the ratio. > > How about: > > Now that workingset detection is implemented for anonymous LRU, we don't = need > large inactive list to allow detecting frequently accessed pages before t= hey are > reclaimed, anymore. This effectively reverts the temporary measure put in= by > commit "mm/vmscan: make active/inactive ratio as 1:1 for anon lru". Much better!. I will use the comment you suggested. Thanks. > > Acked-by: Johannes Weiner > > Signed-off-by: Joonsoo Kim > > Acked-by: Vlastimil Babka > > Thanks! > I still hope Matthew can review updated patch 4/6 (I'm not really familia= r with > proper xarray handling), and Johannes patch 5/6. Okay, I hope so, too. :) > And then we just need a nice Documentation file describing how reclaim re= ally > works after all the recent changes :) Agreed. Thanks.