Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp352616rdb; Thu, 1 Feb 2024 10:13:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1Pa2rlEKhhiI3mothIDsnSB2C/Ke3Hqj1Xx5dr+/5AikrC//WfNJnoc+ke9aX63HptWne X-Received: by 2002:a05:6214:d6a:b0:686:aaae:a975 with SMTP id 10-20020a0562140d6a00b00686aaaea975mr7153046qvs.6.1706811206779; Thu, 01 Feb 2024 10:13:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706811206; cv=pass; d=google.com; s=arc-20160816; b=xx93sn8kmHa6ZEvm3KTEUvh8aVdqO5AtpGrA6CbrWgCdDRgdQP+gMw25UZLVWA2DFt 7/oGWDzH69mQjaPqPUyV99K43EAWxhNcBOynYRZ26/fhdSVfmuXrTc81xTuhJeTF4ymg YgR1/rDBsVd0XHbvFM33KZQROUXLtn7IQp3GZuBEd2CN4tIavdpU42tThCvfFtJAsiHW 9bNw7evH6Ges3iXv+gK7c81//vZOZeua8BX1tDfwTH/hSndFY4WGZo0auTL5ZXsz4fcj NeBIv03YtBFE/fZ8zLMT5zIGBBZ9n3X/0cibXG39RfvRbWM3+EObtz2g84tDsptfzYOK of6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=wQYi758VcG6rfwo5YK3Vo8ZUKysOs4ztBsO95stpGRw=; fh=fi5e2vrfrneX0R60+uy4b3d97eIn9vn22yBpZhHzVm8=; b=pd0D5obXOEc8I3JXKzMUZ4iC1IgKKjNVa90AqjRcQNrjBd854XD+c/EVSD9QjSHVO4 i+Ls84ySiLFvobrtNfQbr4W3VZ/V99hrrYtJcmC04wsQ8jd14zrZaDmWbYZzZsZvprc1 ElEoh9GTpYGEwNDVPY2ojkhGgRwfkjdlsbx+IvJHrXGcj/XKiLKApuiY+EfXlHnMc0P9 FDpu05frE4fSNOv0WyCiFgqXJtP2KAI0XNVOwaxGQgiZ2PFunwJIiduJbh6qf2JhN77/ faOpxMyLiXhvpDjk86u7S7fQ8OJfUcqHvvAa6VWq41xk98kTSogmCiHm7veVfLzl3oTF f7TA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Tw7Un+XD; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-48669-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48669-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCWH9wkEd6u2+/S0s+QhiGawVLDa9oo5z+t5spCrUxxqrjCXLQeeugGRSvb1JL+ezW2xuL2mMYh6appRU/gZCP8BKHX/6cXAlJlIpE5dTA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s8-20020a0cf648000000b0068c7e98db64si28777qvm.141.2024.02.01.10.13.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 10:13:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48669-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Tw7Un+XD; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-48669-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48669-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 833351C27273 for ; Thu, 1 Feb 2024 18:13:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB76785262; Thu, 1 Feb 2024 18:10:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Tw7Un+XD" Received: from mail-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90A6284FBF for ; Thu, 1 Feb 2024 18:10:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706811026; cv=none; b=MW4+esa43P4sQmrvuvSrxaXB/blPCfu31O5qYOntXkwJT48DWscmSZy6EZ8E1S/vjqLtoMtam7nuGCOa9nE4CbEuPJhQgV8Va74aL6BTjerksdjIgDQF3k99szakMJu3aduVDtUI47pRlIm/IKgxSlEgJZ0+UoM6GAgNgMniUbc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706811026; c=relaxed/simple; bh=wQYi758VcG6rfwo5YK3Vo8ZUKysOs4ztBsO95stpGRw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=jHZHaEQiT1w/e+jOm1eBpg8zw6hwVTs4RutS66KUhvpWPyen/sWkUrFEZD9O2CtnzREZmwifAiYzHdZdOUnxQ5U28IXsL3yg4inTejSi4Ei+PqyZrcewxYc9aJSi0CoE0fmV0jT0+amk57fPW0wyfhIesXAye5DxQ14c6XhDZfw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Tw7Un+XD; arc=none smtp.client-ip=209.85.166.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-io1-f47.google.com with SMTP id ca18e2360f4ac-7bf7e37dc60so44535639f.3 for ; Thu, 01 Feb 2024 10:10:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706811023; x=1707415823; darn=vger.kernel.org; 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=wQYi758VcG6rfwo5YK3Vo8ZUKysOs4ztBsO95stpGRw=; b=Tw7Un+XDN+onITpoqleDJ50toA2UPpjjBFDWWjDs+f8uUzKa4CcdsfS1q1cCvxd+Wq KAor+jMFManI/LgXOrKHu6zzV9jXPfNFRtbat3306VD4TLaswk7H5OrcFH0JWgppXZJG yHbXMk51YfveayhM6J9Hp10t22WnfAodONMoMsRWlsAVALUR0QuCf7xWzPFxRsG3d17a xxiLiB2TCY9w/6iexmc48qB+0EfjzMG+wh2PwxxdmVa+lw2pDmxcrtATkQrzdhQxUTpJ 55TZnwf5OO762MSNlWOqApCyX4iqL6CKw35rq29cF4fxmGwdobpuKRCEK+HLHcmVZsGE yAYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706811023; x=1707415823; 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=wQYi758VcG6rfwo5YK3Vo8ZUKysOs4ztBsO95stpGRw=; b=QSroCMDKx5EuBTo8nHIM3mmTvrYNIKtabfsTMAc/iMaUqrI1kpqtcsRvjIVSId9KoX SGW67je2mbn1LaFLGkodsdp6PbHFIROvzu59a0akFC43p4zxIGZ+qhpd3kq++oJSKpmX +EwcmzgFshV5e2aSjAn3+20FcaZSPh5ipFIiadCVzPUiItTjtlSX9LKhL1GX2b8DNoKW 9EjxMxUX4sDGupN54owZkrfjy/UZcerUcEWl0ahOUSDy+VPkWuTTQ9GkbahDH4xygRQ1 g+r4gtreBhEJ5t6RorhExNr+yEb10pef6sOWonEwEBCKtPaJUBSj7W+Pb++gWo1UCw4H AwLA== X-Gm-Message-State: AOJu0Yxbf/cXX22CXhj6AqySAkYoEXQFjmCyEyqMIS/o9UdtdKIVCdVJ iAOsTxCXSqd/e7jZBHNqIc8+wtZR6tgBZKZCHQmJPcJxnIJvT+athVbujr3C2QVqDo83bo4cpJR UiZMrj1Ip4x6NtlaubvplP0uDybs= X-Received: by 2002:a5e:d507:0:b0:7bf:87b6:623d with SMTP id e7-20020a5ed507000000b007bf87b6623dmr6427451iom.13.1706811023642; Thu, 01 Feb 2024 10:10:23 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240201-b4-zswap-invalidate-entry-v1-0-56ed496b6e55@bytedance.com> <20240201-b4-zswap-invalidate-entry-v1-3-56ed496b6e55@bytedance.com> In-Reply-To: <20240201-b4-zswap-invalidate-entry-v1-3-56ed496b6e55@bytedance.com> From: Nhat Pham Date: Thu, 1 Feb 2024 10:10:12 -0800 Message-ID: Subject: Re: [PATCH 3/6] mm/zswap: stop lru list shrinking when encounter warm region To: Chengming Zhou Cc: Johannes Weiner , Andrew Morton , Yosry Ahmed , linux-kernel@vger.kernel.org, linux-mm@kvack.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Feb 1, 2024 at 7:50=E2=80=AFAM Chengming Zhou wrote: > > When the shrinker encounter an existing folio in swap cache, it means > we are shrinking into the warmer region. We should terminate shrinking > if we're in the dynamic shrinker context. > > This patch add LRU_STOP to support this, to avoid overshrinking. > > Signed-off-by: Chengming Zhou Nice! Acked-by: Nhat Pham