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 DEEEEA00C3; Mon, 17 Jan 2022 16:51:36 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 90C7041C25; Mon, 17 Jan 2022 16:51:36 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id C6E9E4122E for ; Mon, 17 Jan 2022 16:51:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642434695; x=1673970695; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=rdPmvZBQUQDRD+OJFhTH8JPoH6rgU8rpaeUv0LLLtQA=; b=T0kkz5eNKcmRxzb9EKKh1B4apSuYTzxISJrBomrXd5qZYlf1b34TbmNj RP/i8LN1lKvXvq2TxP+z9jDhJozVxe/Cp4dketx/HLa7K5towuU3WjvyB H7NPgzCxpbxxk2d8jqwS4E2xmwoXTHZ7san0qNzpYy1tUYD5CAvWmhSmq uGyufWEGloYN4Ho1zNOK3GodhlZcohOhw6e1nRnI/MVvnzUzhfdIzjqwQ fdi9Xxt7cLbEu0wKbyWu/ywVrsGGpxz8A6mvwmJ7uZCkrGTVoFIf6x2RX n6n5apeemlGQJb3bQguvRRN/RvkEmrbgrLWKL93Gw/caJam11Dn3qKqG3 A==; X-IronPort-AV: E=McAfee;i="6200,9189,10229"; a="244445494" X-IronPort-AV: E=Sophos;i="5.88,295,1635231600"; d="scan'208";a="244445494" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2022 07:51:17 -0800 X-IronPort-AV: E=Sophos;i="5.88,295,1635231600"; d="scan'208";a="476691558" Received: from bricha3-mobl.ger.corp.intel.com ([10.252.26.87]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 17 Jan 2022 07:51:16 -0800 Date: Mon, 17 Jan 2022 15:51:13 +0000 From: Bruce Richardson To: Dmitry Kozlyuk Cc: dev@dpdk.org, Aaron Conole , Viacheslav Ovsiienko Subject: Re: [PATCH v1 2/6] app/test: add allocator performance benchmark Message-ID: References: <20211230143744.3550098-1-dkozlyuk@nvidia.com> <20220117080801.481568-1-dkozlyuk@nvidia.com> <20220117080801.481568-3-dkozlyuk@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 17, 2022 at 03:47:41PM +0000, Bruce Richardson wrote: > On Mon, Jan 17, 2022 at 10:07:57AM +0200, Dmitry Kozlyuk wrote: > > Memory allocator performance is crucial to applications that deal > > with large amount of memory or allocate frequently. DPDK allocator > > performance is affected by EAL options, API used and, at least, > > allocation size. New autotest is intended to be run with different > > EAL options. It measures performance with a range of sizes > > for dirrerent APIs: rte_malloc, rte_zmalloc, and rte_memzone_reserve. > > > > Work distribution between allocation and deallocation depends on EAL > > options. The test prints both times and total time to ease comparison. > > > > Memory can be filled with zeroes at different points of allocation path, > > but it always takes considerable fraction of overall timing. This is why > > the test measures filling speed and prints how long clearing takes > > for each size as a reference (for rte_memzone_reserve estimations > > are printed). > > > > Signed-off-by: Dmitry Kozlyuk > > Reviewed-by: Viacheslav Ovsiienko > > --- > What is the expected running time of this test? When I tried it out on my > machine it appears to hang after the following output: > > USER1: 4096 10000 3.44 1.11 4.56 0.67 > USER1: 65536 10000 21.85 14.75 36.60 9.38 > USER1: 1048576 10000 481.40 329.96 811.36 147.62 > Just realised I stripped a bit too much context here, including section title too: USER1: Performance: rte_malloc USER1: Size (B) Runs Alloc (us) Free (us) Total (us) memset (us) USER1: 64 10000 0.10 0.04 0.14 0.02 USER1: 128 10000 0.14 0.05 0.20 0.01 USER1: 1024 10000 2.39 0.15 2.54 0.06 USER1: 4096 10000 3.44 1.11 4.56 0.67 USER1: 65536 10000 21.85 14.75 36.60 9.38 USER1: 1048576 10000 481.40 329.96 811.36 147.62