Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp980406lqb; Wed, 29 May 2024 17:29:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVpcbQSLF33kODMOD+w7hdlQUa91CGRrIkKC+RxDYYFiP08GlObhOaQ8qL2IIXgDiGoIpHpyRx5AcuDsfKPZz5tQA79m7u6KKoodGKugA== X-Google-Smtp-Source: AGHT+IHDH2ypZpY1y+h6HyTfkLHkI9zUTwM8FV+lR67qUiEzudaZTJ9/7WQHf5XAr0qB9myw6ZZC X-Received: by 2002:a05:622a:2c2:b0:43b:a44:f83c with SMTP id d75a77b69052e-43fe932172dmr9958471cf.56.1717028988877; Wed, 29 May 2024 17:29:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717028988; cv=pass; d=google.com; s=arc-20160816; b=QudUVpyF5hLSuc/HD/PtSR/dqm2EtYUJwJCjmqV8mjsFr+NRQMS1OUf9tBCxrS5TMN 8k39Gvg2Gwqag32Zuk9BFPwv45oUrUV5kGPP1/YYCunjiAwp4F0AKGOHbdc7hWmNZg2L Bm9cGzhFjkNimdGc2Xkj6BluGRLbTijupm6tvjyKYVnxyZmc/AjFptU+5ao5dWYIQmyk +XevPWesGhC2uomFMtZlicPiol5LpXDKbqOG9E0lmr/nNm5BHF3vMP44idCFkEKS3Me0 rv+yjUdH9dtLtcERjOK37HBOAZ9Vd39hFeX7/nL9EJBHw2O9qCJPOdMeSmtPcvrMP1AQ zTQA== 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=2aqzD5D9IJM09vV30/YaYZrcq6L0BPizrHchWosZsAw=; fh=NYtHr+eZFLVGSGiSNGZBI1+AZOANsZ12MHJrlUh8tMk=; b=bEYRuPdvSRLLJZJeoqNBoqUhUVEKbIZbakQtILuDoPd/GOOLWfz5maX0M95EGqvlhF dR22lgkf5JKRZ7eFjoC7e/P60ym5UNOFcD5cFkz4GdfxUc0WbeUcABB68sKE4YzA2+kB u48Zs8j5JqViO1JSuVLvdw+lsOoYXUdXGLDs/MKnODkva2sdpHc2zYeequ0r3vKHO/QW +2pCvR3k3X6/HVsZzXuG4Sar7HpVkgd8raIc29+j+Ca0y/IocVZ4Xfn+aWx1kRpoVK75 Ht+x0MyiPBjwla65zA84Ua/ZnB5+o+9Mjqxa9KgIpM6gTowj1AoiwKO38RiACHZmqdud sEbw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uufFWBty; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-194810-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194810-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 d75a77b69052e-43fb17ba87esi136673501cf.71.2024.05.29.17.29.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 17:29:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194810-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=uufFWBty; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-194810-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194810-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 9045D1C21717 for ; Thu, 30 May 2024 00:29:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AC6B5C12C; Thu, 30 May 2024 00:29:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uufFWBty" 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 D033879F3; Thu, 30 May 2024 00:29:40 +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=1717028980; cv=none; b=Pp3QHM+w4SLuog+a9rWeO1vsLPlcmqfF/A1GulxQGfJ/4SK80WT2Ho6AOiGOfm5sapWGQxHRFU+TXvvqOK2eV4YGDTa2/W65QwMUdxlX69GRFDX5N00DvFeqFCyHq5V2IInkHYgAICvTB8TMZLzInzxTMCFP2TOtb+RY5GQyzy8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717028980; c=relaxed/simple; bh=fEP+M8KbG0s825x+RU/s5AgYR04x7FtEYG8ZhtE3mC0=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=pvqYKV+InakIIvw3HSREMvdc6xe8D840MBLkbRR0JEPm0HcgDKy0GpgPswI0teXabCg+4c4/78UctEvRSAhcw8CvFO6KZyhOUuL5Ntusfx9ir102flnE2pQswMKUKx2Po+93RRMmMnbrLLd3zKQj9hmfYX0nbqQdCnnVlCGi39g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uufFWBty; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DCE0BC113CC; Thu, 30 May 2024 00:29:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717028980; bh=fEP+M8KbG0s825x+RU/s5AgYR04x7FtEYG8ZhtE3mC0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=uufFWBty26DjvFtaqYGmWOgTd5LPUK+oABjlrleWSPIf2MIdwPgiT3N7MvFkjh0lM JEMBgrhW7zpEr7Fso/3HG1cgh7R1ZNmbc2W1mBYpAt3COehPuJc0LqDzdZj/d4OJCc GA8Jc0byhbSrE8cgoev7WFUb7XILexTBZY3rybiSzLcPuqkgtPV+H8NPX06Vh0aw8R cV4i1Bi+qmhpjP92Pqz8YpfC55tWa/VkcanyHs5ZLC2wvSXd3qikHAD+bO52g9Xtz7 JgafSECxfIXWcTLZ1uIfBvGXtESa6GUcQJqDfUa+lorbO6/2Ks++4NOt3PVvd4bo5n WVZvRdyJ0gfLw== Date: Wed, 29 May 2024 17:29:38 -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: <20240529172938.3a83784d@kernel.org> In-Reply-To: <20240528125604.63048-2-linyunsheng@huawei.com> References: <20240528125604.63048-1-linyunsheng@huawei.com> <20240528125604.63048-2-linyunsheng@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 Tue, 28 May 2024 20:55:51 +0800 Yunsheng Lin wrote: > Basing on the lib/objpool.c, change it to something like a > ptrpool, so that we can utilize that to test the correctness > and performance of the page_frag. > > The testing is done by ensuring that the fragments allocated > from a frag_frag_cache instance is pushed into a ptrpool > instance in a kthread binded to a specified cpu, and a kthread > binded to a specified cpu will pop the fragmemt from the fragment > ptrpool and free the fragmemt. > > We may refactor out the common part between objpool and ptrpool > if this ptrpool thing turns out to be helpful for other place. Is this test actually meaningfully testing page_frag or rather the objpool construct and the scheduler? :S