Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp879085ybh; Wed, 18 Mar 2020 10:47:13 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuKNQh2haMiL9Hr9AZmzTV7naeH/oOvpTbZA7JEBp8itxv5siz9Ea4hVjvsLkddPbT3zmxH X-Received: by 2002:a9d:5ad:: with SMTP id 42mr5075970otd.231.1584553632898; Wed, 18 Mar 2020 10:47:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584553632; cv=none; d=google.com; s=arc-20160816; b=ATNRXwTrghJaRVPvtHjz0AkaINHZqZEcb8wa4edsodwFnryAtj8+R6Erwz6laePUIo bjlMM0dYYSOAtRFlEE3/V3sP7Rml46KKDxknVep86agiE2l6qg+jQiTh1OpYDjZRgG0P zkAgm6tPekhQ3/OuFYYHXHv4zV1xg2sDkEqo8/32NKVjYU4uKpLSMwHTUdq3tuYlC6uS kLhpgNJapGzg86xbzk+/ETPaTQQbq1mN+TvdAuGH/IFAhLMgNLWrEwonnyEP6/mK4Mxh YWtUWo4byZ3my9OfP8SPiZeCDreSiYOOlyVaVGSIDe3VlzOfPwTZoCzYdyV3u2u5NVqU J3Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=rl1b6YsGtBJ3kOtNa0WFcM2DTHbfoy2KmOV32IqCN6M=; b=DAk0DPMWzTmna3rMWITwT1vG8id9qmK/9DOMvXXxYNBcP4qxgDSzkIeQc0VW565H1W /1owGTmptcwK7wyonuBoBGJg9m98QyVC+RDk878i8yV3H43cM7Eh/HTcabt4Of+taZkT dLzE/pCm941R9rI1FCwl7mDO5HIgIv3QikOKxOTg+OVJqi7kbTh06blA5SW+YabFQuCP jp06gOtbm2pBgvefkBSEHQulp6aCuDLoTKbdow4Rd4+jmtpAQYW9TbB/hcb+DSEev6pY Ls5gYBsmpTx44ergEx0vj9YO8iCqQ93LmxejJm7alsKdh7nbUlo894GmvRdEBMUACOoN FEsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=m4IwnX1r; 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=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p17si4589948ota.232.2020.03.18.10.47.00; Wed, 18 Mar 2020 10:47:12 -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=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=m4IwnX1r; 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=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726810AbgCRRpo (ORCPT + 99 others); Wed, 18 Mar 2020 13:45:44 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:33033 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726647AbgCRRpn (ORCPT ); Wed, 18 Mar 2020 13:45:43 -0400 Received: by mail-qt1-f194.google.com with SMTP id d22so21510518qtn.0 for ; Wed, 18 Mar 2020 10:45:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=rl1b6YsGtBJ3kOtNa0WFcM2DTHbfoy2KmOV32IqCN6M=; b=m4IwnX1r7ptkHEQp8cCRIvLRK4qk3fGLYPnHlbCgubUCeCJX02T5YBzaFCQ+dKgRDv 3IbSIdwhuzgBII/5GDiJqKNBs/4PHxH0vhLn/ZrmBmZSRQSDPe35udC4jvstH2ONraC5 SApIJsEotVmsVQ219uqJRpUfi8e3BjCKd7GY+xWcw5vnv3FmuzJ4GXnEvuwF/IwaaYOD AcfwyyjwWyS1y5fSE4aWBMl6jAOgFMfB3VncDtQWEL+jsk1fdqANIIIJOgj9SPpRlxYf /bbExpzoJxulmE9xqrl303wkC8zXKywiMzWr6Zd2OA3F3KI4SFcS0rK5pwtlF+x5uY4p 1c3A== 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; bh=rl1b6YsGtBJ3kOtNa0WFcM2DTHbfoy2KmOV32IqCN6M=; b=WHjACgRX9BdAF3esdKqnn5k67WzEjL4p1L0S6p2lr6bCmT8rARdeAXmvN8VKp3ZiEA VAif/HrmHBpVfi18Fe6KRR8cM5lP/SuWDm7YJq+oYa4O90v7PR95hltSyND4dXQ9G+hy m7SjliklHq6w+rQKET7iomsiZ3BUBuUw5laiAOEswzvsPXtdlBeaJX7pFgnddXhrYo6J YWmShLpixDOZTwpydcDljUmPEHDMUwPvlwXUWnELh3Mq/UPmtqw25yL7Y7MMLoNjxOYp khpCFU5J9qR+h83AKuws8TTEpUjiue0Cpti2eJQpqEWGbmkZj2QawxQUy3a+asy50Avr Xzyg== X-Gm-Message-State: ANhLgQ3djxWkPy9i+PBAAZusyk9ggvA039LuSla8BjrXXD2OWIBw07VH 3mlauu9BhhK8geUXG1R9WfQ9XQ== X-Received: by 2002:ac8:3488:: with SMTP id w8mr5648485qtb.187.1584553542277; Wed, 18 Mar 2020 10:45:42 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::1:a9a9]) by smtp.gmail.com with ESMTPSA id t71sm4678137qke.55.2020.03.18.10.45.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Mar 2020 10:45:41 -0700 (PDT) Date: Wed, 18 Mar 2020 13:45:39 -0400 From: Johannes Weiner To: js1304@gmail.com Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Michal Hocko , Hugh Dickins , Minchan Kim , Vlastimil Babka , Mel Gorman , kernel-team@lge.com, Joonsoo Kim Subject: Re: [PATCH v3 1/9] mm/vmscan: make active/inactive ratio as 1:1 for anon lru Message-ID: <20200318174539.GA154135@cmpxchg.org> References: <1584423717-3440-1-git-send-email-iamjoonsoo.kim@lge.com> <1584423717-3440-2-git-send-email-iamjoonsoo.kim@lge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1584423717-3440-2-git-send-email-iamjoonsoo.kim@lge.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 17, 2020 at 02:41:49PM +0900, js1304@gmail.com wrote: > From: Joonsoo Kim > > Current implementation of LRU management for anonymous page has some > problems. Most important one is that it doesn't protect the workingset, > that is, pages on the active LRU list. Although, this problem will be > fixed in the following patchset, the preparation is required and > this patch does it. > > What following patchset does is to restore workingset protection. In this > case, newly created or swap-in pages are started their lifetime on the > inactive list. If inactive list is too small, there is not enough chance > to be referenced and the page cannot become the workingset. > > In order to provide enough chance to the newly anonymous pages, this patch > makes active/inactive LRU ratio as 1:1. > > Signed-off-by: Joonsoo Kim Acked-by: Johannes Weiner