From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F1EAC10F29 for ; Wed, 18 Mar 2020 17:45:45 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 349442076C for ; Wed, 18 Mar 2020 17:45:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=cmpxchg-org.20150623.gappssmtp.com header.i=@cmpxchg-org.20150623.gappssmtp.com header.b="m4IwnX1r" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 349442076C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cmpxchg.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id C7E036B000C; Wed, 18 Mar 2020 13:45:44 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C2EF56B0010; Wed, 18 Mar 2020 13:45:44 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B1DAF6B0032; Wed, 18 Mar 2020 13:45:44 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0173.hostedemail.com [216.40.44.173]) by kanga.kvack.org (Postfix) with ESMTP id 97ADA6B000C for ; Wed, 18 Mar 2020 13:45:44 -0400 (EDT) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 58CEF4DDD for ; Wed, 18 Mar 2020 17:45:44 +0000 (UTC) X-FDA: 76609210608.20.glue73_4f150b10bb700 X-HE-Tag: glue73_4f150b10bb700 X-Filterd-Recvd-Size: 4209 Received: from mail-qt1-f195.google.com (mail-qt1-f195.google.com [209.85.160.195]) by imf48.hostedemail.com (Postfix) with ESMTP for ; Wed, 18 Mar 2020 17:45:43 +0000 (UTC) Received: by mail-qt1-f195.google.com with SMTP id z12so2205703qtq.5 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=kmc059WGHV6fleKHRkmDdrSZ/cK0+ynSJj0xWZAktmFqAme/jNUfWXhPmp4M8ytikX vRXvPayQZ/sLQpTSLXGWd9xDyrBCnLLLwWX/76t5r+HZhALtU1rM6gucWXrn71wMuV+U UjlBFSWT3WVXfS+kk/IIDkn+752KF8aWrTHyMvuyDRhyChm3VmV9mJ0Q5Jt4MsVTu5+W wDpWXeZEQl3lQ2SzG75n1yNUw2FjQTRHAyiw61OopbJFPTfmNb4tkiWso1SXtHmztO72 i7bTnWz8hkfqRuufjB/hQpX7BtWjVUTeFsWkFv0xzV5AYlo+8KPDUuI5VQJXQDknTPH/ uTvQ== X-Gm-Message-State: ANhLgQ14A3taBiazJZ+sZJw75MjenK8rkx8RMXsPwhTft9mPreufqAfL UTvo23jCLmBUDTPIWlpjNPAkgw== X-Google-Smtp-Source: ADFU+vsfKn0pQfH0EAmid/5E8Mr64khvU8AUJGk6+wGnA2d81z/i63l57gULHPDlQdBxUYt+INIO+Q== 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> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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