From patchwork Thu Feb 1 03:27:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nhat Pham X-Patchwork-Id: 13540594 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0C32C47258 for ; Thu, 1 Feb 2024 03:27:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4B6886B0078; Wed, 31 Jan 2024 22:27:22 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 466536B007D; Wed, 31 Jan 2024 22:27:22 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 306336B0080; Wed, 31 Jan 2024 22:27:22 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 1DC0D6B0078 for ; Wed, 31 Jan 2024 22:27:22 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id B18F2C0584 for ; Thu, 1 Feb 2024 03:27:21 +0000 (UTC) X-FDA: 81741799482.01.C35D7CA Received: from mail-qt1-f169.google.com (mail-qt1-f169.google.com [209.85.160.169]) by imf04.hostedemail.com (Postfix) with ESMTP id ED3AA40008 for ; Thu, 1 Feb 2024 03:27:19 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=jFS1VDhq; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf04.hostedemail.com: domain of nphamcs@gmail.com designates 209.85.160.169 as permitted sender) smtp.mailfrom=nphamcs@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1706758040; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=Ml7lE/7jOU9DhBBfBhymR3i9jaBtoqE5+xDv3Ffc69o=; b=YktMM6CaYf+wmmTAzdmPhnrcbTGi4dZCrtGOrK4edg8G7/xj6H+5k+eN6JAVd1maFEzDzA oG8vNxG69KDnyBgJU6YyhXNPg0tBtRoNzMad/2AJPs895jTZS/qr23xMMUfkPjQpxmm6bT ye5wWYpMDyqSqRPxz8LKeqFhE7DDYeU= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=jFS1VDhq; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf04.hostedemail.com: domain of nphamcs@gmail.com designates 209.85.160.169 as permitted sender) smtp.mailfrom=nphamcs@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706758040; a=rsa-sha256; cv=none; b=cwtG9lnLcNvYiUjSQCyIgMAdL0uzPH3+dgLQwl4btUFUlO15GYXue11JNuDNpYZ15tEnmt 4VVEyI/COCSpVcZHodCXWFPmqZs3udtJf9xercGHOYXTcKnxecEn78wxH5LYF1yyWxRG3s 5Aunuqs4fu9LSYqM/L0tuJr3nq9hNj4= Received: by mail-qt1-f169.google.com with SMTP id d75a77b69052e-42a99cbb4bbso12515791cf.0 for ; Wed, 31 Jan 2024 19:27:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706758039; x=1707362839; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Ml7lE/7jOU9DhBBfBhymR3i9jaBtoqE5+xDv3Ffc69o=; b=jFS1VDhq/CAh5yd9dGCvlY0x2dYqEanbc0np/ykAZTcagZWFIAKZ4ZrARrgbz8XRoL Nj3uI8njLTkU7hhrtEVDINlU7+zK0C2vxULL3w5Hc6dafsrOTJeJ/9elaF5mqOsCLbVL Na/cfjRx0ntvYmVSC6m4wCh5YBMnsaO7tVJxbkqYz2P6KE2ZoPK6foT24x/6oVPuwyiD 5WgtH3oVNxgMq3TEVu/sEkrL6qIfi0fmgJX81/vT7/wFqfIFLRk6pNwslG+/5XvZKCpz PAEM/GT2WGC8Ko57UMj216vgoYwhH91s9xTdVZfRPeWzQf/GFegkgKyQRk1zYvX4pGjr jXIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706758039; x=1707362839; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ml7lE/7jOU9DhBBfBhymR3i9jaBtoqE5+xDv3Ffc69o=; b=ccB1LeMaqnKn4JI0oJCYz+7XYgMhJlOw2VGF+eqiLunchHsK1xapZkWyWpfoYarPyE iA8Zgk+ZcG1F6fpSdeSGVWaGGpysEsSIbftpMm9B/ktm+ZtjuxnBYOmM1Zf3q2EGXluO jWG14ne7ZxV0TG074zzwpHa3DGSrdd8AOmDHQzvwt64Bq6ys1fxinpW4HSplIf5++H1Z byanCs8BOox3HPsyIm6XlXBbGb9Xr3AHsBHpv5LrXZnu50G4kGiHMnmNo8MUAlY6e3yX uu7FA300JtiWeJ9jezqKC3cmtAKVyLWZqdjsahu6PmYQOl5NBxjusXhV76fQO5+far6k 51vg== X-Gm-Message-State: AOJu0YwlEgRR5nV1S3prTNBe/fHZvYtSNPHz/TYyhBDX+FbdghTav9KO t6LcEmVIk2SPeiErHgS86ObwMTQBsErC/IML9LyNmRtI2aNj1rQy X-Google-Smtp-Source: AGHT+IEj9kMOOz+9SCiW2EFu9sHCzGgG9Bm0j5cHeHsr2RTAMIxEm31fZoadkKxBZYvSGCiyk91YUA== X-Received: by 2002:ac8:5b8e:0:b0:42a:b06e:84db with SMTP id a14-20020ac85b8e000000b0042ab06e84dbmr4152150qta.12.1706758038978; Wed, 31 Jan 2024 19:27:18 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVpTlPL6phPPb+F7RFeSGIoQuPnkjXlvQfb8HqNdJ4jYPm8PVJUa5m61jo4k8SE//F5PoXQ9pjMADDhOYjImRj7nPzH6C+CP/IZlAXFJErzvq9Cn4P9AJnw9bJrQLV+5hPiGvzPi8hIzSn2jw4uMdlpiLcZprTyFgza/bHExC9KacugdVAr2VgE9Jr8syfRmjKd+sQbYHjGkQqbk9EyBLNLUO6wJdXslBVnwylTsXzqERmmlhXtFReTgf9H/LotUrDhimvCmWTOApBUNkdoZ4gX9KpIXYPZm1s1rItuELqRfqGSLs/8Uo0ANL3ejopexusS8dJ0gLbMPeNP3iMtrdh5TX2dWG5kx90G4cQ79KdTGXf/ck0K Received: from localhost (fwdproxy-nao-001.fbsv.net. [2a03:2880:23ff:1::face:b00c]) by smtp.gmail.com with ESMTPSA id eh10-20020a05622a578a00b0042a40e3ca9fsm3941273qtb.85.2024.01.31.19.27.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 19:27:18 -0800 (PST) From: Nhat Pham To: akpm@linux-foundation.org Cc: riel@surriel.com, shuah@kernel.org, hannes@cmpxchg.org, yosryahmed@google.com, tj@kernel.org, lizefan.x@bytedance.com, linux-mm@kvack.org, kernel-team@meta.com, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v2 0/3] fix and extend zswap kselftests Date: Wed, 31 Jan 2024 19:27:15 -0800 Message-Id: <20240201032718.1968208-1-nphamcs@gmail.com> X-Mailer: git-send-email 2.39.3 MIME-Version: 1.0 X-Rspamd-Queue-Id: ED3AA40008 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: mhjd9ok5hkkzuf8sqx3pi5od8taokoe8 X-HE-Tag: 1706758039-395129 X-HE-Meta: U2FsdGVkX1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toxBMxLom+AsMJL2gWVD/FYF9SJvlBRrV7oZhwOHiuh1Rk5juuahZuST29S8I5qsyb4FNtMrHEbslZzAwCJf0IBqtb36zVc8EpL9Wbtiniq/0aL9GJlsrBQMSFBPr5ZSfhwVaQPHujxp93yxkyS9hh6LSFsr6fA6CIPgwco7egk+eCMBFPQgqiUAqyYjyEA2ZXLvTq/59p/PyvVOr7FUpS42hf1lyUI+/YXd2TOstZYIp8gxFVlvbY6BklGQQptiHpIPH01DiHXskxATDwOjR+RyGaxSZeCtyIvJJ9cBDCVFqQmwR8I5u8g== X-Bogosity: Ham, tests=bogofilter, spamicity=0.002785, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Changelog: v2: * Make the swapin test also checks for zswap usage (patch 3) (suggested by Yosry Ahmed) * Some test simplifications/cleanups (patch 3) (suggested by Yosry Ahmed). Fix a broken zswap kselftest due to cgroup zswap writeback counter renaming, and add 2 zswap kselftests, one to cover the (z)swapin case, and another to check that no zswapping happens when the cgroup limit is 0. Also, add the zswap kselftest file to zswap maintainer entry so that get_maintainers script can find zswap maintainers. Nhat Pham (3): selftests: zswap: add zswap selftest file to zswap maintainer entry selftests: fix the zswap invasive shrink test selftests: add zswapin and no zswap tests MAINTAINERS | 1 + tools/testing/selftests/cgroup/test_zswap.c | 99 ++++++++++++++++++++- 2 files changed, 99 insertions(+), 1 deletion(-) base-commit: 3a92c45e4ba694381c46994f3fde0d8544a2088b