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 A3864A0579; Thu, 8 Apr 2021 07:16:46 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 286D540698; Thu, 8 Apr 2021 07:16:46 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140071.outbound.protection.outlook.com [40.107.14.71]) by mails.dpdk.org (Postfix) with ESMTP id 330FE40138; Thu, 8 Apr 2021 07:16:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=08jBFCnuAWyGGklEVZ9l5MIft8/3EpywT3aFdgaehWs=; b=Lup9GgTxiuZsJ5btfUm4gbOwHqFDZ4QIjPdFymD+89LvBFE78VGEjQyCNQvNi0vshnGDPDddJXRs36jOe0v64Gx6ZI4EvPOPoN/3NBhMDJ+35mZntSMrb72LcEKm92zV53oBIJIpa6ZAGjwtFJg4T4iGy3BM33oHS79sMfi8p54= Received: from AS8PR05CA0017.eurprd05.prod.outlook.com (2603:10a6:20b:311::22) by DB9PR08MB6588.eurprd08.prod.outlook.com (2603:10a6:10:25a::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.28; Thu, 8 Apr 2021 05:16:42 +0000 Received: from VE1EUR03FT046.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:311:cafe::36) by AS8PR05CA0017.outlook.office365.com (2603:10a6:20b:311::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.16 via Frontend Transport; Thu, 8 Apr 2021 05:16:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dpdk.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dpdk.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT046.mail.protection.outlook.com (10.152.19.226) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.17 via Frontend Transport; Thu, 8 Apr 2021 05:16:41 +0000 Received: ("Tessian outbound 700fd1fc53d5:v90"); Thu, 08 Apr 2021 05:16:40 +0000 X-CR-MTA-TID: 64aa7808 Received: from 50ad0a037117.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 1FF99D88-5D8E-4A99-B076-B6834D900A88.1; Thu, 08 Apr 2021 05:16:35 +0000 Received: from EUR03-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 50ad0a037117.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 08 Apr 2021 05:16:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MxBBiPPo4XCvbBF3Bw6xwP4t8q3p8GPvDxDT5KORkPYm5cpjI93kGVYMvUFOk6bqtpmy3AD0USpcT+ojteNojcdbjPuXZZ0ZqKopZbYPTlVV5mPcfbzf71j8EjROPCOl745k0FA8vqzfY44Dr0pCSMTOqwm+LDllyMD3NxFjfpwHvDP0Xa42FR6qONhlyz2KXcxAcKItZfCwpnC2T+FsjLC+Kn/4AS0gIxku+VyQOmPN7cSiWTdKHkePuNKQ7XskyY4OcVO1FetEqtZWM1hMEe+Q8oFRwRXIlAMAEl2xp+EycljK0IhLrR295sXMz9o0xtnIAqMfd8bZgjZJRv69DA== 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-SenderADCheck; bh=08jBFCnuAWyGGklEVZ9l5MIft8/3EpywT3aFdgaehWs=; b=MllRArNOKoDm8WTyoZBo2JsTedQhamgJbMHCul2uoEfTAUnglF4b2eHuqNyvmcM0Xi1f4r8CQmGbb8ZH4MZIGevaUuK8fyelB3Fzt9oerQHw+dSGEo4jZMoXOSkLViIAW5DPTja1E12q38w9lB5IM/EVs9QV2ifDgQdybzEg9T8bHL1uyf+QwvtWM8LusKT64R/WKYnC5PLh5Enk4jVbeEyhsZfgINO2ipAgk1PRLgOkbNNlDLVjNNB8Kh5BsXRmPEAqByZEhYhkfdM+Vb+M6EnbumWf7BiRHJgnw3jWc+bq2G/5loNnx80MUctYL/J3mt/Xc1haTn0nH5qg5JxdbQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=08jBFCnuAWyGGklEVZ9l5MIft8/3EpywT3aFdgaehWs=; b=Lup9GgTxiuZsJ5btfUm4gbOwHqFDZ4QIjPdFymD+89LvBFE78VGEjQyCNQvNi0vshnGDPDddJXRs36jOe0v64Gx6ZI4EvPOPoN/3NBhMDJ+35mZntSMrb72LcEKm92zV53oBIJIpa6ZAGjwtFJg4T4iGy3BM33oHS79sMfi8p54= Received: from AM8PR08MB5796.eurprd08.prod.outlook.com (2603:10a6:20b:1d1::22) by AM0PR08MB4403.eurprd08.prod.outlook.com (2603:10a6:208:141::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.29; Thu, 8 Apr 2021 05:16:34 +0000 Received: from AM8PR08MB5796.eurprd08.prod.outlook.com ([fe80::8dde:97cd:c482:ef11]) by AM8PR08MB5796.eurprd08.prod.outlook.com ([fe80::8dde:97cd:c482:ef11%4]) with mapi id 15.20.3999.032; Thu, 8 Apr 2021 05:16:34 +0000 From: Richael Zhuang To: Liang Ma CC: "dev@dpdk.org" , "alan.carew@intel.com" , "stable@dpdk.org" , David Hunt , Pablo de Lara , nd , nd Thread-Topic: [dpdk-dev] [PATCH v3 3/3] test/power: add delay before checking cpuinfo cur freq Thread-Index: AQHXK4I/dLaITDxW90Om6eoWJSCbBKqo1p0AgAE+CXA= Date: Thu, 8 Apr 2021 05:16:34 +0000 Message-ID: References: <20210407023910.51052-1-richael.zhuang@arm.com> <20210407074636.26891-1-richael.zhuang@arm.com> <20210407074636.26891-4-richael.zhuang@arm.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: BDA138DA9C51AF4A8F158BC5BBB64557.0 x-checkrecipientchecked: true Authentication-Results-Original: liangbit.com; dkim=none (message not signed) header.d=none; liangbit.com; dmarc=none action=none header.from=arm.com; x-originating-ip: [203.126.0.113] x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: c6ec12c3-7017-40a1-2d41-08d8fa4d7e65 x-ms-traffictypediagnostic: AM0PR08MB4403:|DB9PR08MB6588: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:6430;OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: SmG4EtWkP3H01vxWUjKdzVuysi1V9HLQU4r8HnxKDC0F83WoWFiPXQgVr4kVm0o1pmkW31dVLkYhckIj8JnaA5p6AmwrZvMDJXNxa+0ZMk6gUBcvMYAnk6m7HW8piG+cPo9vAxYQLdT5Ep8zKnxirIbt2LkwZ6U+Zx92PanLKED0L8cxZhsz7l4EJPD5E2c3Kr61Wttmpo0vkcwjtTHFPeQ+O5fqeoH7sChgSB+MaSkbeF0+hwpD3XIBx2WJzjzcbZIMfo81bpUKQQZbB4nEZU95mjBUczD+3vPlhNl8ZFRi/TJHvSjUzSGRux5MpMgtNUvwfzsA5pvbsPUm9VrY31eJn3cojoriT9YPzvYkjCcnPnQJoqfiaLfec/CxHEXCKNiZBygVOucojzqKs5nvvTphuI5PntMBevUOy5p5++NdyY5U/q0/Z3mE6496CjMjoyRXVi03FcbQxQP0UcJOU2ak86gEcj7vPtZFCBNP2cVRQA9XB2HkkgKBqxWFh463FtLamPLRED67zfzeDVHJOBY22/Mlf3ATHVYkChAB2o7FIm7+oTMiNN7ETigPIlXjdGl8xvw6JjQaJN6NkcaPQvIlvldoiLZPBNiD+V47QRbCZgkD5cW+wYoPfpZ7He5X/tW+x0GigGEZ9vurLtXjdFC6Ffq3JKZW6NNLm2bC5Vg= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR08MB5796.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(39860400002)(366004)(136003)(396003)(71200400001)(76116006)(6916009)(66946007)(55016002)(83380400001)(8676002)(64756008)(66556008)(66476007)(33656002)(52536014)(54906003)(9686003)(478600001)(66446008)(6506007)(4326008)(5660300002)(86362001)(8936002)(38100700001)(2906002)(316002)(186003)(26005)(7696005)(53546011); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?2EkbaOWRYjA9s7j8bgmshwa3icy9KGk9Se5l3HloPadSNzqFt91uWWGZ/Zl4?= =?us-ascii?Q?Jd4Cd1Q6Z25p7XxKciI/at+jXan+N1k15MmyvmirwEFYCwhuQh4HQFsc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KAJ7+CYWpfoeevHbHzwvLa7hbnu5P?= =?us-ascii?Q?FyBEOrziLhQaSfyb7TQ2xks06X9ISmcUB+Me/KHI5D4ujqqu3CEF/ox2dWIx?= =?us-ascii?Q?nmP2n+ReQvR4A119C5+QtiBq/NYLe719XT2QSZe4fL0AsSqBNiZJYKY1dbsG?= =?us-ascii?Q?iYWdhnY/LctEYi3RNOWMbcQISpG4xEv60IU9lY9KRYzXlt3ZmwU1IZQ50ZSb?= =?us-ascii?Q?u9QpXgAxx3fwFqX0nURaEYlyl469lHKpmDmIFerr7nz0cToEgaLpQJLixQUF?= =?us-ascii?Q?ldEBRRvzJ7s2g9z64yuzvZYKMvMzhQLeZ7zwctMGJFPZZ+KBj5bzta5qerao?= =?us-ascii?Q?THnPOMbzT/M4ySyslPZ9ogFJ?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB4403 Original-Authentication-Results: liangbit.com; dkim=none (message not signed) header.d=none; liangbit.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT046.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 269a9473-e3c0-4eae-988d-08d8fa4d7a44 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tWqYzcpl8vhDeVRuSxQoEuaMKTcZazBJ970NHHmzv+7fo8GSz7MC6zb9j/vQ7A+5ewYHj72Z1+YAVL9yC2E0f9w9Kf1rarR/41CptdvUPxcwS1mIlOcrWS2QnpivYFMJDvh2+mmx7CAqSIUayqTC1ZGVwqY5DSRocVRZWpYAeuBd11wx0BtHcFlqpIwYtXqdoP6xSLO6FEccVoqBKGNOdQDTn1tSwJUouUypYR/nfquHlcEg/W9CUOtvm2heC5iNa/4N58MFXXxrovmTIDI0XlKm+QRXlvl0zcMDTqSOlaNhWYbP8BZW70imxfW+LnCW3pRF6U95xRNLlSywhx/LhfFhLRS4rnjt1WkFJ4H4GczjHVleyiEfSk3PYgJmDR5J1PWu2lC7pTgwtdfRGqYJ7kA7ridl1hf+O7nsD3nnCaxJzl2MhOmVH1VkBd7yUO9wRnDwZbYk+43U1G208GjvkXQZN1Dxp+9qvApyKJCuf0lWL2z3rvyLXsdzVMuqYAPGIARs7eV9eDf2QuD+p+B9QnXYYXQNkqqLd+3g/CHfNLebkfYL8VvCQgo05De7oRPzlDgte98guBT2uSTpQfxoOw0CvP2U8jTx8KyIKmoR7zExaHFyR2Mi/xjCODBBCfmy8MzOClGWxJT0iMRrhMFzpeL7VExy7QWVGF/hljKmE9o= X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(396003)(39860400002)(346002)(376002)(136003)(36840700001)(46966006)(52536014)(70586007)(478600001)(83380400001)(7696005)(33656002)(81166007)(316002)(6506007)(336012)(6862004)(54906003)(450100002)(4326008)(55016002)(186003)(8936002)(47076005)(82310400003)(82740400003)(9686003)(53546011)(2906002)(8676002)(5660300002)(70206006)(86362001)(356005)(36860700001)(26005); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Apr 2021 05:16:41.1231 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c6ec12c3-7017-40a1-2d41-08d8fa4d7e65 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT046.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB6588 Subject: Re: [dpdk-dev] [PATCH v3 3/3] test/power: add delay before checking cpuinfo cur freq 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 Sender: "dev" Hi Liang, Sorry that last email contains "confidential notice", so I resend it. > -----Original Message----- > From: Liang Ma > Sent: Wednesday, April 7, 2021 6:15 PM > To: Richael Zhuang > Cc: dev@dpdk.org; alan.carew@intel.com; stable@dpdk.org; David Hunt > ; Pablo de Lara > Subject: Re: [dpdk-dev] [PATCH v3 3/3] test/power: add delay before > checking cpuinfo cur freq > On Wed, Apr 07, 2021 at 03:46:36PM +0800, Richael Zhuang wrote: > > Sleep for 1s before checking the newly updated value from > > "/sys/devices/system/cpu/cpu%u/cpufreq/cpuinfo_cur_freq", because for > > some systems it may not be effective immediately. > > > > Fixes: ed7c51a6a680 ("app/test: vm power management") > > Cc: alan.carew@intel.com > > Cc: stable@dpdk.org > > > > Signed-off-by: Richael Zhuang > > --- > > app/test/test_power_cpufreq.c | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/app/test/test_power_cpufreq.c > > b/app/test/test_power_cpufreq.c index cda74bd8a..7a93bc90a 100644 > > --- a/app/test/test_power_cpufreq.c > > +++ b/app/test/test_power_cpufreq.c > > @@ -47,6 +47,9 @@ static uint32_t > freqs[TEST_POWER_FREQS_NUM_MAX]; > > static int check_cur_freq(unsigned lcore_id, uint32_t idx) { > > +/* wait for the value to be updated */ > > +sleep(1); > Hi Richael, > 1 second looks way too much for CPU frequency swap. > The unit should be ms in the worst case regardless the vendor, IMO. > Regards > Liang Thanks for review. Although I also think this time seems too long, it needs more than 700ms when I tested on our arm platform. > > + > > #define TEST_POWER_CONVERT_TO_DECIMAL 10 > > FILE *f; > > char fullpath[PATH_MAX]; > > -- > > 2.20.1 > > IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.