From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0062.outbound.protection.outlook.com [104.47.37.62]) by dpdk.org (Postfix) with ESMTP id 8A02C2C38 for ; Mon, 11 Dec 2017 06:59:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=sYZ3N/2E+4dEGKNHDyYSADxiuceOIorborRRLMIhpo0=; b=D6XCV+Z1OkVTcyziLtiWQulDBNUbvUvLVLPhq5OAGtyGv8t9pte/PImhbGoeSV7KYZU/wk+4+5JaBdQnnvAboVfyFDH4TJESn6pAuuvvGZXqO+2y/Yi/ZxMDAYB1e/CqNdTbmTGVlpCMnyCZ8hEZqgGL9niMECalJ8oszz8s558= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (171.76.104.209) by SN2PR07MB2527.namprd07.prod.outlook.com (2603:10b6:804:6::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Mon, 11 Dec 2017 05:59:49 +0000 Date: Mon, 11 Dec 2017 11:29:31 +0530 From: Jerin Jacob To: Jia He Cc: "dev@dpdk.org" Message-ID: <20171211055930.GA15672@jerin> References: <676baa87-777b-ca6e-41c9-7233f90740b6@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <676baa87-777b-ca6e-41c9-7233f90740b6@gmail.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Originating-IP: [171.76.104.209] X-ClientProxiedBy: MA1PR0101CA0040.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::26) To SN2PR07MB2527.namprd07.prod.outlook.com (2603:10b6:804:6::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0911cd98-a473-474c-1034-08d5405c6406 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307); SRVR:SN2PR07MB2527; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2527; 3:SMSqIaetGQk5gW/rPo07cQZdVc+lsV+Ar0fljI9LwHGks2GL5YlWduw0Uls+8b2BboSHPJb9H3OTZdTO69D4agGZUFlZZ958puXyfGcosEPPc2NUlNYUgax4SG546B/e0Nixqzoyf17CCeOvEvkNXaq5TXnmanNAq5v+/mC4t89CFsSF0arNjvmq03sIG8eWwGgYWV3iTSTHRfbgrKwbIYZLvig/eTWYVrwcytkbHE2/6b/aql5IttnRndRgpEQs; 25:EnRD+iNFUYO0JqL1zmaqg/PZNlegQjnRq0FIU3t5RqslgWVcl/UCH070sAIXMFp1W4bq6LrdPmU6yChTJ2g+oMm4HkPHKLJOE3qrxVHi15cH8PuhENsfWAQ2tbdSuX8sZf11iEOIkhqb3HckXNVMwzJHvygIOBkYKxh1JXGjRiOd6WOt2txepnbv5V+IjFdMB5gNUuEhQxvPhe1SFhOWdpVvfBsEGlB18P8+aXF3aE1Yff5rDn5BupXnh36pD2wD4Q5Ak1jBWtlQQlz/jT92xGPTC4Snv1zSvEPmn1c81naD/FOotnmA1hwfLLcVpGXK1gENsA+ZHLRNHqTehWUasQ==; 31:TPenvm1XlsueMQVGhDgktEHgqIYH3VKbfLC2WGsSSQYsHqueF6UkoRMV96TxfJmo+6kjze9Tg+PKxdyW0IZFpzpBfCRfk9DQMqaNJiQtKfYFYCGsR1ecS9pU28wvAdj2uqWTuO0McFJDLC/EP4aDhj/iWe+yOCA1Imq0rcm8KEezxVBYyERkpUmC0XirBZdlGWzl0/+9ubL+bull8z8Tmk/8TODgKkLFAf7/XY1PnEs= X-MS-TrafficTypeDiagnostic: SN2PR07MB2527: X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2527; 20:KOWWDuiOsjuD5nUMbGbn6MpBV7AQGzoTbJSMDA2HxF9WY+lfE/lG13W+5QY5ERUr0OMFDXe1ttYlq4bOjt4ShCoSeUAQB6thPTqNjmp8cTMfMtcCAkI9T6EjkEIVmW7xmKyNbqUsM8rRxDiI35PtSNKDXrY9r/lZoAIu5NFPdc7y66EPeim+Tlgz/XGmbEiGNI3zJBVmzgin3vPfybEXdtjj2hgg3VgdK2JC7y5rqfNuD5oFUGqj3ziBrqXCUunwqRNzzaoV6BC2BPS9PXM0cSv4NhW1KvN2wpDlyt3dE9DBkAQo91rl+c55curJ/wpteyeP+YzO3/KM4oJ/aKLzHy3XPPlVBdZ6NLnj5kbAzcD95jo8jDd7mzBMzgAhfMN7eDIYDsEZyCP2lWR23ZVBkFJ3TrBovjnq5iyOjWgDcoSABNtXZFfCEE64XdpdxjDgI9R+4cF0PuYjpaqORBWytVOgCfq4vaYxJCeeUPZdfju8VQkPRuWMRvw+CeLvwdPOybte6PJG3YTHbSMTyJ8Ci3ptgedTqzoSzxwR2v7+67p5Qub2JWiqevIo/2bnUmv9/JrHATplfk2IjUSJp/jHYMrAkKuThOSVmsL7A4PbBxI=; 4:xT7GWeyVnIL+oe2Dt+gCwVPr8o9j7DtTbc3EovMyasdP8UBFxBwOsA1s/8APd42sC6rLUCu1UU8uSk+Y/ZmFi8pspteK7cDyqqKOkarbz01AOEjIlWjYkb2DMZmdT8zSNXwZ3x2TO3nZYRg3xWAcDNPy9QzCW3DHWBoQLL1DBE4azcgNgc0S40yTw5KF+dWHmo0fb3k+tHsp0K8cdT56/dhoTLLLQHy+aZDxLPN6vjz5Fze1phEiXGjfNWi0Uc51ggd94q8ktavIZWOcxIq8JQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(3231022)(10201501046)(93006095)(3002001)(6041248)(20161123560025)(20161123564025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148)(201708071742011); SRVR:SN2PR07MB2527; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:SN2PR07MB2527; X-Forefront-PRVS: 0518EEFB48 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(376002)(346002)(366004)(13464003)(199004)(189003)(8936002)(33656002)(2950100002)(6916009)(1411001)(47776003)(16586007)(966005)(66066001)(6666003)(6306002)(23726003)(97736004)(72206003)(1076002)(68736007)(52116002)(25786009)(50466002)(3846002)(76176011)(83506002)(106356001)(305945005)(105586002)(7736002)(478600001)(81156014)(53376002)(8676002)(16526018)(6496006)(6246003)(81166006)(229853002)(6116002)(316002)(58126008)(55016002)(5660300001)(4326008)(42882006)(2906002)(39060400002)(9686003)(33896004)(53546010)(33716001)(53936002)(59450400001)(18370500001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR07MB2527; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR07MB2527; 23:KWgPgHCVcvL6GKXoVpbNVJsaVFsGCu5Y4nn5Wm3gU?= =?us-ascii?Q?S2d063Ti2HJ3qPDPc3h1krBvqYycfG86O4GZjbVqxakIcFtbpxX+wM0FtJol?= =?us-ascii?Q?fcbSof1J2xrJl498JcnbmntP3JQRg9sOtHEliRkqcRjSa7x5aZinfrWxauhe?= =?us-ascii?Q?/PUPKkMxIkix3iC6nghPypkA6JBiecbqNlg+1PbyOx9mz04/yT9I9oG9Eoc9?= =?us-ascii?Q?e/Nqonv+RpMcDbIYyP/2YkuiZsYaTx1MwlGbBNyCiB7ZjLnGZ0PBj3Ii1+xB?= =?us-ascii?Q?WVXizN3Msa9lLYGkok9GZd/6Yfvw4TcPNz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f1esh5QG0HIGbIWJMtxAD6STw5XL6fNo6vLtKyszh378P5ew7SZIa8k/hWUwnFXBtGh8N6GgT9kedHj44RVGqlOsadunwTsaEVnyBTLUB7OlzTlKcuw4YcvnLL5Dzur7aM9as7TMRxSZ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2017 05:59:49.0205 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0911cd98-a473-474c-1034-08d5405c6406 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR07MB2527 Subject: Re: [dpdk-dev] About pmu cycle counter usage in armv8 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Dec 2017 05:59:52 -0000 -----Original Message----- > Date: Mon, 11 Dec 2017 13:38:25 +0800 > From: Jia He > To: Jerin Jacob , "dev@dpdk.org" > > Subject: About pmu cycle counter usage in armv8 > User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 > Thunderbird/52.5.0 > > Hi Jerin > > In [1], I met a pmu cycle counter problem (all return value is 0) > occasionally. > > And then I submited a patch to kernel maillist, but was rejected by > maintainer at last [2]. > > He said: > > "We only intend for the in-kernel perf infrastructure to access > > pmccntr_el0; nothing else should touch it." Yes. That's the reason why 1) A warning added in documentation. http://dpdk.org/doc/guides/prog_guide/profile_app.html See at last " The PMU based scheme is useful for high accuracy performance profiling with rte_rdtsc(). However, this method can not be used in conjunction with Linux userspace profiling tools like perf as this scheme alters the PMU registers state. " 2) By default it is disabled and not need for production systems. Needed only for performance debugging. > > So maybe it is not proper for dpdk to use pmu cycle counter? But, There is no alternative in arm64 to get high resolution counter in user space(in performance effective way) > > [1] http://dpdk.org/ml/archives/dev/2017-November/080998.html > > [2]https://lkml.org/lkml/2017/11/16/22 > > -- > Cheers, > Jia >