[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87zh544dj7.fsf@intel.com>
Date: Fri, 02 Oct 2020 12:46:04 -0700
From: Vinicius Costa Gomes <vinicius.gomes@...el.com>
To: Eric Dumazet <eric.dumazet@...il.com>,
叶小龙 <muryo.ye@...il.com>,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: Why ping latency is smaller with shorter send interval?
Hi,
Eric Dumazet <eric.dumazet@...il.com> 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
Powered by blists - more mailing lists