Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1914552ybt; Thu, 2 Jul 2020 17:55:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKMNIOoEb+pjLwHIOA5TZkbhMu48WiUN343Zj5B/mCw6xENNwGU4TnEbe4d874bDU/Z/+i X-Received: by 2002:a05:6402:203a:: with SMTP id ay26mr26407336edb.276.1593737716171; Thu, 02 Jul 2020 17:55:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593737716; cv=none; d=google.com; s=arc-20160816; b=TVqJCvMaiF14rOtXoTV6mh5W+4gj3FtRPvBTKnUVb6ZiFkE+8hbnqhTGaWqx0DAjp7 BMWzdP4z6q2ycu6Ou9BdbYvEEbvLFHRJGlgtyhJgUulMc4k3MuEzfA0vuAGKkmEY5/Q7 TqyxFEYDjHA3GIfzi89PX0wJOEJHEXjalgpFk017Ig8d1c/RAjyh01uKivw31qbRzhoN f7rPTs526HyNn3scAPvRqW+vVBHWU6jzkUSLLV7/B1gzVVHlqF79L8aAiSy/cuxST3VO HoQoFL5DTcAnABrL+7RNyumigElcmCDXlqb/3QQAGnyzItoBwFC6WTkmUi5KZwLq0BN4 rsqA== 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=2QjpuD8irRgYumHEsXOFIqJW2+c7RYNi2m5T0paIeNs=; b=cPqajN1nk368zpn07XSu6vIQAXoy4B6IFK9F5ga9+atnzH8y7vOv/p3sNH2uPYubTd qr75X7j2fgwC0KhbWrYoJcU2VY/6qFFYL/GQ1nYtybRrdXKQuG3VRAVthV59JiBGUABF 6W4g48yXsKdiMaAWWsZUa5B6l+UX/3MumUYdmOtMcepIO2krcOq95e549hree+/7Oow2 e3mulWzdp+xgfeKV3Rs0BJhwPmV9xNiRE+8wVUmzmS/yB5D/nFyxf9DWXMF2i/g2yHp/ mgk/1OdMrAb8Ow1FCUdeadatn0qZCZ+g4nBhMmvGAp0WzlkLYT1aZ6H7dPd6NVgZjR1y cxPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="FoxGm/zH"; 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 m19si6690211edp.40.2020.07.02.17.54.53; Thu, 02 Jul 2020 17:55:16 -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="FoxGm/zH"; 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 S1726445AbgGCAwI (ORCPT + 99 others); Thu, 2 Jul 2020 20:52:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726028AbgGCAwI (ORCPT ); Thu, 2 Jul 2020 20:52:08 -0400 Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35AB1C08C5C1 for ; Thu, 2 Jul 2020 17:52:08 -0700 (PDT) Received: by mail-qt1-x841.google.com with SMTP id h23so22840833qtr.0 for ; Thu, 02 Jul 2020 17:52:08 -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=2QjpuD8irRgYumHEsXOFIqJW2+c7RYNi2m5T0paIeNs=; b=FoxGm/zHo2+JNltL2Hvy/PJXCF+wfAjZFei9JsAY/dMM2BAyPOTGUneJkLAJ4QFoop nzdBxbqZvzcUSlqj5AA3X9uEkejQ9Ycf+o0RhI+RgOcEmTx34jB1C03ZPA7DcNdP1KMh SZqVV72POrDLBkoUrNqmV7oXBXW2iSm8u1R612OjP6Wq7FQby3dFQP+zMo/1PUyKNrmw M4l9uPdiqD2/NFxx/Ba6cP+oM4vw+GJ6ZmNQiPCM470WdsB5vFwZssbXG7lZ9Ygw3Fa9 Xq7gOQrf8RBoaehg5TECo+qTC/rWkP6pc6chfXuwzVFTcevrTKXTTWBnc6QpNXcFg/6C sugw== 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=2QjpuD8irRgYumHEsXOFIqJW2+c7RYNi2m5T0paIeNs=; b=LQwCPGdy/Ono5HNQsbwnUPyftlY6i9P5vctSwhUXfRgwIOB6502J+5DMFYNx/nm1Qb nyagAxkctH64LAJBI62P1snOqJ69+H12vJcBj9wrzuiV7qy7cXD1pHCCROkuEHz58Y6l gsdj89AmwmnRIU1oQrGw5V2xuyRUmwrwtzXuf7kLnWVDqUEI0oW8uUseXs8mfby7GjNc 8swqNW8ivj4TT9EH7Rwsxg5dS75+jZV+U1uf7b/WYP9TY8l22tTbmpl5C0fnX/e2Z3+h D470h7TnqIvliuJeerwwrFChrn6gy5qY1SCtN7xVwu1Mfe6SEUwXB+SYthex2LH/OYxC VDwQ== X-Gm-Message-State: AOAM530+tg8eWNPKsZdbOYPILZFlD9qfmZq1XnI2i7vNLZkLRhPkQwJG 1o5bsW5PSB5L6OXNGzs5UVucGyw/11aZ/R590R4= X-Received: by 2002:ac8:4d0c:: with SMTP id w12mr9456003qtv.194.1593737527417; Thu, 02 Jul 2020 17:52:07 -0700 (PDT) MIME-Version: 1.0 References: <1592371583-30672-1-git-send-email-iamjoonsoo.kim@lge.com> <1592371583-30672-6-git-send-email-iamjoonsoo.kim@lge.com> <47989e98-ecd2-3ea8-871c-88583e55a4dc@suse.cz> In-Reply-To: <47989e98-ecd2-3ea8-871c-88583e55a4dc@suse.cz> From: Joonsoo Kim Date: Fri, 3 Jul 2020 09:51:56 +0900 Message-ID: Subject: Re: [PATCH v6 5/6] mm/swap: implement workingset detection 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 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:37, 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 > > > > This patch implements workingset detection for anonymous LRU. > > All the infrastructure is implemented by the previous patches so this p= atch > > 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 *sh= adow) > > /* > > * 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 Will fix it. Thanks.