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 711C2A0032; Fri, 16 Sep 2022 14:36:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 645FA4021D; Fri, 16 Sep 2022 14:36:24 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id C3AE140156 for ; Fri, 16 Sep 2022 14:36:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663331783; x=1694867783; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=7skQ8orgA0h9OzD47n/iunf+XZJ3b5sseTdK5fuyTsU=; b=cEAVYmdYBJrIBojXqD1JnCWCudnrHOh2+sZ+8ZjDXJ5A8Mf19dvegTHZ jXt253ge4spF308vpdw/Un2V9ArvfKC+zVGxYN9pojYLLiNvWZPImFelm VvAszoSy/St+naxNot0xlnfYtA/uK+NAK4F9qdwZfFe4EVo1Dgyx9oEY7 zYnZlN4EuukpHURbsxZ2w703hS6uq7HSFFc31TbhNpRc/n0W2q8z/Rtp5 b6BUuzHJ1FkiI7kZZYZlOvtpqfUehXco+o9OEMfau/x0t82XA7umVaJKj PlyEklWanDYhHpendyuVfGBYqGII3ZBgXG6ws9jR34tLe9rgXU/OKSu+D Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10471"; a="279363455" X-IronPort-AV: E=Sophos;i="5.93,320,1654585200"; d="scan'208";a="279363455" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2022 05:36:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,320,1654585200"; d="scan'208";a="721408319" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga002.fm.intel.com with ESMTP; 16 Sep 2022 05:36:07 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 16 Sep 2022 05:36:07 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 16 Sep 2022 05:36:06 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Fri, 16 Sep 2022 05:36:06 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.168) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Fri, 16 Sep 2022 05:36:06 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lv/XdfrU3Pbu4xCoVALkVJn8WzjlKCKtZe0irAzDxCENOUqvlp4c9Ul9cSmyzXXiRMrPWJRAiILAk1cwEsum9neM7mS5+ucnAOxMja7JVydjynadTnAsJ89VvxjUYCnTHy5MKLYCYzNk98vNONRKLmU0Xv5c3vcGffyoH9b5abERllBaWszAmRFSECYdPtTGMARWBdNkUQXg4Tw/r63BMm1JBj5TJMVXyPwdunox/SfWst6g1Qo4/ICiGGAFi3DzNhRF0mGd+Xy5u5cXb2rLjAHM1aAtre9YoQ8+TixoHUFMxj7qgxxBiw3oBWZ+w1ff4rI8r46W+ximNI+YZMXpWQ== 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=vVgYOxFWhGSm5xb0wjanZmpurv7mlgzEkJCt1NGxE7U=; b=QK7IHPwwkvnA+jdTqVlNTDBD+G+L3feeSTPNJQ8zS0ZcPuHWeMaSUwCVFGxvlpXsN7q8JvJi+Ty9Qp3BHUd+BzPhGo356c2gfYki4oR1XqkHLmLT0NTRKnmZZCTCg6gWCbiCoFlVyddsaP7Q+Nuv3TsRJ2TqWNFuE5NrIX10yBgym4o2lFIEPQQ9Y2K7NOU1JVlHoEW1UdIsjJopKRR5BSDkcwFOL4GNaRzMiVqGYprhkmYYu5Y9022pMsX1DSWl6MfGoze4e0NexZ3p5dAgGVETHW0uVZcWiLFIk9cRlWPKAjnu6VPG8E2DgE+jrKHeVgTzWaByKEwZos8gQQKfYg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) by PH7PR11MB7026.namprd11.prod.outlook.com (2603:10b6:510:209::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.22; Fri, 16 Sep 2022 12:36:05 +0000 Received: from MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::c17d:f1c9:e958:b5e]) by MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::c17d:f1c9:e958:b5e%6]) with mapi id 15.20.5632.016; Fri, 16 Sep 2022 12:36:05 +0000 Message-ID: <8646ba9f-a6bc-1bd0-0cf5-349268f4032c@intel.com> Date: Fri, 16 Sep 2022 13:35:57 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v7 0/4] Add lcore poll busyness telemetry Content-Language: en-US To: Stephen Hemminger CC: , References: <24c49429394294cfbf0d9c506b205029bac77c8b.1657890378.git.anatoly.burakov@intel.com> <20220914092929.1159773-1-kevin.laatz@intel.com> <20220914073359.6c57fbed@hermes.local> From: Kevin Laatz In-Reply-To: <20220914073359.6c57fbed@hermes.local> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P265CA0255.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:37c::20) To MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW4PR11MB5872:EE_|PH7PR11MB7026:EE_ X-MS-Office365-Filtering-Correlation-Id: de2873a6-7c50-4b28-c31f-08da97e00588 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fR+lPoBoE5iJjmQiiFJ41Z/piOhTLcFB6TPZb4UxwJEG16mGPxXG2M3wajpTzggt7YwH41VQ4Msg8cWq937mqan212v5tBr6fa1RflFOsHOL38S4qVB1KifZElS8xkN/h5TopJXObaOhiWWtiRzXoO62m+sM0MbWz7eEl2A7Ur1qHgo3TbW3VAw7WoQCdJhFSK91uS5NkhBr5N2uuJH5WtzcNXQgUrRDy2iVFVPQaBXbh0tCU4VI57tM1aHwTQCGXTGXiKLqeNfN93aacq242j1EY6zi0++ltXw4G1rt/nUE8Upmytn6tOB9jcIvYUMJ0nVGBU/99CULmoRHis18DqjvXVeSc2Zm+wB+716htcLKvAigxTdBpjaYxyDFUR5A56W8fd2jXQJKPixbcNkg9Q6kCNGc1Cd4KNbRbQm5gzaokAwitu/xBRaPk6NvGZz/bgnpJyhrwsuv2mhRBpGbXORuHXe3Qq/0SVsM5d0AFBpM/RZwLiNFZbfv6XV5OjwOLxUz0zh+IrI8TSZENg/l/iH2lr98eRqOgz3v1YTn1VsHHqOSoYeOu/eprqHom5A4g/YSVRq/33J498Dm4mFpJxtU7j3Ogtmwa2ACQL60MEKF4+zj0bFOgm9ICFtZ/9HDQ/4qwI+/AqnJfo10l5Agzm2/hIULsirQ1BjShBF/VVqCtvv8kI94UtDtsHt2JYXIoBkJOgTJQNhe7hCi+z7CB1yHvdfexgJQpzVdmyGo/yx1Zpzi451ZLQ4Ps1dlWc3Q53XTAvaQT1HSd7IpPXh5RtmBLLW5FcKDih7H6ujFaEs= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW4PR11MB5872.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(136003)(376002)(346002)(396003)(39860400002)(366004)(451199015)(31686004)(66556008)(316002)(36756003)(6506007)(2906002)(38100700002)(41300700001)(5660300002)(6512007)(2616005)(6666004)(107886003)(186003)(6486002)(8936002)(82960400001)(8676002)(478600001)(86362001)(66946007)(31696002)(4326008)(53546011)(83380400001)(26005)(6916009)(44832011)(66476007)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WkNvTTVWV0ZOLzRMNkhlenpyQmhFanpkdUtrTVo1K081K2wvRzBROXgyNWdl?= =?utf-8?B?NGx2OTkxcmpBVGZnVUJWdXhITWYyVHZNTWJCMXowSWtuazd2ekhIM1gybVcv?= =?utf-8?B?OU5yM3h3U2JHRkFqK0o0RWVyS3ByZzNzb1ZOV1hHUlJoL25vNlZwVU9wYTZZ?= =?utf-8?B?R09CLzhYT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Nm1nYityZng2NUFjTlpGOTM4OGtGU29peVg4?= =?utf-8?B?U3krZktaZjdsYVJDUFJ1OGVjSE1wSnA5UXZ0dUFxUnUzSFp2bDNrN0toZjFD?= =?utf-8?B?RVNwTUV0OWVseHZENlRlKzJ0OExRbXcyUkZWQkZpZjdKaWgzUDZEWnpmWmhP?= =?utf-8?Q?bksxzWaGqltI5WrsnuemrlCx0?= X-MS-Exchange-CrossTenant-Network-Message-Id: de2873a6-7c50-4b28-c31f-08da97e00588 X-MS-Exchange-CrossTenant-AuthSource: MW4PR11MB5872.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2022 12:36:05.0007 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: oM4IZlYuAcq2+rXs+VH6fMnqCp3c6fQOlEU+fwWtgoA99W3knlmWWzXJHwQV/BBEXm5jG+tkHcPoe0xC73ygiw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB7026 X-OriginatorOrg: intel.com 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 14/09/2022 15:33, Stephen Hemminger wrote: > On Wed, 14 Sep 2022 10:29:25 +0100 > Kevin Laatz wrote: > >> Currently, there is no way to measure lcore polling busyness in a passive >> way, without any modifications to the application. This patchset adds a new >> EAL API that will be able to passively track core polling busyness. As part >> of the set, new telemetry endpoints are added to read the generate metrics. > How much does measuring busyness impact performance?? > > In the past, calling rte_rdsc() would slow down packet rate > because it is stops CPU pipeline. Maybe better on more modern > processors, haven't measured it lately. Hi Stephen, I've run some 0.001% loss tests using 2x 100G ports, with 64B packets using testpmd for forwarding. Those tests show a ~2.7% performance impact when the lcore poll busyness feature is enabled vs compile-time disabled. Applications with more compute intensive workloads should see less performance impact since the proportion of time spent time-stamping will be smaller. In addition, a performance autotest has been added in this patchset which measures the cycles cost of calling the timestamp macro. Please feel free to test it on your system (lcore_poll_busyness_perf_autotest). -Kevin