From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 72412A00C3; Wed, 2 Feb 2022 23:40:03 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 005FA40688; Wed, 2 Feb 2022 23:40:03 +0100 (CET) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by mails.dpdk.org (Postfix) with ESMTP id 42ABA40141 for ; Wed, 2 Feb 2022 23:40:01 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 800F032020D3; Wed, 2 Feb 2022 17:39:59 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 02 Feb 2022 17:40:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; bh=hjhhU1OVaFiNO6 zM2s4SoOHSeNgbZJOGUKghp8X/7Hk=; b=gA37Mwhf/+cTBKxDhlgwCNKR6tIUDM l9GIncKF1LckYmDCGEp/DDXVyLbzf+0vnNaEErPkDWv5oHxZ0ksNDlWckZFQLdYX +vrkrHbChwqAG2BViPvDVPl1yUjlymaV/GVjkZtB0MitjgyFM2kMS3bYWYsbnY/n Akb29SZVf/EnxkEh7BFFptiSm1PHWHfL9rbCZq+QOz7+O6U6CR/YpRS/F0NhVXWE UDVlZoZxfRdZBBxMmslcycb99BXH3ww3dURO6UI30bdGn8TbcKk8ANS2JwWMNLja X3jOsPauSdgGS3KLEStsMaO8zqaSbRBd6kqn/LsBBpYwJEnde/NT2XPQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=hjhhU1OVaFiNO6zM2s4SoOHSeNgbZJOGUKghp8X/7 Hk=; b=e7QVLg/ZfNt5CPpBCRdLPB1JefYf5rT5pGx3FffJTb74FX1rK31Aw19PP Zxd/rgYYRJ607xa/9CbAH0SyWtGvy0YOBESO/3adxw/f0sKMqeLAbaLVAMFWMLiW xIdEx/n5zRQy+xRylQ/0WsVnJ4ZetjEna+FEXrcA88l153nBE/ie74X7+KRduAWj Jvmagjhe1ACfWkkDt/iK99vhNTx+W6VGrhEoJqafqY42EfVFHz32kgQ1uavznGkX 9asGsPIZkaiA2CZ6bdbqSURMqNBUSdOqP5lsA4PkCxEO7Ncu2sQeK7WHPWe7+Wtk b53e0n1tjJg1xrjC/Y1r5+D841xYQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrgeehgdduieefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtqhertddttddunecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepfeegffeihfeftedthfdvgfetkeffffdukeevtdevtddvgfevuedu veegvdeggedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 2 Feb 2022 17:39:57 -0500 (EST) From: Thomas Monjalon To: mb@smartsharesystems.com, Olivier Matz Cc: dev@dpdk.org, andrew.rybchenko@oktetlabs.ru, bruce.richardson@intel.com, jerinjacobk@gmail.com Subject: Re: [PATCH v2] mempool: test performance with constant n Date: Wed, 02 Feb 2022 23:39:56 +0100 Message-ID: <2136525.ZfL8zNpBrT@thomas> In-Reply-To: <20220124145953.14281-1-olivier.matz@6wind.com> References: <20220119113732.40167-1-mb@smartsharesystems.com> <20220124145953.14281-1-olivier.matz@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 24/01/2022 15:59, Olivier Matz: > From: Morten Br=F8rup >=20 > "What gets measured gets done." >=20 > This patch adds mempool performance tests where the number of objects to > put and get is constant at compile time, which may significantly improve > the performance of these functions. [*] >=20 > Also, it is ensured that the array holding the object used for testing > is cache line aligned, for maximum performance. >=20 > And finally, the following entries are added to the list of tests: > - Number of kept objects: 512 > - Number of objects to get and to put: The number of pointers fitting > into a cache line, i.e. 8 or 16 >=20 > [*] Some example performance test (with cache) results: >=20 > get_bulk=3D4 put_bulk=3D4 keep=3D128 constant_n=3Dfalse rate_persec=3D280= 480972 > get_bulk=3D4 put_bulk=3D4 keep=3D128 constant_n=3Dtrue rate_persec=3D622= 159462 >=20 > get_bulk=3D8 put_bulk=3D8 keep=3D128 constant_n=3Dfalse rate_persec=3D477= 967155 > get_bulk=3D8 put_bulk=3D8 keep=3D128 constant_n=3Dtrue rate_persec=3D917= 582643 >=20 > get_bulk=3D32 put_bulk=3D32 keep=3D32 constant_n=3Dfalse rate_persec=3D87= 1248691 > get_bulk=3D32 put_bulk=3D32 keep=3D32 constant_n=3Dtrue rate_persec=3D113= 4021836 >=20 > Signed-off-by: Morten Br=F8rup > Signed-off-by: Olivier Matz Applied, thanks.