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 32FFFA034F; Wed, 31 Mar 2021 10:21:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B174E4069E; Wed, 31 Mar 2021 10:21:18 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2064.outbound.protection.outlook.com [40.107.223.64]) by mails.dpdk.org (Postfix) with ESMTP id 785CE40141 for ; Wed, 31 Mar 2021 10:21:17 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vw6ggDhH3aCpLHBiG01ew2TQc89LWG+EncHFU73YKYOIQGghKQQYcyXuRpK+rLBEU/pk7cNSYt6U3ehNGO4J+ZKbHSXLG3aQ4qDWW7wIZHjeAWprmcscPDWDJ7IVCgX7/gKbvduWojKavroJxBWajExAfeuTlY6YwOPR5MexfE8zRiFhriNawYlCHK70ri9mSw7uZkAsivmi3H/cU8UDCqoZzfze0M4cK+oCV/iGGl8POyDEV8Ht9zgYMZ3fmqJwglYoNSit674cyBCbYgZa5AsS7SnF9kyq3vjaCrqt2sX+GGRZp8fSNhjEyfcxVR5cIA8dSwS0ti23b4yif3KEkg== 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=iXpD4hGLLw3YS4xPlB2aZaJkK7kWMrEYbVq5mm+MOTk=; b=kBZBRxZo0LBQrBqoT8vwWO6oPzopqLEVupSKbS1v7+CbD9W9zD/HcdddkWu+wux+o/QI9y8e3n0Fs7oDRBbzs9OeoTFPOQvS1Xcw/TrmpeHsPljsx++IpAdEmI10nVzEbZImzYfpEQz0/co2a8zapJFC53DwqmOwN2sP+xj7qfYM1Kxe1memcmixmYrmsInsGHLojiibX9rkVrGLY8wY+n/xscMID8G2NnYvi9aQVJwXcVhoSkHYGWOEfXujPhJzLxNKNCwwRpFfjZx5rAj2KvnNvCIlXGJ9jONH9+RsY61/GiQCE71u/tP5MJqnSkUpLnhnHKNwKxwQOyCXIo8h6A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iXpD4hGLLw3YS4xPlB2aZaJkK7kWMrEYbVq5mm+MOTk=; b=a0iDGFWni53mgCE610yr/fYHcIrP+Be9nv8AFo+JJ/dGK8d1P1JGKzgnpcuwvYA2eDojBarGo2DC+UP6yHnRctsCOHyFtjRbLl2p6yVhpSxw37y+qQIuQB35+7M5YFOAXlQnNzi72y5Icq51wqC2BXG1UQrEVfLcvP6WNskoDGf71x9e5KnLHZTziPPP4awYwDIb/50mE1296PMbT7HCkJ14m9djNSapivAIAGeYtsVyWi4gnt+Kl7oWVl1xv4YwL/0RVnWNOg32/Mzrv/E2kzlD4osE8+vzg8Vc9kTE1lufDVYeyfh1+2xrXWrJCUugABOeq/4Ov//FrFH9HhCgVw== Received: from DM6PR12MB3945.namprd12.prod.outlook.com (2603:10b6:5:1c2::27) by DM6PR12MB5023.namprd12.prod.outlook.com (2603:10b6:5:1b6::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.24; Wed, 31 Mar 2021 08:21:15 +0000 Received: from DM6PR12MB3945.namprd12.prod.outlook.com ([fe80::9d62:2f16:264b:285d]) by DM6PR12MB3945.namprd12.prod.outlook.com ([fe80::9d62:2f16:264b:285d%5]) with mapi id 15.20.3977.033; Wed, 31 Mar 2021 08:21:15 +0000 From: Tal Shnaiderman To: Stephen Hemminger , Narcisa Ana Maria Vasile CC: "dev@dpdk.org" , NBU-Contact-Thomas Monjalon , "dmitry.kozliuk@gmail.com" , "khot@microsoft.com" , "navasile@microsoft.com" , "dmitrym@microsoft.com" , "roretzla@microsoft.com" , "ocardona@microsoft.com" , "bruce.richardson@intel.com" , "david.marchand@redhat.com" , "pallavi.kadam@intel.com" Thread-Topic: [dpdk-dev] [PATCH v5 09/10] eal: add EAL argument for setting thread priority Thread-Index: AQHXJOyQMPGHHmIlWUaJwdetxkh+UqqdCLOAgAC4bhA= Date: Wed, 31 Mar 2021 08:21:15 +0000 Message-ID: References: <1616802771-31578-10-git-send-email-navasile@linux.microsoft.com> <1617057640-24301-1-git-send-email-navasile@linux.microsoft.com> <1617057640-24301-10-git-send-email-navasile@linux.microsoft.com> <20210330141139.728ccea2@hermes.local> In-Reply-To: <20210330141139.728ccea2@hermes.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: networkplumber.org; dkim=none (message not signed) header.d=none;networkplumber.org; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [5.29.59.30] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f66af810-494c-46d4-9d19-08d8f41df3ae x-ms-traffictypediagnostic: DM6PR12MB5023: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-microsoft-antispam-prvs: x-ms-exchange-transport-forked: True x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9NwWBLY2jximHmV1TJdfsOJNJZkSc4Ryg4NMpBfMA8vadpLm0C6KoTLTxfXGzs/YBNH2+8aHiALIP0LtzeYHbmW553IKI+LVNP0lfUenJljz71w/LIhsvxeLfQ6XEMoa2/ONWqHv6iMvm5wzjRn9wJ4ZgHMGZCwgup4xBRb77A+lIUuZ/iOj7pCoxGyB7HA8qcpAi6VZEzyLagWM00ofnGScFlozPm5AO6tZOaH60VqCfvZS4ncDbnANxtYthZb5Pm99VGS6V3EbQb+NAGCUZibG0oQWSqSBJS58vcUvfVo8M0GQVm5hQa+4m89n6Y/bJ6dSkB9veD8u7Ugoi18uakE8AsjNNbMqdTzBIjB0yqhTKRQ42MeXKEgBZz6Mh+U/Ng/j9zXp/7zVPHcSmzGJm20xV/Ufi0VRlcKx4vg1qlLXJ+b6YcuGALVUbYSMZPvwzEcw536XUJRhFu+jIy2ZVPo8YLQTkpYWTBPxmFbbHbI8GVkJxUa5iB7BXbbY9OkA8g5tJpvcVoNmxM2Ti2fWXQqeGzA20Yu9/IHfnA5pvbNfvN5w37UNUH1q8ZSvyNt4znBsIWjUknqJq2wxApaF7erVGqtbGTDxtLWe65SrL+prazvvWeOrN1IcC1ysncz6EBw/lfUOfIM4Sk3irGspOOnJEP1oFddcUXwXU24T7dEZUTdmASkMFR0TdqolYT1QEe2Ry9SGd4dF0xyoh22KyR2Kan5jAKzYtJ8/lKc2yBXqQrkBwnw31HBrhRBg1omW x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB3945.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(396003)(366004)(376002)(136003)(346002)(76116006)(66556008)(66476007)(66946007)(6506007)(2906002)(7696005)(8936002)(38100700001)(8676002)(83380400001)(186003)(316002)(966005)(33656002)(64756008)(26005)(86362001)(66446008)(478600001)(5660300002)(7416002)(55016002)(52536014)(110136005)(54906003)(9686003)(71200400001)(4326008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?4qWyliOxPYEgtXtcSt5OFhRjNZjHCTAc31HRMpPXfaECgw8k7Ok7zwPY8/gQ?= =?us-ascii?Q?B1pKe85WYrB79uTS53tHAphc4O0YJFRNT0+6j2VrHHTMglxlpqidI9vbQPnx?= =?us-ascii?Q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K3EzDC5GpJD6/szkUaD7BrLqw?= =?us-ascii?Q?RWVXnORPULmTqHwetkoKjpSATJQrMUtGmzkO+XBE4iGrQ5LWt546N0omZNC1?= =?us-ascii?Q?C6u27jAmKEkqj3WmFR9rd0f6aWrdPRKW86FQkFOBhvslGuUZNtN1pVfWuPuC?= =?us-ascii?Q?39xJxax8w3tkECbz41t5tTJ6DSUjRfYtYYrTt50/LeqDmOIrQCLvnoLbA42d?= =?us-ascii?Q?NbfDHAaGHO3QMxVIrqdcBviSzgOHfop+2WByxR21uUlVhq3kpd6+gdRnobP+?= =?us-ascii?Q?/UpCcWJL4Sd/SpBrIhIjQooKAhWa6vAinzF4kJbiN1ykA0A842ZQkSpnG1Tz?= =?us-ascii?Q?9UA=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3945.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f66af810-494c-46d4-9d19-08d8f41df3ae X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Mar 2021 08:21:15.0901 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: e9YQyVfK9QEJo5DObBBhzjdNvHfVsx5gNPR7lZ1aNQXbIVpViUbbjdIzecKX4gmgTmTHDGopQfc/25PVX6JSSg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB5023 Subject: Re: [dpdk-dev] [PATCH v5 09/10] eal: add EAL argument for setting thread priority 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" > Subject: Re: [dpdk-dev] [PATCH v5 09/10] eal: add EAL argument for settin= g > thread priority >=20 > External email: Use caution opening links or attachments >=20 >=20 > On Mon, 29 Mar 2021 15:40:39 -0700 > Narcisa Ana Maria Vasile wrote: >=20 > > From: Narcisa Vasile > > > > Allow the user to choose the thread priority through an EAL command > > line argument. > > > > The user can select the thread priority to be either 'normal' > > or 'critical': > > --thread-prio normal > > --thread-prio realtime > > > > Signed-off-by: Narcisa Vasile >=20 > The discussion internally was that this was intended to resolve issues on > Windows. > So it makes sense for Windows, but it is not something that we want to ha= ve > on Linux. > Could you make this Windows only, and add update the documentation > please. >=20 > I just don't want Linux users discovering it, trying it, then reporting m= ore > bugs. Windows needs it from performance aspects. However if we're keeping this option for Windows a warning like the one bel= ow from MSDN [1] should be added to docu: " A thread with a base priority level above 11 interferes with the normal o= peration of the operating system. Using REALTIME_PRIORITY_CLASS may cause d= isk caches to not flush, cause the mouse to stop responding, and so on. " [1] - https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/= nf-processthreadsapi-setthreadpriority