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 EDEE6A00C2 for ; Tue, 8 Mar 2022 15:15:36 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E97744068B; Tue, 8 Mar 2022 15:15:36 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 9BA664068B for ; Tue, 8 Mar 2022 15:15:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646748935; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kUTxROsvP6nDxQYgGr3y7vil37aRzhb/6r8Qa+avq04=; b=Y3I/81mAHL2IrHu03QsaAD8E9thJYTc2Q4KwR17+++sADpEwwyXFm1FJUqB9d5JUFVbbxC mU2jS8jDL1XMdDx9t1VDaSDQVeUdMZAaL+/Z9Sk6LQWbEgTpG6b7legU4u2GQpX/BkVyV8 qmTsnY/VJ68APFziceJj8FwQ6TDEH9o= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-578-samROIZOP8i1M0orl35Crw-1; Tue, 08 Mar 2022 09:15:32 -0500 X-MC-Unique: samROIZOP8i1M0orl35Crw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E10421006AA8; Tue, 8 Mar 2022 14:15:30 +0000 (UTC) Received: from rh.Home (unknown [10.39.195.190]) by smtp.corp.redhat.com (Postfix) with ESMTP id A3BE884629; Tue, 8 Mar 2022 14:15:29 +0000 (UTC) From: Kevin Traynor To: Raja Zidane Cc: Matan Azrad , Fan Zhang , dpdk stable Subject: patch 'app/compress-perf: optimize operations pool allocation' has been queued to stable release 21.11.1 Date: Tue, 8 Mar 2022 14:14:20 +0000 Message-Id: <20220308141500.286915-5-ktraynor@redhat.com> In-Reply-To: <20220308141500.286915-1-ktraynor@redhat.com> References: <20220308141500.286915-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=ktraynor@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 21.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/14/22. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/kevintraynor/dpdk-stable This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable/commit/0fc99dc715acfcaea4c46f9196689aaac600ba6a Thanks. Kevin --- >From 0fc99dc715acfcaea4c46f9196689aaac600ba6a Mon Sep 17 00:00:00 2001 From: Raja Zidane Date: Wed, 23 Feb 2022 15:33:07 +0200 Subject: [PATCH] app/compress-perf: optimize operations pool allocation [ upstream commit 68d3287f4ef43318728e4a134b7aa33d5c52b12d ] An array of the size of total operations needed for the de/compression is reserved for ops while enqueueing, although only first burst_size entries of the array are used. Reduce the size of the array allocated. Fixes: b68a82425da4 ("app/compress-perf: add performance measurement") Signed-off-by: Raja Zidane Acked-by: Matan Azrad Acked-by: Fan Zhang --- app/test-compress-perf/comp_perf_test_cyclecount.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/test-compress-perf/comp_perf_test_cyclecount.c b/app/test-compress-perf/comp_perf_test_cyclecount.c index c215547291..a3f6404eb2 100644 --- a/app/test-compress-perf/comp_perf_test_cyclecount.c +++ b/app/test-compress-perf/comp_perf_test_cyclecount.c @@ -176,5 +176,6 @@ main_loop(struct cperf_cyclecount_ctx *ctx, enum rte_comp_xform_type type) /* one array for both enqueue and dequeue */ ops = rte_zmalloc_socket(NULL, - 2 * mem->total_bufs * sizeof(struct rte_comp_op *), + (test_data->burst_sz + mem->total_bufs) * + sizeof(struct rte_comp_op *), 0, rte_socket_id()); @@ -185,5 +186,5 @@ main_loop(struct cperf_cyclecount_ctx *ctx, enum rte_comp_xform_type type) } - deq_ops = &ops[mem->total_bufs]; + deq_ops = &ops[test_data->burst_sz]; if (type == RTE_COMP_COMPRESS) { -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-03-08 13:55:28.613263348 +0000 +++ 0005-app-compress-perf-optimize-operations-pool-allocatio.patch 2022-03-08 13:55:28.388314865 +0000 @@ -1 +1 @@ -From 68d3287f4ef43318728e4a134b7aa33d5c52b12d Mon Sep 17 00:00:00 2001 +From 0fc99dc715acfcaea4c46f9196689aaac600ba6a Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 68d3287f4ef43318728e4a134b7aa33d5c52b12d ] + @@ -13 +14,0 @@ -Cc: stable@dpdk.org