Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1370088lqb; Thu, 30 May 2024 08:17:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX1iXr6RcCjLklN40Kz7e9SrM+4eOY4YkVLSDgsWfAdOCefDOwodCkjWId7zkUxfFytRYqfzYhXIepVDMy7PUtqHRWxos6SrZbMlvpAXw== X-Google-Smtp-Source: AGHT+IGkUThoYrAkLYkoYMVTnmNgOgxr7c5jnHnP+KKZEeZfBIaAN1YVEBp3KyqPnM7+vUfbhk5V X-Received: by 2002:a05:6214:440a:b0:6ad:79e7:fe47 with SMTP id 6a1803df08f44-6ae0cd3ded3mr31151956d6.53.1717082224194; Thu, 30 May 2024 08:17:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717082224; cv=pass; d=google.com; s=arc-20160816; b=KB8RnMmV0QbkQe8Y6ynJJFmo6KCYEBYVKoh/uymobpJY+1mEhAbr5QxHxgsS9vpT5o fI3dA73Xqkm/Y6PyVsVMWAdwakcxOp/Bs5JrTUlTPt78wvcvBKySY/Q59LOKtFMuj9Fw oss5VnFV6KyWYecsRoBq26/weDjPSGxaO9sHIHf3gcUokwzJQyFElwnsaJt1ALw9oWLx PYiD4me39tOtnQ4MMcWt2FLmnFLYILw99SEro4lBmn/U4mh0/ehs1GkHiMFSAGyOOPOP uVF7kP5O5mkfqnqoe+2PZylBLgZfaan3fAS8H70tf8ZyNbg4r7jQHoyDHNtApTyRuxbY 3tzQ== 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 :subject:cc:to:from:date:dkim-signature; bh=ORYwaxh9up/d2sIKUXpb0kYzb0BU20ZxfZelxBlvNq0=; fh=NYtHr+eZFLVGSGiSNGZBI1+AZOANsZ12MHJrlUh8tMk=; b=hf0mPIXcJiLscjtCfMwh9rNWHj2aTWcfH/hrGJfH36rKhgOGeqvGm/Gii/KrMPuvp9 cOMgKc5ZSmqFmOe2U51Twb743yUX8lY+AsOzm/vHLejphvX29iOwLyGyTll+usytHTup oc258cOsgCcKhbRuwjX/vFz33QwujUVMiCFBMalnw/zLYrJKSp9IuMoY/GQLFb/C6QB1 NxMieW4ugySggifaNsZSEhRN8WNMpFhnwGkXyT+9KTe4u2fRlZn5NFVpB7KnGH31cSqe tsBVAKQtOLDQrxHXr5STa5o0zZbxWj5idOPMMDq2gzEQ7SMbMLEPybwBeuNEqPD41L6W ZP1A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JqM9B8lg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-195590-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195590-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ac070f3197si19239846d6.202.2024.05.30.08.17.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 08:17:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195590-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=@kernel.org header.s=k20201202 header.b=JqM9B8lg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-195590-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195590-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 E68221C24A60 for ; Thu, 30 May 2024 15:17:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 73CF61E889; Thu, 30 May 2024 15:16:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JqM9B8lg" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 94F32187540; Thu, 30 May 2024 15:16:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717082215; cv=none; b=aKfPl5jdNpEXl9tojErftjSBNQn6VQz2cjSaanLaYIkAGERLn42hIuBS9xjdGyS3G+UxMKkZ+09LhEfkMD6viaC8AGmp5a/yfP+QRpWVCbJ6pKIOVeBHzVDYu+1imUDYSEziwHU318gsrWPPfyzk7Wtms+9yzxZyEitoKiJy/bQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717082215; c=relaxed/simple; bh=fa0yMmxC2QPbMThwYz+/xLlUrjogilIctWdLDj2RcM0=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=JQQIP/SX9hj7Ayuwfctm0ZEBhpE3wWv05lPlbN70eLOpa7IX/aX6U3M4sr9vZV8AGqqw0QWPZkUGDUSiVWBWmxCRJkUe8oSGuTBiyMm84Rbvqmbw9A/vKlayo7fOs0e0E6UyuXDO9edgpYkovDscOnjkuEG7LBY/FxdYlPBtqiQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JqM9B8lg; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE0DFC32781; Thu, 30 May 2024 15:16:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717082215; bh=fa0yMmxC2QPbMThwYz+/xLlUrjogilIctWdLDj2RcM0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JqM9B8lgLMEU14G4JMKkVxyi0rQSZ0GgNxBmdZ31ubamsPc3dAsXAPpNIsH/KHkIg mKhYPU5eqT0XEfOdVIfwx3e1xJ/9bslazZjlL6GJRYiLyzFI5/FHsgY5alz4vsg+Yl uxYZhauXnZkjj18On86xNKMvuypSdlN9XZ341erSw5lylEkj7AtuXzWoOTsLAA+uAH 7cpnm2s5ZS9XFX+TsFyPGXV0a2VoFX87MeUHrFZVnrfpcZvwi7/vMGjOioJSAemWNm n8Cx1Mty3Qw/sNkVaN07nYH353czFcdFcGpoJvTruWwqicqmEXb6+4VLuvZiMVxAbv lNJWpwXOdPpJw== Date: Thu, 30 May 2024 08:16:53 -0700 From: Jakub Kicinski To: Yunsheng Lin Cc: , , , , Alexander Duyck , Andrew Morton , Subject: Re: [PATCH net-next v5 01/13] mm: page_frag: add a test module for page_frag Message-ID: <20240530081653.769e4377@kernel.org> In-Reply-To: <1cba403b-a2c7-5706-78b7-91ccc6caa53b@huawei.com> References: <20240528125604.63048-1-linyunsheng@huawei.com> <20240528125604.63048-2-linyunsheng@huawei.com> <20240529172938.3a83784d@kernel.org> <1cba403b-a2c7-5706-78b7-91ccc6caa53b@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 30 May 2024 17:17:17 +0800 Yunsheng Lin wrote: > > Is this test actually meaningfully testing page_frag or rather > > the objpool construct and the scheduler? :S > > For the objpool part, I guess it is ok to say that it is a > meaningfully testing for both page_frag and objpool if there is > changing to either of them. Why guess when you can measure it. Slow one down and see if it impacts the benchmark. > For the scheduler part, this test provides the below module param > to avoid the the noise from scheduler. > > +static int test_push_cpu; > +module_param(test_push_cpu, int, 0600); > +MODULE_PARM_DESC(test_push_cpu, "test cpu for pushing fragment"); > + > +static int test_pop_cpu; > +module_param(test_pop_cpu, int, 0600); > +MODULE_PARM_DESC(test_pop_cpu, "test cpu for popping fragment"); > > Or is there any better idea for testing page_frag?