From: Vinicius Costa Gomes <vinicius.gomes@intel.com>
To: "Eric Dumazet" <eric.dumazet@gmail.com>, 叶小龙 <muryo.ye@gmail.com>,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: Why ping latency is smaller with shorter send interval?
Date: Fri, 02 Oct 2020 12:46:04 -0700 [thread overview]
Message-ID: <87zh544dj7.fsf@intel.com> (raw)
In-Reply-To: <0d8f732d-03e1-75f0-09fd-520911088c0d@gmail.com>
Hi,
Eric Dumazet <eric.dumazet@gmail.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
next prev parent reply other threads:[~2020-10-02 19:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-02 8:51 Why ping latency is smaller with shorter send interval? 叶小龙
2020-10-02 9:26 ` Eric Dumazet
2020-10-02 9:56 ` Willy Tarreau
2020-10-02 19:46 ` Vinicius Costa Gomes [this message]
[not found] <tencent_2AB240953B1EC86706967C25A6279EB60509@qq.com>
2020-10-02 22:24 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zh544dj7.fsf@intel.com \
--to=vinicius.gomes@intel.com \
--cc=eric.dumazet@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=muryo.ye@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox