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 A17FC43D04; Wed, 20 Mar 2024 15:05:15 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3726C402B9; Wed, 20 Mar 2024 15:05:15 +0100 (CET) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 817124029F for ; Wed, 20 Mar 2024 15:05:13 +0100 (CET) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id 5778720C80; Wed, 20 Mar 2024 15:05:13 +0100 (CET) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [PATCH 0/2] introduce PM QoS interface Date: Wed, 20 Mar 2024 15:05:12 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9F315@smartserver.smartshare.dk> In-Reply-To: <20240320105529.5626-1-lihuisong@huawei.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH 0/2] introduce PM QoS interface Thread-Index: Adp6tiVZ1pcMHWGGTBuu5MwiVsgN0AAGHFgQ References: <20240320105529.5626-1-lihuisong@huawei.com> From: =?iso-8859-1?Q?Morten_Br=F8rup?= To: "Huisong Li" , Cc: , , , , , 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 > From: Huisong Li [mailto:lihuisong@huawei.com] > Sent: Wednesday, 20 March 2024 11.55 >=20 > The system-wide CPU latency QoS limit has a positive impact on the = idle > state selection in cpuidle governor. >=20 > Linux creates a cpu_dma_latency device under '/dev' directory to = obtain the > CPU latency QoS limit on system and send the QoS request for = userspace. > Please see the PM QoS framework in the following link: > https://docs.kernel.org/power/pm_qos_interface.html?highlight=3Dqos > This feature is supported by kernel-v2.6.25. >=20 > The deeper the idle state, the lower the power consumption, but the = longer > the resume time. Some service are delay sensitive and very except the = low > resume time, like interrupt packet receiving mode. >=20 > So this series introduce PM QoS interface. This looks like a 1:1 wrapper for a Linux kernel feature. Does Windows or BSD offer something similar? Furthermore, any high-res timing should use nanoseconds, not = microseconds or milliseconds. I realize that the Linux kernel only uses microseconds for these APIs, = but the DPDK API should use nanoseconds.