table of contents
- unstable 24.11.2-1
rte_power_qos.h(3) | Library Functions Manual | rte_power_qos.h(3) |
NAME¶
rte_power_qos.h
SYNOPSIS¶
#include <stdint.h>
#include <rte_compat.h>
Functions¶
__rte_experimental int rte_power_qos_set_cpu_resume_latency
(uint16_t lcore_id, int latency)
__rte_experimental int rte_power_qos_get_cpu_resume_latency (uint16_t
lcore_id)
Detailed Description¶
PM QoS API.
The CPU-wide resume latency limit has a positive impact on this CPU's idle state selection in each cpuidle governor. Please see the PM QoS on CPU wide in the following link: https://www.kernel.org/doc/html/latest/admin-guide/abi-testing.html?highlight=pm_qos_resume_latency_us#abi-sys-devices-power-pm-qos-resume-latency-us
The deeper the idle state, the lower the power consumption, but the longer the resume time. Some services are latency sensitive and request a low resume time, like interrupt packet receiving mode.
In these case, per-CPU PM QoS API can be used to control this CPU's idle state selection and limit just enter the shallowest idle state to low the delay after sleep by setting strict resume latency (zero value).
Definition in file rte_power_qos.h.
Function Documentation¶
__rte_experimental int rte_power_qos_set_cpu_resume_latency (uint16_t lcore_id, int latency)¶
Warning
Parameters
latency The latency should be greater than and equal to zero in microseconds unit.
Returns
__rte_experimental int rte_power_qos_get_cpu_resume_latency (uint16_t lcore_id)¶
Warning
Get the current resume latency of this logical core. The default value in kernel is
See also
Returns
Author¶
Generated automatically by Doxygen for DPDK from the source code.
Version 24.11.2 | DPDK |