Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1453512rwl; Wed, 29 Mar 2023 18:41:05 -0700 (PDT) X-Google-Smtp-Source: AKy350bjAJVOd1Rx+4ON9FPC0Xlq7LXHTP5RfK7hh+dDfgWQaU0gWLdWLuF4yV8z37epRb0M6xZf X-Received: by 2002:a17:907:a50f:b0:8e6:bcb6:469e with SMTP id vr15-20020a170907a50f00b008e6bcb6469emr24158894ejc.0.1680140465159; Wed, 29 Mar 2023 18:41:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680140465; cv=none; d=google.com; s=arc-20160816; b=Vo3CnPgfR/jo38v1IWqzFwfQ3gb5baN38Wfrd5zqxTrFdXFKXuYNznHAyy14OBQaz4 rrX0pRW5qT+FkUss+rdJhcJ1NOvo5LJ8Z0XvVOV/SU0h6Y/Z6F8RN0vvkRI8t8azCRbQ U7v/XsROFkztuos4dv7ojP4pnMgrv6ckhAt32bDF5MGCI5i7Ti2q9GPibc4rVSB1DKgi 8KV03xFI7UaAeBTg7SviQ6Pe7TBGlyCM08YYbviZDO8vqhwZ12S/I0RB6/04B4KFYuJy WMcU/q+1VquMXCjKiCcNl/pADYNZwySvTPaEruD4WwpysGruTvYPCY8P2cRKytxTYvjO x28A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=eY8yoI87Fw9sjvQOAcytic4aFldeDuP0KE7rLqC2tzA=; b=Sxd8ef2PQpRtdRh8S7l8dua8oL3MZYX1cN7NwCm50Wbhv8rRMsfYObocM7bfa/I7YJ MMj4054AxLkgsJQd96HpPaxAWMKQs+wn4sKIoqtTw+louYjbIGqkQhhgPmJbS6peCNyN EP8TfCAWa++37epaAKmxH2WQ1K3XNmgsK1CrOZpJgpO/rOiK0fi4xdXYBtfF8tnOzQP5 yPF8lCEyvuAXbmNpBrGDdsoAkh6cRNdW/ikqfetuJd5i42oZHCqI+F6nxrPo3ddFUyFC zRtVDHWKwzjaeL8RHrY1tMykZk72TkX16EUU5OCoL1c504RS5YHWP1sx8ruoq0K94d/Q hriw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=m+dHxMa0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q9-20020a170906144900b0093a3466e513si19775565ejc.574.2023.03.29.18.40.38; Wed, 29 Mar 2023 18:41:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=m+dHxMa0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229760AbjC3BjP (ORCPT + 99 others); Wed, 29 Mar 2023 21:39:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjC3BjN (ORCPT ); Wed, 29 Mar 2023 21:39:13 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0F0F4EEB for ; Wed, 29 Mar 2023 18:39:12 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id y15so22581945lfa.7 for ; Wed, 29 Mar 2023 18:39:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680140351; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=eY8yoI87Fw9sjvQOAcytic4aFldeDuP0KE7rLqC2tzA=; b=m+dHxMa0el4FJBFdtSzfkNiBgDSQwwDlzm0EI2e0xBVMRsG51xpgOfqs54kTHURZTo xh0uN6A+IPKjUxjgmLF33J5glnaIYQCRpHSHNTWDtxyXtDMCGKBeLHzeza3oSpHxejpY BLemhxxpmKcsYRbbZWFH2NeWVe+4CWyU9J+EHdqYSc/ncVXeofRs40x3LfuAzy4C80bA KfvxgqNtQagprilzWQ9P7GPTHREv9hLZRWdWesh/Or2ti87mb6UTw37gTgCFgyrQooFF /8RR2VKqFJKhOT8UGu88jFxrpZabuJB4VYjTBlDtUHMyebD+8WN0ra+oaokQ4XzTjgHv hJOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680140351; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eY8yoI87Fw9sjvQOAcytic4aFldeDuP0KE7rLqC2tzA=; b=HPCzc5aY8Z63wtXN7cag1UEPdbaAOPW30AgsSdZIuMlbuf//fShDG5LYr8+dOQNW8n NiCiDinxLmA2ii2CqQ7wA8DINm+1T+fhy/VbPfPudro/KuoGZxfhDs/1j4wa/KGBzYpz Dz5H8fa1xr8uOlH3aT42lrMa4JiSEMOvy88Et0Q1xztMA9z+ldrr35+BE3PShQx288/A s3lN8L+3oy62Kp9Jn/ppGJNEhgSF0K/MgCh0MRpirAPvouUgKVFvCenZ3GUA97E3RXMl TL2IuQspoPEkuouxegDyLwHeDJc1BOMDutBbAEseUib6v6IqzyoqWyeyV2vdEHcFo9tv 6qTQ== X-Gm-Message-State: AAQBX9dPh2uV4Cp+OaoO7Ntdi9m2p30QLp3jCYb/Bj6JaQMAjpJNOOar 1Z8SRElVcscecI79gVdmAkFF64Ps21Q6wd5heuCjAHPP X-Received: by 2002:ac2:4436:0:b0:4e8:9049:b640 with SMTP id w22-20020ac24436000000b004e89049b640mr6389757lfl.4.1680140350794; Wed, 29 Mar 2023 18:39:10 -0700 (PDT) MIME-Version: 1.0 References: <1680086855-7989-1-git-send-email-zhaoyang.huang@unisoc.com> In-Reply-To: From: Zhaoyang Huang Date: Thu, 30 Mar 2023 09:38:48 +0800 Message-ID: Subject: Re: [PATCH] mm: mark folio as workingset in lru_deactivate_fn To: Johannes Weiner Cc: "zhaoyang.huang" , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, ke.wang@unisoc.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 29, 2023 at 10:55=E2=80=AFPM Johannes Weiner wrote: > > On Wed, Mar 29, 2023 at 06:47:35PM +0800, zhaoyang.huang wrote: > > From: Zhaoyang Huang > > > > folio will skip of being set as workingset in lru_deactivate_fn. > > Can you please elaborate why that's undesirable? What's the problem > you're fixing? If I am correct, folio will skip being set as workingset when moving from active lru to inactive lru, which is performed on every folio in shrink_active_list during normal reclaim.