> 
> The '--cpu-resume-latency' can use to control C-state selection.
> Setting the CPU resume latency to 0 can limit the CPU just to enter
> C0-state to improve performance, which also may increase the power
> consumption of platform.
> 
> Signed-off-by: Huisong Li <lihuis...@huawei.com>
> Acked-by: Morten Brørup <m...@smartsharesystems.com>
> Acked-by: Chengwen Feng <fengcheng...@huawei.com>
> ---
>  .../sample_app_ug/l3_forward_power_man.rst    |  5 +-
>  examples/l3fwd-power/main.c                   | 55 +++++++++++++++++++
>  2 files changed, 59 insertions(+), 1 deletion(-)
> 
> diff --git a/doc/guides/sample_app_ug/l3_forward_power_man.rst 
> b/doc/guides/sample_app_ug/l3_forward_power_man.rst
> index 9c9684fea7..70fa83669a 100644
> --- a/doc/guides/sample_app_ug/l3_forward_power_man.rst
> +++ b/doc/guides/sample_app_ug/l3_forward_power_man.rst
> @@ -67,7 +67,8 @@ based on the speculative sleep duration of the core.
>  In this application, we introduce a heuristic algorithm that allows packet 
> processing cores to sleep for a short period
>  if there is no Rx packet received on recent polls.
>  In this way, CPUIdle automatically forces the corresponding cores to enter 
> deeper C-states
> -instead of always running to the C0 state waiting for packets.
> +instead of always running to the C0 state waiting for packets. But user can 
> set the CPU resume latency to control C-state selection.
> +Setting the CPU resume latency to 0 can limit the CPU just to enter C0-state 
> to improve performance, which may increase power
> consumption of platform.
> 
>  .. note::
> 
> @@ -105,6 +106,8 @@ where,
> 
>  *   --config (port,queue,lcore)[,(port,queue,lcore)]: determines which 
> queues from which ports are mapped to which cores.
> 
> +*   --cpu-resume-latency LATENCY: set CPU resume latency to control C-state 
> selection, 0 : just allow to enter C0-state.
> +
>  *   --max-pkt-len: optional, maximum packet length in decimal (64-9600)
> 
>  *   --no-numa: optional, disables numa awareness

Acked-by: Konstantin Ananyev <konstantin.anan...@huawei.com>

> --
> 2.22.0

Reply via email to