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 B87E1C2BB1D for ; Thu, 12 Mar 2020 14:47:55 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 7B5DD2071C for ; Thu, 12 Mar 2020 14:47:54 +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="nNate0u0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7B5DD2071C 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 F1FAD6B0006; Thu, 12 Mar 2020 10:47:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id ED0AF6B0007; Thu, 12 Mar 2020 10:47:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DBF076B0008; Thu, 12 Mar 2020 10:47:53 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0059.hostedemail.com [216.40.44.59]) by kanga.kvack.org (Postfix) with ESMTP id C54576B0006 for ; Thu, 12 Mar 2020 10:47:53 -0400 (EDT) Received: from smtpin04.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 8F882180AD82F for ; Thu, 12 Mar 2020 14:47:53 +0000 (UTC) X-FDA: 76586989626.04.pail01_44c8037148409 X-HE-Tag: pail01_44c8037148409 X-Filterd-Recvd-Size: 4843 Received: from mail-qt1-f193.google.com (mail-qt1-f193.google.com [209.85.160.193]) by imf18.hostedemail.com (Postfix) with ESMTP for ; Thu, 12 Mar 2020 14:47:52 +0000 (UTC) Received: by mail-qt1-f193.google.com with SMTP id g16so4519086qtp.9 for ; Thu, 12 Mar 2020 07:47:52 -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=bkEMbn273mdTI0AXhfsCYlRybd34rXTvQOuBweyXdAI=; b=nNate0u0S3aVT6rUhoHi/gCeLVVgF1Ym72tleDd+1mq2bhxXMk+lsBEU6d/v8IGA+b zsy0SRB0aYjUpDfxZ7fLcV6y+UvgmFZ0v/5vPLQbYmx78/I3InPTXPh5fOen3gfwj4jV o+0PXJ/uH5PwNAlAsiIbI470nbSRicBtc04BPl44plQcSedwSSztXOutjQ9XS5uyHqdi jsufNn8/4b1dAAvEjn6V0uUAWlUz2+CFYeGAPnzOQ0JS3QrXajrbh73O4xGyEUVIsWwg yU/A1563fUjzs8Nc5f6hPayD9gnnr3nu5GISVBR8NoGuRIJCJV5wkxc/38aZzEbiwEDn KWXA== 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=bkEMbn273mdTI0AXhfsCYlRybd34rXTvQOuBweyXdAI=; b=LtiunP4Wwkd/Ifq4ccQ+0P10wIQwWmypwEFEa15dlCDb2sja06NWou3LYT5SA4mY9i YaJOH8pzH4/+GA+5FZF5eBU1inIb63e4Dj91sEYf89povSHYRFW4ta/biry/UnN/P6K/ Gx/Y6Zru35+4TLMcRnHO3Jj7tNPoYgigIOJvBkjLaPRQsH/IwBu10YumQIXOGWKpRiE4 LRGxRavqZYPWWa4AbQsvNZTVNp4GBqUM21BCUltgqITfMPDHKZWMcVBdMqAzsoub+XfC eoo2u9hJr56pSpKmPwac6pNJDO9xiSZpXqXIncbQxJS2nWGB3j0pG3j3zX5Xk60qcj1v UPBQ== X-Gm-Message-State: ANhLgQ0wXawmpoH1u5ubizHmWtNM3tpv+TZnDeeTd6T0qju9wH4627tT +WZ/sL8DJnyLhWXG3PIAhfZpIw== X-Google-Smtp-Source: ADFU+vtez/OYPIOGbQ3kCqqnHLmKDJ5OQvSq2g62kT+6Tr+O2gVjdB1Bhf9T9GX+6Ir1rjbjtE8Ndg== X-Received: by 2002:ac8:e45:: with SMTP id j5mr7465910qti.215.1584024471583; Thu, 12 Mar 2020 07:47:51 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::ef6a]) by smtp.gmail.com with ESMTPSA id f13sm13651077qte.53.2020.03.12.07.47.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Mar 2020 07:47:50 -0700 (PDT) Date: Thu, 12 Mar 2020 10:47:49 -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 v2 1/9] mm/vmscan: make active/inactive ratio as 1:1 for anon lru Message-ID: <20200312144749.GG29835@cmpxchg.org> References: <1582175513-22601-1-git-send-email-iamjoonsoo.kim@lge.com> <1582175513-22601-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: <1582175513-22601-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 Thu, Feb 20, 2020 at 02:11:45PM +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. Patch 8/9 is a revert of this patch. I assume you did this for the series to be bisectable and partially revertable, but I'm not sure keeping only the first and second patch would be safe: they reduce workingset protection quite dramatically on their own (on a 10G system from 90% of RAM to 50% e.g.) and likely cause regressions. So while patch 2 is probably a lot better with patch 1 than without, it seems a bit unnecessary since we cannot keep patch 2 on its own. We need the rest of the series to make these changes. On the other hand, the patch is small and obviously correct. So no strong feelings either way. > Signed-off-by: Joonsoo Kim Reviewed-by: Johannes Weiner