Message ID | 20240129224542.162599-2-nphamcs@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-43582-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp873068dyb; Mon, 29 Jan 2024 14:46:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgQtVep597n8Bh+iNuuow/G4UVar1z/Jmovb0+64niAnsOVvpHzyHTIm4xEEO9Rw1Fb5w+ X-Received: by 2002:a05:6358:93a3:b0:176:4ac9:5509 with SMTP id h35-20020a05635893a300b001764ac95509mr4097994rwb.13.1706568387148; Mon, 29 Jan 2024 14:46:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706568387; cv=pass; d=google.com; s=arc-20160816; b=qVdHmTQmkD6Mrx5Kbd7380imBInUatGSYvaX3cbDmsZvnxZBE4+jkVnFv1ChgT8IXQ 1uDAdVKoth50EAoQl2fHIdwNuUWgWWCE7A8Y8Ml8o688aBD1SBOoUIj7wQ9baC6k/Cb9 eIfx7EhYVwjr95ed+oLmOk3PcZpzA2hXrJTzmNb/krSovkzCLQaWamxfzqUJW8OB/CZ9 QBsarpZU3IP6FObaCDtUokU6zeZ/jxXxE8sHfI0kAYQIPgIRFj7JVHkwQVISS8kWJo8W ynuy5hmHZF7ZVzHWJ29R8BIdFsaaDcosCtkLO225e4/jp5hpfTfjjMySpq0SX7YGS+0g 0RDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=e3JKWr6vkV83y4YZraciKQHHZz9sGV8OXuuwrIDvmCQ=; fh=E40k7jBxelgu1tep0+JIzfOa4J+ztP2E5627BMk4fJY=; b=N7V4foU+X4rzFbSsmi+Eh5licSSvD25aCFTqIPrW0jfqN0NPRxOJPa2eBzPTUDs6Z0 /WpUsMaGs7rwxYGpdZlfcPGJn4I+jDsZEkTECffrYC4azsHbToVteLSiMJGrnlZIJP8n yXUIygbZy1owGinJJTsXmX3qin7kSIuyAcNGlw9msLk5aY7zOJOGvVY18UrJ2rVWpjru Sjh4IreCGXrYMCYCln/g7K4ci4iOSwbgSvOc7vlJNwuAg64zGpKZlj77XUBiOSFO4aFx +If5itmeUgvFasUc5fDZI4tevNkQQX/ab+pIlXOjv8b0RFGwuFGLh6V4D+A/MF6omHDP Vf/g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CRmpPfhH; 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-43582-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43582-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h4-20020a656384000000b005d8bb714e7csi3986824pgv.593.2024.01.29.14.46.26 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 14:46:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43582-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CRmpPfhH; 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-43582-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43582-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 47462B22E55 for <ouuuleilei@gmail.com>; Mon, 29 Jan 2024 22:46:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D89AE53E3D; Mon, 29 Jan 2024 22:45:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CRmpPfhH" Received: from mail-qv1-f51.google.com (mail-qv1-f51.google.com [209.85.219.51]) (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 B7A494F1EC; Mon, 29 Jan 2024 22:45:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706568346; cv=none; b=tmstdAgSRz6SDWs+OWxzchPGcq/wLPm40Ftgw0s5xcM0sSCalfEtLDnQwJwKgC+J2fRmvto1Du4xVFTy9OrqamNmbhzDMrXRNt0VPFk4z4ARGdLA+7IUzRCNzr8N/lfVKlWc59KhMGkcitU881F94oM7yq+PCEsZrs+yskkJK8k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706568346; c=relaxed/simple; bh=d9dASAYZVxsCcMrrA/Ez2Y9axsArxUPAk21y1cr8mYc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=B6ke1VSIbz0mGI5vptY3wG6+kNL2bY5Txh7QLqesvGKo8aSaXUOIwKKHACFjbHQoIpfihgSaolONkOplZSD9kOVylvxM7QOyDICblwu4xZfkJZQ490mDpoOshRkeEPRz55mTCJF2eO7PxLkguCciyWa8GQKSXRZtjTJv6i4GXTY= 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=CRmpPfhH; arc=none smtp.client-ip=209.85.219.51 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-qv1-f51.google.com with SMTP id 6a1803df08f44-6868823be58so24888986d6.0; Mon, 29 Jan 2024 14:45:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706568343; x=1707173143; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=e3JKWr6vkV83y4YZraciKQHHZz9sGV8OXuuwrIDvmCQ=; b=CRmpPfhHeb2MVT5LgN+Rtf+JVikIrJ1J8ryvIvg1CVSEckk9wZ//NHuqm6uCr6m2d6 KehxIHiLovW0yddXrjZujJ4YnUm7q2idWofzbvBYogmVgVARlLU/bOKqOuvf8uJGD6SK +xwTRqeKg+9vWWimC3vmxvy5oHxV/zHLURdqv0giL5C8dojGUG3d2LvzO4MaNZ2BQdV7 F+tpP5dWhHYYx2ApLxuTWzDsQB75EQwUqNs0PAr/IfK8/r4v8gGTINzQLfeBGyGKGP0D zqnmT+1xkKhhDTAfUMvcmem/kZ90d1T3jBIVTbP79lvkAFQwBEuPdnmNSDQE8Oz5+/U2 58Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706568343; x=1707173143; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=e3JKWr6vkV83y4YZraciKQHHZz9sGV8OXuuwrIDvmCQ=; b=iwzPSHDmpmZ9HSJ3n7AeiyorL2huI/50AVryRDsPXWzll6QafPkMnhUPkDVT9S/x8g k3gbEo2RwjJnVB6uU2oMfDQpUBMhFHf4/nx3PVxQOIj47MlHxVWANjNwqvyNFOsvZm23 IAlXJJYrkZagOwWFE2QQgVoGmV9f3DuIg0gFIEXkPsCod44K4zYBdXJPVHsVAjvb6tfH uaaf1tSssxyTf6IQKKd4wjicE+l29ZwiJa25y7kelyUdCzv4pR6CZuGt7qGIecY1rlKI mZ9NZtpWGQ87Iwbq49HypYPWyGjvCGVFbG2hvuSugasIVIi7HqgkIdBhioiL1NJOjqyq o+dQ== X-Gm-Message-State: AOJu0YytXIks2aWKY2fpMeAnM7bilYSWIwX/5nh9LVARvTjHKcbqAwgO jOQvy37260hNKyoDXX1EERh3yP4RzI7CwOE5alcNPlEJ5QIvngiaHWTSjumt X-Received: by 2002:ad4:5dcd:0:b0:68c:4942:b0b0 with SMTP id m13-20020ad45dcd000000b0068c4942b0b0mr2981525qvh.100.1706568343643; Mon, 29 Jan 2024 14:45:43 -0800 (PST) Received: from localhost (fwdproxy-nao-116.fbsv.net. [2a03:2880:23ff:74::face:b00c]) by smtp.gmail.com with ESMTPSA id 12-20020ad45b8c000000b0068c501d0766sm1260449qvp.41.2024.01.29.14.45.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 14:45:43 -0800 (PST) From: Nhat Pham <nphamcs@gmail.com> To: akpm@linux-foundation.org Cc: 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 1/3] selftests: zswap: add zswap selftest file to zswap maintainer entry Date: Mon, 29 Jan 2024 14:45:40 -0800 Message-Id: <20240129224542.162599-2-nphamcs@gmail.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240129224542.162599-1-nphamcs@gmail.com> References: <20240129224542.162599-1-nphamcs@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789466653297904996 X-GMAIL-MSGID: 1789466653297904996 |
Series |
fix and extend zswap kselftests
|
|
Commit Message
Nhat Pham
Jan. 29, 2024, 10:45 p.m. UTC
Make it easier for contributors to find the zswap maintainers when they
update the zswap tests.
Signed-off-by: Nhat Pham <nphamcs@gmail.com>
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
Comments
On Mon, Jan 29, 2024 at 02:45:40PM -0800, Nhat Pham wrote: > Make it easier for contributors to find the zswap maintainers when they > update the zswap tests. > > Signed-off-by: Nhat Pham <nphamcs@gmail.com> I guess I had to check the zswap tests at some point :) Acked-by: Yosry Ahmed <yosryahmed@google.com> > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index fecebfc4c0dc..5f60faaefaf2 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -24396,6 +24396,7 @@ F: include/linux/zpool.h > F: include/linux/zswap.h > F: mm/zpool.c > F: mm/zswap.c > +F: tools/testing/selftests/cgroup/test_zswap.c > > THE REST > M: Linus Torvalds <torvalds@linux-foundation.org> > -- > 2.39.3 >
On Mon, Jan 29, 2024 at 5:02 PM Yosry Ahmed <yosryahmed@google.com> wrote: > > On Mon, Jan 29, 2024 at 02:45:40PM -0800, Nhat Pham wrote: > > Make it easier for contributors to find the zswap maintainers when they > > update the zswap tests. > > > > Signed-off-by: Nhat Pham <nphamcs@gmail.com> > > I guess I had to check the zswap tests at some point :) We sorely need more zswap tests :) I'm one of the offenders of adding new features without including tests, so no judging anyone of course, and admittedly zswap is quite intertwined with other parts of MM, so it's kinda hard to write unit-ish tests for zswap only. I often had to resort to scripting stress tests to iron out bugs. But there are still tests that we can write to verify public API (cgroup's zswap options come to mind), simple tests that cover crucial code paths, etc. that we should probably add in. At the very least this can be a quick/sanity check for developing and backporting patches into the production system. > > Acked-by: Yosry Ahmed <yosryahmed@google.com> > > > --- > > MAINTAINERS | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/MAINTAINERS b/MAINTAINERS > > index fecebfc4c0dc..5f60faaefaf2 100644 > > --- a/MAINTAINERS > > +++ b/MAINTAINERS > > @@ -24396,6 +24396,7 @@ F: include/linux/zpool.h > > F: include/linux/zswap.h > > F: mm/zpool.c > > F: mm/zswap.c > > +F: tools/testing/selftests/cgroup/test_zswap.c > > > > THE REST > > M: Linus Torvalds <torvalds@linux-foundation.org> > > -- > > 2.39.3 > >
On Tue, Jan 30, 2024 at 10:37:15AM -0800, Nhat Pham wrote: > On Mon, Jan 29, 2024 at 5:02 PM Yosry Ahmed <yosryahmed@google.com> wrote: > > > > On Mon, Jan 29, 2024 at 02:45:40PM -0800, Nhat Pham wrote: > > > Make it easier for contributors to find the zswap maintainers when they > > > update the zswap tests. > > > > > > Signed-off-by: Nhat Pham <nphamcs@gmail.com> > > > > I guess I had to check the zswap tests at some point :) > > We sorely need more zswap tests :) > > I'm one of the offenders of adding new features without including > tests, so no judging anyone of course, and admittedly zswap is quite > intertwined with other parts of MM, so it's kinda hard to write > unit-ish tests for zswap only. I often had to resort to scripting > stress tests to iron out bugs. > > But there are still tests that we can write to verify public API > (cgroup's zswap options come to mind), simple tests that cover crucial > code paths, etc. that we should probably add in. At the very least > this can be a quick/sanity check for developing and backporting > patches into the production system. Agreed. I am yet to take a close look at the existing tests tbh, but I took a quick look before and there is room for improvement (and little bandwidth to act on it).
diff --git a/MAINTAINERS b/MAINTAINERS index fecebfc4c0dc..5f60faaefaf2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -24396,6 +24396,7 @@ F: include/linux/zpool.h F: include/linux/zswap.h F: mm/zpool.c F: mm/zswap.c +F: tools/testing/selftests/cgroup/test_zswap.c THE REST M: Linus Torvalds <torvalds@linux-foundation.org>