netqtop(8)
π netqtop(8) π
okay bestie, welcome to the System Manager's Manual page for netqtop π it's literally the tool that tells you whether your network traffic is spread evenly across each queue on a NIC. no cap, it's so useful π
β¨ NAME β¨
netqtop is the tool that summarizes PPS, BPS, average packet size, and packet counts ordered by packet sizes on each queue of a network interface. β¨
netqtop [-n nic] [-i interval] [-t throughput]
π¦ DESCRIPTION π¦
okay so netqtop keeps stats for both transmitted and received packets on every queue of the interface you pick, so developers can check if traffic is balanced across them. it's giving balance π«Ά
the output is a table with columns for PPS, BPS, average size, and packet counts in these ranges: [0,64), [64, 5120), [512, 2048), [2048, 16K), and [16K, 64K). it prints again every interval, which defaults to 1 second (the interval is in seconds) β±οΈ
it uses the net:net_dev_start_xmit and net:netif_receive_skb kernel tracepoints. because it relies on tracepoints, it only works on Linux 4.7+. so check your kernel first, bestie π§
β οΈ netqtop introduces significant overhead when network traffic is large. the details are in the OVERHEAD section below, so read that before you run it on a busy box π
π REQUIREMENTS π
you'll need CONFIG_bpf and bcc set up before it'll work. πΈ
π OPTIONS π
-n NICβ pick the network interface card you want to watch π-i INTERVALβ print results everyINTERVALseconds. if you skip this, the default is1π-t THROUGHPUTβ print the BPS and PPS of each queue π₯
π EXAMPLES π
to account statistics on eth0 and output them every 2 seconds, run:
# netqtop -n eth0 -i 1
π OVERHEAD π
π in a performance test, netqtop caused an overhead of up to 30% PPS drop when the printing interval was set to 1 second. so keep an eye out for packet drops while you're using it, bestie.
it also bumps ping-pong latency by about 1 usec π
π SOURCE π
this one comes from bcc, which you can find at https://github.com/iovisor/bcc π·
also look in the bcc distribution for a netqtop_example.txt file. it has example usage, output, and commentary for this tool, and it's literally the best cheat sheet π§ββοΈ
πΈ OS πΈ
Linux only, babe π§
π§ͺ STABILITY π§ͺ
Unstable - in development. still cooking, so be gentle π₯Ή
π AUTHOR π
written by Yolandajn, the queen behind it all π
ok that's the whole tea π«Ά this is from the USER COMMANDS section, dated 2020-07-30, and it's about netqtop(8). periodt, go make your traffic balanced β¨π
π¦
π¦ where this page comes from
- debian bookworm: bpfcc-tools 0.26.0+ds-1 Β· Apache-2.0
- debian trixie: bpfcc-tools 0.31.0+ds-7 Β· Apache-2.0
- ubuntu jammy: bpfcc-tools 0.18.0+ds-2 Β· Apache-2.0
- ubuntu noble: bpfcc-tools 0.29.1+ds-1ubuntu7 Β· Apache-2.0
- ubuntu questing: bpfcc-tools 0.31.0+ds-7ubuntu2 Β· Apache-2.0
- ubuntu resolute: bpfcc-tools 0.35.0+ds-1ubuntu2 Β· Apache-2.0
- ubuntu stonking: bpfcc-tools 0.35.0+ds-1ubuntu4 Β· Apache-2.0
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms