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 5589848A43; Fri, 31 Oct 2025 12:43:24 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F13954029A; Fri, 31 Oct 2025 12:43:23 +0100 (CET) Received: from fhigh-b7-smtp.messagingengine.com (fhigh-b7-smtp.messagingengine.com [202.12.124.158]) by mails.dpdk.org (Postfix) with ESMTP id 540CD40150 for ; Fri, 31 Oct 2025 12:43:22 +0100 (CET) Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfhigh.stl.internal (Postfix) with ESMTP id 95D097A013D; Fri, 31 Oct 2025 07:43:21 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Fri, 31 Oct 2025 07:43:21 -0400 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:message-id:mime-version:reply-to:subject:subject:to :to; s=fm3; t=1761911001; x=1761997401; bh=FBslBIqP0KXQql/p3bX6V eC6Jb9mGpVhEurVCvPaFC4=; b=Y/GOsJI7G7SYX2VaZQg/Pac7KxYFQ7Dbm6ZH7 swFZX8baZGu2dcirHzWgDFXyz/Rs4kbkv+ox2lLHwXnuhGVROF5wrspxVazirnm7 7eg4Vgf6Q3MpAfdJ6/nFbHf10LNvXyaOtdzauKk/v2iYnyhWzkEl1aSQJQF5NW8W 5sV5rMix7j7s375VRGk7vnTCQwjrC0bI2KndjPp49sCqyvSUnQv5/b6rht/TZHWO dlUFANl17uHLXWRgOpS4Ecape20S8Tc5kCQHCprNEN0+sliuT3bbpD6dXURE95D1 7Kh31yFGtLmikNmLTPF3NSj9jbaxi41VIVkau9ZrzTUKb2TEA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1761911001; x=1761997401; bh=FBslBIqP0KXQql/p3bX6VeC6Jb9mGpVhEur VCvPaFC4=; b=xdClhVX1jAjMsV6JGlTVhnuTGaEfMaoEUKMYUuiASZKuo5znB7q pR+DSzdgNtxCJ1dpWFpr3w+cVQQz02u1VjpYBSeltEFt11D57RGa1mJQIogOGHJY Lddur5vIfMJ0jfHK7hP56FLsG/h9NZbOFiJ3CkY9n4UI3U8uxrR/xMtnLGe/OmsM REpE4W1O0q7UXeqb+MkGFVl5U4FQrUqeOpeTp7sBSNJUnN/n01t8bjMH32txEy/r Mwt0UfnlNNaH8FGbxVEmhJnrQl1KpsHtjvSL5cMBrQ793Q21aQec/51AuooFi09s i/yrspWP7PFrC3hXFLTfwx1a9/C37gdUsIA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdduieelgedtucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertdertd dtnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehmohhn jhgrlhhonhdrnhgvtheqnecuggftrfgrthhtvghrnhepveevfeevieeihfetudekgeekle eigeffueekveduteeuffeiudevteeiudekfeelnecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth dpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepuggv vhesughpughkrdhorhhgpdhrtghpthhtohepuggrvhhiugdrmhgrrhgthhgrnhgusehrvg guhhgrthdrtghomhdprhgtphhtthhopehrohhrvghtiihlrgeslhhinhhugidrmhhitghr ohhsohhfthdrtghomh X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 31 Oct 2025 07:43:20 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: david.marchand@redhat.com, Tyler Retzlaff Subject: [PATCH 1/1] test/memcpy: reduce duration Date: Fri, 31 Oct 2025 12:43:09 +0100 Message-ID: <20251031114310.4062899-1-thomas@monjalon.net> X-Mailer: git-send-email 2.51.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 When running on limited platforms like GitHub Actions, the functional unit test "memcpy_autotest" may hit a timeout, especially when running with UBSan. This change skips testing some alignment offsets (from 0 to 31). It will test only every 3-byte offsets for the source buffer, and every 2-byte offsets for the destination buffer. So it is supposed to be 6x faster with a reasonably smaller coverage. Signed-off-by: Thomas Monjalon --- app/test/test_memcpy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test/test_memcpy.c b/app/test/test_memcpy.c index 802dc4631b..ea9e76e9ad 100644 --- a/app/test/test_memcpy.c +++ b/app/test/test_memcpy.c @@ -105,8 +105,8 @@ func_test(void) unsigned int off_src, off_dst, i; int ret; - for (off_src = 0; off_src < ALIGNMENT_UNIT; off_src++) { - for (off_dst = 0; off_dst < ALIGNMENT_UNIT; off_dst++) { + for (off_src = 0; off_src < ALIGNMENT_UNIT; off_src += 3) { + for (off_dst = 0; off_dst < ALIGNMENT_UNIT; off_dst += 2) { for (i = 0; i < RTE_DIM(buf_sizes); i++) { ret = test_single_memcpy(off_src, off_dst, buf_sizes[i]); -- 2.51.0