Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1481127ybt; Thu, 2 Jul 2020 06:38:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwy0kjLQ78omLamdyfQgkN7eRWyjopH83jizbZUWUZk73EzwHarNo7Tf/eb3l8vwGzRnATC X-Received: by 2002:a05:6402:2d7:: with SMTP id b23mr22623024edx.145.1593697107625; Thu, 02 Jul 2020 06:38:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593697107; cv=none; d=google.com; s=arc-20160816; b=kVQny6mgIsSAiWdA23SEQexxV+7ewYeJ/8anJk7FHOrHivcQtuyW77i5UcDguyv/Um P/Xllsrtf8z/tGKFuRZpyzMUtcZbWD70WDhMI20c7kawZpysH5/garHV64J+S6G4mL86 TXcaGFI7m8ohbtprDqD/unmqh2xglOTn9OoLbMwYtLppkJSd2JBeh6GnZyed8OR8avB8 NKHOB6Ddzj18D5tZi+ZLwgkOr262fRkaTKCMOlmGCcGw3MDfJn5lOI7YAhrQVr7/ybrs aDhsVNc9B3hLLtLH66/DNrAaDbE/PxKvTykNIeu2sXVmQUKL0sB0a89i+wtEirszXSD1 N1hA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=4UBasO673UQrgsZXQYLxXuM4SQAmL0fahCY16Y1ns2U=; b=ScPKshqyyeIApNqbC92QB89tcA/c9Fob1JvqGVNNX2gNSen5yIZgcowlK+96QTrVTO 5ed40erYOH4j0TXChdNuzFGB5AkEV25v/3M9oZaFt57NX5nM8RCthhZ7pGWxlz1b3Zym qldiSB0vIu3L6deAKa6gC6a6FxRiyel4XqxE6J9Y52LqzjjVTy3rd52ZsIQV+jQRlkpM 2WSH3nQS6AU4+ZWjpyR+dRSsQKtOdWMvEsuY+YmLHYFvJjxZFlinF6tJLctjv7PlDBs5 hidt/r1NzwDi7KOl+rrEMgXYahEcMSj0WB8C62JHT4mlzoi4tuGlYilR05875jZRozlx 2tbQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w13si5668981ejj.564.2020.07.02.06.38.03; Thu, 02 Jul 2020 06:38:27 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729368AbgGBNhf (ORCPT + 99 others); Thu, 2 Jul 2020 09:37:35 -0400 Received: from mx2.suse.de ([195.135.220.15]:40990 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729115AbgGBNhf (ORCPT ); Thu, 2 Jul 2020 09:37:35 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 8D555ADE4; Thu, 2 Jul 2020 13:37:34 +0000 (UTC) Subject: Re: [PATCH v6 5/6] mm/swap: implement workingset detection for anonymous LRU To: js1304@gmail.com, Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Johannes Weiner , Michal Hocko , Hugh Dickins , Minchan Kim , Mel Gorman , kernel-team@lge.com, Joonsoo Kim References: <1592371583-30672-1-git-send-email-iamjoonsoo.kim@lge.com> <1592371583-30672-6-git-send-email-iamjoonsoo.kim@lge.com> From: Vlastimil Babka Message-ID: <47989e98-ecd2-3ea8-871c-88583e55a4dc@suse.cz> Date: Thu, 2 Jul 2020 15:37:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <1592371583-30672-6-git-send-email-iamjoonsoo.kim@lge.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/17/20 7:26 AM, js1304@gmail.com wrote: > From: Joonsoo Kim > > This patch implements workingset detection for anonymous LRU. > All the infrastructure is implemented by the previous patches so this patch > just activates the workingset detection by installing/retrieving > the shadow entry. > > Signed-off-by: Joonsoo Kim Acked-by: Vlastimil Babka > diff --git a/mm/workingset.c b/mm/workingset.c > index 8395e60..3769ae6 100644 > --- a/mm/workingset.c > +++ b/mm/workingset.c > @@ -353,8 +353,9 @@ void workingset_refault(struct page *page, void *shadow) > /* > * Compare the distance to the existing workingset size. We > * don't activate pages that couldn't stay resident even if > - * all the memory was available to the page cache. Whether > - * cache can compete with anon or not depends on having swap. > + * all the memory was available to the workingset. Whether > + * workingset competetion need to consider anon or not depends competition needs > + * on having swap. > */ > workingset_size = lruvec_page_state(eviction_lruvec, NR_ACTIVE_FILE); > if (mem_cgroup_get_nr_swap_pages(memcg) > 0) { >