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 AACD445AA0; Thu, 3 Oct 2024 16:05:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4D76C4025E; Thu, 3 Oct 2024 16:05:15 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by mails.dpdk.org (Postfix) with ESMTP id 555994014F for ; Thu, 3 Oct 2024 16:05:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727964314; x=1759500314; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=tsDI4bZrCKtxVmstqzSEYkJqkGyPWB1cTPsBSfN4Gd4=; b=GQs8l9+aVxahKLTH7h2fBKYNaEeepO9egKOo2A0kZBV1JVvtBaqsx5rC CN322m5OlFy5Y8+InhiOzRsjXwdRllqB+LbA2q8cjTOOnz58PkG0j+kla cVwCZa0QiS5hK5UmNcVndc2obh1Ta9OVFSf4+FP9sUZovFbM/Xt1CdijP BMo2UcKRd3DqcuWaYsYb0Af1piN3fuUFB3lSIRdMaemBD6pxENa9bq5Df aX6tXRpOKv63MLE8JupXIfomBnO9Y0F3oRogOVvm2oKHpNeM+H3HgTL0I DFMxm8jr64Go6cYkfp7fpooGdfZTsFHRwFTwtCPkctOUt9j7nRBF8HWIG Q==; X-CSE-ConnectionGUID: wrTdrIIXSh21SLwJD7vASA== X-CSE-MsgGUID: R/kQOnBASK2mBKAfqfCEEg== X-IronPort-AV: E=McAfee;i="6700,10204,11214"; a="26665688" X-IronPort-AV: E=Sophos;i="6.11,174,1725346800"; d="scan'208";a="26665688" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2024 07:05:12 -0700 X-CSE-ConnectionGUID: vFTqh1L+QQa1Zt333JpHnw== X-CSE-MsgGUID: f4uGLXqURRy4BsrDvBxfZg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,174,1725346800"; d="scan'208";a="78361480" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmviesa003.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 03 Oct 2024 07:05:12 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) 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.2507.39; Thu, 3 Oct 2024 07:05:11 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Thu, 3 Oct 2024 07:05:11 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.173) 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.2507.39; Thu, 3 Oct 2024 07:05:10 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ooNohx3IEvA+8lzLBJ8gePCpjWiicjS5Mwnm5PCM2jqNNZdvIYVHZPMvlEHIpP20OkgwKZK3gl9Vs3KdHTcd4uLPX3SHHSOAiPYDDFTYwaw8A2/r/2MB8o4nfKxFPpaJXh2Occkjtw0Wn3361EtoOXvRVEEcaC8WL5ulovMjVWS5vE+T+0M2rNTLsLg63CR3cyeKZw+hJn/Ld/D3FGtIOWnmv1E597hYQ+M7Sbr9HD/Uad8cvuY2z704xokD1MR7JlpMFk8/rD8m7SUOmx/c2whbgzyRY5mrGLWnNS8LDs3q3t4unNIR460bQQnU23LacGdTxRt6+1jhIjxWzAn9TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=4YGpDVLifCUSP/rRsV/q7k1P/FXG9ZgcRs07aW2bv60=; b=bBqOolxKHvMBVP5nCsA4J8PTVN2DZhl9sE2q3t+Mf7+mp9Hq5stgEOJF/tr94IMm2GAXgd44TzOpqBfaJn6mS3hInLzX9/p4eE+x8GS2PtpF9uOU8Kud0OpoacvZ+0Nq5M9He5j12WM96yza/hrBvMhYK2Va96S7hHjl8QGwnxJ2xqBSioG/c5Dt5FObsiW4Cn8a8nNSGEQ4T7SwrierJt+X+diGsLaaaKeaI/qsWGnleXBJ3R7mgo+uaYzUtECnJKdKYEyV8IN48kSWlZkX37NYHZVF6RMvuuOX5tiC35z7KCg8+/x8TM6ZCWF5QdcSQ5/b/9sYbT+NRbZe/o1ymQ== 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 DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by PH7PR11MB5862.namprd11.prod.outlook.com (2603:10b6:510:134::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.16; Thu, 3 Oct 2024 14:05:07 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::f120:cc1f:d78d:ae9b]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::f120:cc1f:d78d:ae9b%4]) with mapi id 15.20.8026.014; Thu, 3 Oct 2024 14:05:07 +0000 Date: Thu, 3 Oct 2024 15:05:02 +0100 From: Bruce Richardson To: Isaac Boukris CC: , , , , Subject: Re: [PATCH v5 1/2] timer: lower rounding of TSC estimation to 100KHz Message-ID: References: <20240921140022.107239-1-iboukris@gmail.com> <20241003122819.354499-1-iboukris@gmail.com> <20241003122819.354499-2-iboukris@gmail.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20241003122819.354499-2-iboukris@gmail.com> X-ClientProxiedBy: DU7PR01CA0015.eurprd01.prod.exchangelabs.com (2603:10a6:10:50f::13) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|PH7PR11MB5862:EE_ X-MS-Office365-Filtering-Correlation-Id: d88a46c4-2014-420e-d1ef-08dce3b46324 X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?/jnaOhgRYYjwwZzexA6/SmXMZqniIqQOuXU/xG+nhmSCgMAaW4sFeXztcf64?= =?us-ascii?Q?kuEfpk0LEJ+xEK7a+V1NMzsE718FXKcd4Y/GJih4BF8W6fKFTaGuq7oVHqRH?= =?us-ascii?Q?uNHsktuW1yGTOSoKTFubrZWNykl4UfDynxIj49pTIXC4G6rIOX+IS+N2F3GD?= =?us-ascii?Q?Zn9n3iDKuk1eTggfWw6uggr17/jm1lXo6j996BwiNANcI/6fBA1xWV2iisPo?= =?us-ascii?Q?SI3+hTWRyeG0CwpmzazHO0NFQ9/hOYdKhEp8H+ITzZWjZUv4y7R0XfrQ5fLL?= =?us-ascii?Q?Tj8u5vOhLjpAZDEkwt9MsUd+ejmwNRKXn4uvwj9cn2HlBlul64D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AT59KbRnU0LVJLVfRrz8tdvfnTGdfpRGk6sU0x?= =?us-ascii?Q?YZwlKy6Oht2wuE/jy43C0exeCLn3JNaMQrEZx3gKsA=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(366016); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?dhJ0oxRd+bPTMoW8y2JvvvpuDKTAPXd7T3f87RMSYSDxWqhYNFfAv89xHzQj?= =?us-ascii?Q?spkLBhs4+8ElQWTfkssEDqAHTPb8s+GEaz1H4q1FxEez3sCRZ+VgSVxcdNXM?= =?us-ascii?Q?xCqY0NstfKMopQgs2UI8U4eWyzcuwPhMGH/VVyDgo1n96UcPRWIiOZsz87ar?= =?us-ascii?Q?IsnEoZ1x6dAAEi+olhyO4x1XWqFa2a3/2NbjBvvGtfTv4cWXtakCq/dJM8KB?= =?us-ascii?Q?o/bB6h034h1rck6xe4S1EJsX+hW+Al9GWn7/5MP6ZiT8D/ZFtWFIPT03iJmP?= =?us-ascii?Q?dVhTEM7ZGscfvcZzSayfPzKCdwUeqzmdh7WeXHsPJJnplKCbjlrVM2I1bjsW?= =?us-ascii?Q?CA2yTyCL13ljO3DBeI/m7HdTF5OSH60O2kx2RtKFyqQEnGrjjCbiVfYNg6AY?= =?us-ascii?Q?R6nQoOF0EWvYiE6cI5p5lHRwuKC7OF2Uv9MUmAJeSl/CZgqk96OIzVelEWBg?= =?us-ascii?Q?/KOn1ie2QUz4MnEqeQuhEzDlltgJ27p/mNIJn/mpvfNDT3zQ3R3kHT/YYih4?= =?us-ascii?Q?AEz9OrXXbYH28WSy8nsl5r8MAMWmcpmP+FOrVMcBarb0pcy/7UaGyTD0JJjm?= =?us-ascii?Q?yn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auzPFOON9?= =?us-ascii?Q?gMsy6rSWREX+nM6y2QMJJ0bYEbCR18f5p1JSfzLRLkLXuwSXHRnhd1/RfMJE?= =?us-ascii?Q?GiDFf5vBlfMGSwIjHGfdUFRRhKjfUYdpBD/zLA+FD3zjfwgJrrF0PZUrgX5c?= =?us-ascii?Q?Rg=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: d88a46c4-2014-420e-d1ef-08dce3b46324 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2024 14:05:07.8084 (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: oFnCBRjtQFseCXW3qEQbEOpsthHeFa6jQlfXEPtNNzfz2BkgI+Z9JZHD4q83I/XUuJU9XgRbOxhf69EGCwvJ/GduNsPTCQsZCJWQB2bq4Xc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB5862 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 Thu, Oct 03, 2024 at 03:26:03PM +0300, Isaac Boukris wrote: > In practice, the frequency is often not a nice round number, while > the estimation results are rather accurate, just a couple of KHz > away from the kernel's tsc_khz value, so it should suffice. > > Rounding to 10MHz can cause a significant drift from real time, > up to a second per 10 minutes. > > See also bugzilla: 959 > > Signed-off-by: Isaac Boukris Acked-by: Bruce Richardson