Subject: Re: Why ping latency is smaller with shorter send interval?

From: Vinicius Costa Gomes <[email-masked]>
Date: Fri, 02 Oct 2020 12:46:04 -0700

Hi,

Eric Dumazet <[email-masked]> writes:

>
> Many factors in play here.
>
> 1) if you keep cpus busy enough, they tend to keep in their caches
> the data needed to serve your requests. In your case, time taken to
> process an ICMP packet can be very different depending on how hot
> cpu caches are.
>
> 2) Idle cpus can be put in a power conserving state.
>   It takes time to exit from these states, as you noticed.
>   These delays can typically be around 50 usec, or more.

Still on the power management theme, in my experience, in addition to
the CPU power states, the PCIe and NIC power management settings also
effect latency on the order of 10-100s usecs when the system is allowed
to go idle, some things that have helped:

 - setting CONFIG_PCIEASPM to performance;
 - disabling EEE (energy efficient ethernet) in your NIC;

>
> Search for cpu C-states , and powertop program.
>

Cheers,
-- 
Vinicius