From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A2BA8606A333 for ; Fri, 4 Dec 2026 19:50:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=networkplumber-org.20260707.gappssmtp.com header.i=@networkplumber-org.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=M+1x3Un7 Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 099A640A6B; Fri, 4 Dec 2026 20:50:02 +0100 (CET) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTPS id CEE6740693 for ; Fri, 4 Dec 2026 20:50:00 +0100 (CET) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-2f04b676219so9969325ad.0 for ; Fri, 04 Dec 2026 11:50:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20260707.gappssmtp.com; s=20260707; t=1796413799; x=1797018599; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=xel5gN7dIuCAIYyBgNBj+ACLx8WkG/qZ+1kYNn40uyE=; b=M+1x3Un71azDmW8yuPI91IHqosNXXlqDs8uf7a7W1//zO28udORjmNFQ0JH8xYEPzG 2xdnJBCz3u0wDubbaBIPLGON4JI1HyJpiaYcC8NQ+fMc+y3TzqkY1X0oGf4DTBnTrgje pAh2xAWp5iNqWGtgFl0B+laqlbqI2BbORF6mf9H80NYve+mcnm1sAOLrBvDx1RTs+aYn Uex392BCKhlTiFLLK3COdQOYALqz9UY3MVPXu7EgbkncU3t1gYzkKnaeZay6kwDLBc+v IGtfLyG60FF0+p6Yg9EWYyJy37/FN2EwsbQgdTQSldSXXkcIeArh+A1BkujcQnKZqMR3 RJnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796413799; x=1797018599; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=xel5gN7dIuCAIYyBgNBj+ACLx8WkG/qZ+1kYNn40uyE=; b=him6565ZO1jhtz1XAfDWrvBl4ukgVm1GW44JILjPukspGFd21UE2XKtoN6LcZM+uZ3 684PmML6R6lIu1b9/vCbVa8RhBeObVoww8wLwQAfVRfnZQTqklpaTMokwTiF8HFwtRMm eDcZjn+GiAuJmrc4p16muzGZNPR6KUVDHzt3WBihL9pXU2U7PrqGvh7zNDZ6PI6CZEcg rHeGEKVEXXnyfk3MG2eIQt9PzUu1ZHtH9oiS0rQcHgOCvfBomNEFFx0PDUJHDfrmlfie AL8KIZAuExIDaxS9a6Jf3Xd6RwEksb8tewOAKsBDeLar72RSzb5NE2na8lF3TQ45bm1Y w8mA== X-Gm-Message-State: AB4q+uEJx7RGg00EpWSSJyneArqiTW3RlBri2NcTYIQj7kY7KZIwD0yP JYyFaNosoCER1HAepXkrfS9sUlZixUyfuHhvS4eDDo0qScMAQzWhAhHnSC6v8e2ItFH/pUl55W7 13VeC9VU= X-Gm-Gg: AZFdTZe0AwJfop1BMMe9GHnMEov0crn00pV/tZOHhxOw180WK49dDghyFmtNJ6k2C2M nlaVfi8SfwXWNRweFWZwBl6BDTTwADZj+E2B02ARKygWUtf3xbAoNN8cARkcNPd1zsSwZS/ISoE DCxMpxjKQkmm3LzM9zfl1Yg4SwogqXqF1GAS+zsn5432FzO0J9+ZBHzI4eaICf0EXFhrnzLCvWV WHUWSm1GEr0u29Rkv16r6ZpLLyi1G+NIPxAE1sQ77dCJMzk7tyYukw8MOrHtUR7XbBalaqFOOlj JC1h+KpkQFayMeqvS5aFygARD7Ws9V0GH/pkzregYD8HxPAs5tTg4gdem4Imu89OxKeFTe5QyMA 7t65UJHHJDoVNd/McoJZATU2q1/mJcsyvGWpghtvTC1dEcGHeNKUukBZATXD9RHs4BCiUx9zw6i MsAsIrseVoA9T10py3BpHO1TqGLsMIix7AIMu35gx6eK0OiqP2mHwUvblm9feVE5DA/Y67H/Rla DFUp8KWCWuv/kS0BnqPQeF2QgrT9FjSbx10EZK0Vngk/Bz/v8lHTRG2wcZuEeYd9yYzAdbFw0y1 5ditwCxmf6tZAGhsVqjokFf5q0eLOIJHCUyob9cuY2AMk1HSMMJi2IwfHpGEQKKDBCFU X-Received: by 2002:a17:903:41cc:b0:2ed:fdb:b37a with SMTP id d9443c01a7336-2f1b9e65cc5mr28603725ad.4.1796413798944; Fri, 04 Dec 2026 11:49:58 -0800 (PST) Received: from phoenix.lan (204-195-112-43.wavecable.com. [204.195.112.43]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2f1b791c186sm17627455ad.31.2026.12.04.11.49.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 11:49:58 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v2 0/3] Test pmd enhancements for benchmarking Date: Fri, 4 Dec 2026 11:43:56 -0800 Message-ID: <20261204194956.803171-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261017194856.2950241-1-stephen@networkplumber.org> References: <20261017194856.2950241-1-stephen@networkplumber.org> X-Archived-By: 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-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-12.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Two testpmd options useful when benchmarking, plus the Windows shim the second one needs. Flow control has to be off to get meaningful numbers, and run time has to be bounded to script a sweep. Both were only reachable from the interactive prompt, so neither could be driven from a batch run. For testing useful to run forwarding for a fix period of time. I used this to measure how many of the packets forwarded over a 10 second interval are captured. This also fixes a minor issue with current testpmd. The existing loop uses rte_delay_us_sleep() which retries on EINTR. This causes the interrupt to not be noticed for up to an additional second. Fix it by using standard sleep() which does not restart. On Windows adds a new shim for sleep() which could be generally useful elsewhere in the tree. Stephen Hemminger (3): eal/windows: add sleep() shim app/testpmd: add option to set flow control mode app/testpmd: add option to limit run time app/test-pmd/parameters.c | 36 ++++++++++++ app/test-pmd/testpmd.c | 79 +++++++++++++++++++------- app/test-pmd/testpmd.h | 2 + doc/guides/rel_notes/release_27_03.rst | 9 +++ doc/guides/testpmd_app_ug/run_app.rst | 11 ++++ lib/eal/windows/include/unistd.h | 22 ++++++- 6 files changed, 136 insertions(+), 23 deletions(-) -- 2.53.0