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 EAF8AA04A8; Mon, 24 Jan 2022 15:57:53 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7BDD54114E; Mon, 24 Jan 2022 15:57:53 +0100 (CET) Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by mails.dpdk.org (Postfix) with ESMTP id B37A740040 for ; Mon, 24 Jan 2022 15:57:51 +0100 (CET) Received: by mail-wm1-f43.google.com with SMTP id i187-20020a1c3bc4000000b0034d2ed1be2aso32969925wma.1 for ; Mon, 24 Jan 2022 06:57:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=kdzedTQWV5HdKw2zcVgubWB2qa198jimT6IrC5C6570=; b=gVK/wZDU2JLAblyUhYcWX+1hB7fEmbNDD0WznT9XXmW0nuJUrVpiZxLYyZzK8fvYgK CMZrVXnOALTiEbvErGYG1sxoExKKPQ/o7Cq7Ul10tnDa/VwAvahuC8pSaGTx+cGuYmcb JNosev6X4ofFeRKPR3DV4lhjdodSSRPTzSw0lWLtU8mjll/n1YTwJUxSvD/YMgioyTcH pDLSz4Y/S/yO2CH4XriLeV2MyVBctAsvPkBl0GQ12XwXG6qBPdR3m0mRcW72yK9OiWcf yutd8H90sTDGnaj6lbtI7FrAqvG70cpvfqvkI4/Yoyxj0a73JrWvg6Z9dXh0CewHny5d 2TOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=kdzedTQWV5HdKw2zcVgubWB2qa198jimT6IrC5C6570=; b=sRl+cZ20TQXKICZOLHm5piK5GVWV/0baTVEpPQ4L75PaBMdK3gYyCmd2NtRm8DJgA1 0nU1rxshVY/G1jUs525krsNComPWJVFIe1Ppz0ru9JzRr4W1ShmJqskWPgbDzmgpE9yb /7PS2Cu61PLccOkT2LslTYnQoYAthRYWrcOdWEyUh2x1conPJFRNimchNqbwY+brlu2R pKNmFK5R7JUrg6icpDAybXZLHM3WPpw55waPRhR7Mhvq/+CPy/vssHuqVBSNiodnVT3p kE7OsQWALJd8x/niXqnjdURyV3RiCWfCjhtEhEpSPc1A0Zt+CzOxsPNM/jDC7+ifeO4M WbtQ== X-Gm-Message-State: AOAM531B4YMmp/ZkVZm1d2VXqhk8kRg6owpEHVcILrZ27OOWOoOMQaWN tZ7CxIMp6+haqJHTZtNICTdKZdYt/n6bIg== X-Google-Smtp-Source: ABdhPJy9+v+xvcwiJ/6BQS7ldnDfPrPbCQ4Y7b943Oc+abpxiwQyZYpP5uLJWoPgAkIGtxsCkCfkYA== X-Received: by 2002:a7b:cb05:: with SMTP id u5mr2179160wmj.59.1643036271432; Mon, 24 Jan 2022 06:57:51 -0800 (PST) Received: from 6wind.com ([2a01:e0a:5ac:6460:c065:401d:87eb:9b25]) by smtp.gmail.com with ESMTPSA id 8sm4387493wmg.0.2022.01.24.06.57.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 06:57:50 -0800 (PST) Date: Mon, 24 Jan 2022 15:57:50 +0100 From: Olivier Matz To: dev@dpdk.org Cc: mb@smartsharesystems.com, andrew.rybchenko@oktetlabs.ru, bruce.richardson@intel.com, jerinjacobk@gmail.com, thomas@monjalon.net Subject: Re: [PATCH] mempool: test performance with constant n Message-ID: References: <20220119113732.40167-1-mb@smartsharesystems.com> <20220124145309.13925-1-olivier.matz@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220124145309.13925-1-olivier.matz@6wind.com> 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 On Mon, Jan 24, 2022 at 03:53:09PM +0100, Olivier Matz wrote: > From: Morten Brørup > > "What gets measured gets done." > > 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. [*] > > Also, it is ensured that the array holding the object used for testing > is cache line aligned, for maximum performance. > > 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 > > [*] Some example performance test (with cache) results: > > get_bulk=4 put_bulk=4 keep=128 constant_n=false rate_persec=280480972 > get_bulk=4 put_bulk=4 keep=128 constant_n=true rate_persec=622159462 > > get_bulk=8 put_bulk=8 keep=128 constant_n=false rate_persec=477967155 > get_bulk=8 put_bulk=8 keep=128 constant_n=true rate_persec=917582643 > > get_bulk=32 put_bulk=32 keep=32 constant_n=false rate_persec=871248691 > get_bulk=32 put_bulk=32 keep=32 constant_n=true rate_persec=1134021836 > > Signed-off-by: Morten Brørup > Signed-off-by: Olivier Matz Sorry, wrong title, "v2" is missing. Please ignore, I'm resending it.