Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6562832rdb; Tue, 2 Jan 2024 06:10:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IHRna16pYyK1nUt+kOo4E+3vU1jggf1g9sk1aNqkq/J8407sejmG0Q7KdTU+55TCQq+5lIf X-Received: by 2002:a2e:b894:0:b0:2cc:e878:43db with SMTP id r20-20020a2eb894000000b002cce87843dbmr4079757ljp.62.1704204602770; Tue, 02 Jan 2024 06:10:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704204602; cv=none; d=google.com; s=arc-20160816; b=e1KL8C98lOOhQNFC6ozvu+EjB3paBOYznNXkTl98X03HSrYmNENmvXk9NUApmPWAMV stuPeJy59CfjajM8bM8lXoX0fve4Jsp4n98IOX8giQanbtpukhTTHDpEoU+DazkxKzx7 N+g9M9LLSXiqi9ZASVaal+rxSDHANwY4ISCF8e2UlcrktCP18ybCCdyO4mYXrcyS90J7 VrPX5C89bB6CQiTWH9aGavJkR07UYG8XIOP8b9Om2eEBxROLwCovdJBA/pCMCH7rat92 FVA/UZDLG8cxydPV560cIACY7sE/NHfzIswtU7N8+WQAyRCeZFAIP5HCkHUJPDODraqu B81Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=0CaqYteyDB6DSZaj2cT5acnP15a5TO5ZRNcWIqlu/lo=; fh=Y+gCdCxG4Y9aAkh+uqYAL12niN1f54akA/ZwXIoX6jo=; b=TO0F3Y4mMq7cRjXhIOEjmOk5mJnRnn+EY3K/KNQyHKkDAKciC93uaMpcxfSJHfmWAM 4KclfMoY/jIfADeSWM62mVrQ7A/fY4hDZs1VoQpou1maEjBPrHqhwykQ4rSNER8jW0iM tseDzNhdzZaYqjpgWyiMUB+iLdEZn79pQXOCt8WqLIovu8Rm5P2375TK51ZK3If+F7/G hcKLO9WzYQmPloXoP/UAY/ohfHEUsjMG3tw0TVU7qn2uIUSOp97XcX1533z+IemX4wUF 9Bd0EnM0Xf6gtF6yNx+UTgoGDqw3nFVi5mR54HLBS8BvnRw/rDGv4QGDcaOdP5BQYZSy PTKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=O6qcUVpk; spf=pass (google.com: domain of linux-kernel+bounces-14468-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14468-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m14-20020a056402510e00b00553756f10aasi11449560edd.592.2024.01.02.06.10.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 06:10:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14468-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=O6qcUVpk; spf=pass (google.com: domain of linux-kernel+bounces-14468-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14468-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 79EDC1F22CB9 for ; Tue, 2 Jan 2024 14:10:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D7C7210957; Tue, 2 Jan 2024 14:09:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="O6qcUVpk" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 6B35D10788 for ; Tue, 2 Jan 2024 14:09:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bytedance.com Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-50e9e5c97e1so933669e87.0 for ; Tue, 02 Jan 2024 06:09:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1704204592; x=1704809392; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0CaqYteyDB6DSZaj2cT5acnP15a5TO5ZRNcWIqlu/lo=; b=O6qcUVpkHMj1aRPNjW5WAYaHAbWuM8RgXykCEnMpNRNrq4re4hYPqU2ulaS2LDSWIG CjGm709oTGZ6J13RdjdlTYoAkaDwSVsWRIQm3EbWARThWlKFWBSowWNqjOjUWJZI92PL rC09orsWUNvjePbkV+2Jas+7mL/fjA1xVDGuMahAtJoenqefFhd5+0tCpbuvt2/wRtBC kGYE8gA1brmfp0NIiWsmGwHZW0J/gsPXLaHoqAYQlKbkkQ5I8/IPFgDD8fXz+kC1Eeve /PJN6+yGOmNeu5sqV9W4KHTvdtxlXA1UuOR/0EBuLWGdMWnorK5Vx3qIXINgJmaYvklE rJww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704204592; x=1704809392; h=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=0CaqYteyDB6DSZaj2cT5acnP15a5TO5ZRNcWIqlu/lo=; b=UlnF78S5gcHMtGch5u0jxgoesS+zxNGVkOPf1B+mi8YqOTqkW9+LHu9AdPdB7fkiZZ vAJeYQIVYa4+Urth50KT3EoYdERU3w/cpbjqO1mzrCCZqUBUqXCglY74Vr/kHrbH3+qh cHYAALftX/aO5EGlcscmtqfE/HkQPIssAJRuW3Ht/kPjy39Yat8L7ELItk1+RfHl2T2m cE3Yzi/2sIdATdxd1tV18EKwV8931lOwoAzeWSQ2Wx6AmNwtzRu4RJf/M2ttQwih2mND DnbKA8mKkndiOFSM8JByvkAuiKqkI2HFfMzw990kprcemFkasFf/waz1eBJJEJiEcJuq Mh9Q== X-Gm-Message-State: AOJu0YxbTC8vhVA24gjRhQsWyTBhLWQnRQoeYSwFHXvLAcrVMjERtEjb Ap7j5FFN3QGufa246nDcf1PTlrQqpb7+9GO0LXEJpjpNk9XNVw== X-Received: by 2002:a05:6512:e9f:b0:50e:7b20:3092 with SMTP id bi31-20020a0565120e9f00b0050e7b203092mr5345311lfb.33.1704204592366; Tue, 02 Jan 2024 06:09:52 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231024142706.195517-1-hezhongkun.hzk@bytedance.com> In-Reply-To: From: Zhongkun He Date: Tue, 2 Jan 2024 22:09:41 +0800 Message-ID: Subject: Re: [External] Re: [PATCH] mm: zswap: fix the lack of page lru flag in zswap_writeback_entry To: Nhat Pham Cc: akpm@linux-foundation.org, hannes@cmpxchg.org, yosryahmed@google.com, sjenning@redhat.com, ddstreet@ieee.org, vitaly.wool@konsulko.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" > > Base: > total used recalim total used > Mem: 38Gi 2.5Gi ----> 38Gi 1.5Gi > Swap: 5.0Gi 1.0Gi ----> 5Gi 1.5Gi > used memory -1G swap +0.5g > It means that half of the pages are failed to move to the tail of lru list, > So we need to release an additional 0.5Gi anon pages to swap space. Based on the results of multiple tests, the following information is updated. Base: total used recalim total used Mem: 38Gi 2.6Gi ----> 38Gi 1.6Gi Swap: 5.0Gi 1.0Gi ----> 5Gi 1.9Gi used memory -1G swap +0.9g It means that most of the pages failed to move to the tail of the lru list, So we need to release an additional 0.9Gi anon pages to swap space. Thanks again.