From: Herbert Wolverson <herberticus@gmail.com>
To: libreqos <libreqos@lists.bufferbloat.net>
Subject: [LibreQoS] cpumap-pping 1.0 final
Date: Tue, 15 Nov 2022 08:08:29 -0600 [thread overview]
Message-ID: <CA+erpM6CBHWxobnWSCOuufe-9fZwS0Pmm_hT+BqZaUGTwcu5Zg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1660 bytes --]
Hey!
Just wanted to announce that cpumap-pping is now tagged as the 1.0 release.
The one major change from RC1 is that the xdp_pping utility no longer does
any cleaning - it just reports statistics. That makes its execution a LOT
faster, and removes a stalling issue that was showing up under heavy (5
gbit/s+) load.
Under the hood, each "report flow" now carries a "recycle time" and a
"fresh data" flag. They are also stored in an "LRU map" rather than a
strict hash map - so if the buffer fills up, it automatically (in kernel
space) evicts (replaces) the oldest member rather than pausing to report
the event. This in turn allows for all memory allocation to be up-front (on
load), so there are *no* memory allocations or reallocations within the
running RTT tracking system.
Once a "report flow" has achieved its target number of samples, it stops
collecting data. 30 seconds (by default, it's configurable) later, the flow
is "recycled" - its buffer is empties, "fresh data" is set to false, and
the recycle time bumped to "now + 30 seconds". If data arrives, "fresh
data" is set to true - and the reporting tool will show the new data. If no
data arrives, the flow ages slowly to the bottom of the list and is
replaced with no memory allocation/deallocation/reallocation.
This has largely eliminated the occasional variance in execution time (it
never spiked above 6000 nanoseconds to begin with; but now it's
consistently under 0.0005 ms added ping time; you won't notice it). More
importantly, it completely eradicated the high-load behavior of the
xdp_pping sitting and spinning for long periods of times under high lock
contention.
-- Herbert
[-- Attachment #2: Type: text/html, Size: 1948 bytes --]
next reply other threads:[~2022-11-15 14:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-15 14:08 Herbert Wolverson [this message]
2022-11-15 14:44 ` Dave Taht
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
List information: https://lists.bufferbloat.net/postorius/lists/libreqos.lists.bufferbloat.net/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CA+erpM6CBHWxobnWSCOuufe-9fZwS0Pmm_hT+BqZaUGTwcu5Zg@mail.gmail.com \
--to=herberticus@gmail.com \
--cc=libreqos@lists.bufferbloat.net \
/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