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 98C9BA0542; Wed, 5 Oct 2022 11:20:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7B1FC40A7D; Wed, 5 Oct 2022 11:20:07 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140052.outbound.protection.outlook.com [40.107.14.52]) by mails.dpdk.org (Postfix) with ESMTP id 5FFB440694 for ; Wed, 5 Oct 2022 11:20:05 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bV6pqqeUHVWnMpIut4e4dDFDi1/I+Pq+oTohyIfGnir7FUu4US4TCeqyDQNzukM2hS3lUmBBpXhC6JLp8iNnNojyhPFFR3ajEW4kPo3D8aF3ytBeOM9HKue6z1uMRHVWB9CMv/Kiij7xRe9gnzGZcWAwB2tZH//yVPB/2EIzAJDUnX9Kqe65qoREAq/QUCfOBsL9/dAy2olQG+W4fgPNl8QJWt+kij+9ElBoOJ72/4Azk6Q6fMnuCIEDWKHl2nzHytJZjVFwtA0SwDQK5TWUakXd+u1nrP6uTP4UciGUjVCVQ6biB3i8CKPrwdXA2HjDohgPp26ImSTataZyF8p0jQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=t3yNDeSRprpmtp/TPFB+gg2jGKXs8uZ/0wIBBVSJYnM=; b=IVmxPrJd0OAcwrcFsKuYXPU59d6eanlUgXP2voCKIc6tpyCXTqZIU81qKMv3fdXWynv7qeYGWF3cTXrdMllSj2KgVGAvGdk+wHjgo593XnjSnbgxRLBfzaum02rfsABMkJPUzYz+x0A82jGLhuJkFu41f06A4lPkYcvpFe4fjs9vTJcXifwNMEMdcG7O+jI0pIr5O/zaFNy9ualVHV5OlXk1GJmB++FpUmXopEkmQpHNgYpvOdQ7vRplQ7TYmGnV5B+vMF6rRrCxunTNLSLItctLMyFdg/2PnOcZAv/HdcO8catCisD9asekidds9j/jh2LRC/m0NvvKBJPBSIfrXg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.176.1.74) smtp.rcpttodomain=arm.com smtp.mailfrom=ericsson.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=ericsson.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=t3yNDeSRprpmtp/TPFB+gg2jGKXs8uZ/0wIBBVSJYnM=; b=pEIB1968GZsZSh9/xxOqvneTv3aCZSt9RUqpSyKc9DzpElOR/uCGeRHt6KhJvvro8qfF3uCffMLneZQMz7aN0eYWqhAA+U+kyV5HjG+2vVToqPpxudHKTBzurfusdbKq4a0JdJWBkRHkJZqh6rCOx+7vHRXmJFuSUIPvVhIvmvI= Received: from OL1P279CA0034.NORP279.PROD.OUTLOOK.COM (2603:10a6:e10:13::21) by PA4PR07MB7102.eurprd07.prod.outlook.com (2603:10a6:102:d5::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.10; Wed, 5 Oct 2022 09:20:04 +0000 Received: from HE1EUR02FT019.eop-EUR02.prod.protection.outlook.com (2603:10a6:e10:13:cafe::46) by OL1P279CA0034.outlook.office365.com (2603:10a6:e10:13::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.32 via Frontend Transport; Wed, 5 Oct 2022 09:20:04 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.176.1.74) smtp.mailfrom=ericsson.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=ericsson.com; Received-SPF: Pass (protection.outlook.com: domain of ericsson.com designates 192.176.1.74 as permitted sender) receiver=protection.outlook.com; client-ip=192.176.1.74; helo=oa.msg.ericsson.com; pr=C Received: from oa.msg.ericsson.com (192.176.1.74) by HE1EUR02FT019.mail.protection.outlook.com (10.152.10.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.5709.10 via Frontend Transport; Wed, 5 Oct 2022 09:20:03 +0000 Received: from ESESSMB501.ericsson.se (153.88.183.162) by ESESBMR506.ericsson.se (153.88.183.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2375.31; Wed, 5 Oct 2022 11:20:00 +0200 Received: from seliicinfr00050.seli.gic.ericsson.se (153.88.183.153) by smtp.internal.ericsson.com (153.88.183.189) with Microsoft SMTP Server id 15.1.2375.31 via Frontend Transport; Wed, 5 Oct 2022 11:20:00 +0200 Received: from localhost.localdomain (seliicwb00002.seli.gic.ericsson.se [10.156.25.100]) by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id D2F9C1C0086; Wed, 5 Oct 2022 11:20:00 +0200 (CEST) From: =?UTF-8?q?Mattias=20R=C3=B6nnblom?= To: Van@dpdk.org, Haaren@dpdk.org, Harry CC: , Honnappa Nagarahalli , =?UTF-8?q?Morten=20Br=C3=B8rup?= , nd , , =?UTF-8?q?Mattias=20R=C3=B6nnblom?= Subject: [PATCH v2 0/6] Service cores performance and statistics improvements Date: Wed, 5 Oct 2022 11:16:09 +0200 Message-ID: <20221005091615.94652-1-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220906161352.296110-1-mattias.ronnblom@ericsson.com> References: <20220906161352.296110-1-mattias.ronnblom@ericsson.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HE1EUR02FT019:EE_|PA4PR07MB7102:EE_ X-MS-Office365-Filtering-Correlation-Id: 958decf8-1576-4292-3911-08daa6b2c94b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: joQhv5oUvYxFydWceeoBxgxFX31ClskQMMJ9dxwqOKJrZGylwV0w8/RWWfR9ML3PBNpw1kqgwlCQ+twI+56+0ukZY8P7ZJHPY+/pp2nCvQROkvKTH0/N67xkMA14uM17npjJYD1iGgTpiRZcnXSUo04JbHaXWU0OIbGNYSltxTdPYGdSLV2H4vjK6xBP4iQHZSzk6krlOFstPNcQ/e3V1gWYC7snKeBAKhciUms2zgTF2vaPwuFzyO7+gw+8R4qB4JprZHM2rK8l16it3FVITJED3JslGyxanbBzs7nEbp4MVdtwKhv6IhMJNkAgYNZDfw7PCqfGGdbydHYf/G51P/BJY3vpIUab1Emiri8/Q5UGstsNBzrcAGl4yJ8VIp8o9CW7VB4HIkG3z/cP+XP4ESQav64kSDnFsn2sFDal4i82+yAqUPWV1ZlCbRr3NHYDPk7DQH/jg4ZYR7LKhQdcZOdCT18GC1LmWfr7JopvisHOzxm4Wg1+R+WXsEU2G4EiMZE+xAQGPaRQIQp58ulcBdJWIylaReqK001h1MmXAZdbsZYrKC49JvdFEkDcvnZ3+yBk6mSpVQNqutbwvEhi2s7VeeVYo507n0saeqVcpBiNvAh1V1Y4Uf+t81CtHya5eL90xEflaf1gVgQxQi5XOicl8O2tzes1T1lsLO/YZRW5kK6ScwmUuGiBjA0d6XerPdDKb4SfpxwYJAhBlBXxmoM4VWU3Bu8y6pqB4EKXB5VtBO+kS4r99Is+GvKOw4KE4+lpQxZm9B1wc4wfMW9DdQ== X-Forefront-Antispam-Report: CIP:192.176.1.74; CTRY:SE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:oa.msg.ericsson.com; PTR:office365.se.ericsson.net; CAT:NONE; SFS:(13230022)(4636009)(346002)(396003)(39860400002)(136003)(376002)(451199015)(46966006)(36840700001)(40470700004)(1076003)(2616005)(336012)(186003)(2906002)(41300700001)(26005)(82740400003)(5660300002)(6266002)(82960400001)(7636003)(86362001)(40480700001)(356005)(82310400005)(83380400001)(47076005)(40460700003)(36756003)(36860700001)(54906003)(6916009)(316002)(8936002)(478600001)(4326008)(70586007)(70206006)(107886003)(8676002); DIR:OUT; SFP:1101; X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2022 09:20:03.7573 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 958decf8-1576-4292-3911-08daa6b2c94b X-MS-Exchange-CrossTenant-Id: 92e84ceb-fbfd-47ab-be52-080c6b87953f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=92e84ceb-fbfd-47ab-be52-080c6b87953f; Ip=[192.176.1.74]; Helo=[oa.msg.ericsson.com] X-MS-Exchange-CrossTenant-AuthSource: HE1EUR02FT019.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR07MB7102 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 This series contains performance improvements and new statistics- related functionality for the EAL service cores framework. A new per-lcore TSC cycle counter is introduced, which reflect the total amount of cycles spent by that lcore running services. This may be used to estimate service lcore load. The patchset introduces a backward-compatible convention, where a DPDK service may signal to the framework that no useful work was performed, which in turn is used to make the busy cycles statistics more accurate. Depends-on: series-23959 ("test/service: add perf measurements for with stats mode ") Mattias Rönnblom (6): service: reduce statistics overhead for parallel services service: introduce per-lcore cycles counter service: reduce average case service core overhead service: tweak cycle statistics semantics event/sw: report idle when no work is performed service: provide links to functions in documentation app/test/test_service_cores.c | 2 +- drivers/event/sw/sw_evdev.c | 3 +- drivers/event/sw/sw_evdev.h | 2 +- drivers/event/sw/sw_evdev_scheduler.c | 6 +- lib/eal/common/rte_service.c | 228 +++++++++++++++++------- lib/eal/include/rte_service.h | 32 ++-- lib/eal/include/rte_service_component.h | 5 + 7 files changed, 192 insertions(+), 86 deletions(-) -- 2.34.1