<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: matt</title>
    <description>The latest articles on DEV Community by matt (@mattv2).</description>
    <link>https://dev.to/mattv2</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3971169%2F8fb1de94-a8df-4121-b558-199f60260ae4.png</url>
      <title>DEV Community: matt</title>
      <link>https://dev.to/mattv2</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mattv2"/>
    <language>en</language>
    <item>
      <title>Troubleshoot Path MTU Discovery on a Linux VPN</title>
      <dc:creator>matt</dc:creator>
      <pubDate>Fri, 27 Nov 2026 00:05:07 +0000</pubDate>
      <link>https://dev.to/mattv2/troubleshoot-path-mtu-discovery-on-a-linux-vpn-31m0</link>
      <guid>https://dev.to/mattv2/troubleshoot-path-mtu-discovery-on-a-linux-vpn-31m0</guid>
      <description>&lt;p&gt;An SSH session that authenticates and then freezes when a command produces a lot of output is a classic path MTU discovery (PMTUD) failure. Small packets — the TCP handshake, the SSH banner, echo requests — cross the path, but full-sized data segments disappear. The same pattern appears as an HTTPS transfer that completes the TLS handshake and then stalls.&lt;/p&gt;

&lt;p&gt;This tutorial shows how to reproduce that failure on a Linux VPN, use &lt;code&gt;tracepath&lt;/code&gt; to find where the usable MTU drops, confirm an ICMP black hole with DF pings and &lt;code&gt;tcpdump&lt;/code&gt;, and repair it with a tunnel MTU change or TCP MSS clamping. IPv4 is the main example, with a short IPv6 note.&lt;/p&gt;

&lt;h2&gt;
  
  
  Table of Contents
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;1. Reproduce the Freeze: Small Packets Pass, Large Ones Stall&lt;/li&gt;
&lt;li&gt;2. Trace the Path and Read the PMTU Changes&lt;/li&gt;
&lt;li&gt;3. Confirm the Black Hole with DF Pings and tcpdump&lt;/li&gt;
&lt;li&gt;4. Fix the Tunnel MTU or Clamp TCP MSS&lt;/li&gt;
&lt;li&gt;5. Verify Recovery and Triage the Result&lt;/li&gt;
&lt;li&gt;Conclusion&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  1. Reproduce the Freeze: Small Packets Pass, Large Ones Stall
&lt;/h2&gt;

&lt;p&gt;Use a lab or maintenance window, and pick a destination that is reachable through the tunnel. The examples below use a WireGuard-style tunnel from a client at &lt;code&gt;10.8.0.2&lt;/code&gt; to a gateway at &lt;code&gt;10.8.0.1&lt;/code&gt;, with the gateway’s public address at &lt;code&gt;198.51.100.10&lt;/code&gt; and a server at &lt;code&gt;203.0.113.20&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;First establish that the problem is size-dependent, not a simple reachability failure:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Small request: usually succeeds&lt;/span&gt;
ssh -o &lt;span class="nv"&gt;ConnectTimeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;5 admin@203.0.113.20 &lt;span class="s1"&gt;'echo alive; uname -r'&lt;/span&gt;

&lt;span class="c"&gt;# Large response: often hangs after authentication&lt;/span&gt;
timeout 20 ssh admin@203.0.113.20 &lt;span class="s1"&gt;'head -c 5000000 /dev/zero | base64'&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"ssh exit status: $?"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;An exit status of &lt;code&gt;124&lt;/code&gt; means &lt;code&gt;timeout&lt;/code&gt; killed a session that was still waiting. For HTTPS, the same test often completes the TLS handshake and then stops:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -v --max-time 20 -o /dev/null https://203.0.113.20/large.bin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This pattern is exactly what RFC 2923 describes: pings and interactive TCP connections work, but bulk transfers fail when the first large packet is dropped, and the connection eventually times out. Firewalls are often misconfigured to suppress the ICMP messages that would otherwise tell the sender to reduce its packet size.&lt;/p&gt;

&lt;p&gt;Next, record the MTUs you are actually working with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ip -br link show
ip link show dev wg0
ip link show dev eth0
ip route get 203.0.113.20
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the failing example, &lt;code&gt;wg0&lt;/code&gt; reports &lt;code&gt;mtu 1420&lt;/code&gt; while &lt;code&gt;eth0&lt;/code&gt; reports &lt;code&gt;mtu 1500&lt;/code&gt;. The &lt;code&gt;wg0&lt;/code&gt; value is the largest inner packet the tunnel interface will accept; it is not a measurement of the underlay path. If the underlay path can only carry 1400-byte packets, a 1420-byte inner packet becomes roughly 1480 bytes on the wire after the outer IP, UDP and tunnel headers are added. That is larger than the underlay can forward.&lt;/p&gt;

&lt;p&gt;The repair therefore starts with a simple question: &lt;strong&gt;is the tunnel’s configured MTU larger than the underlay path can support?&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Trace the Path and Read the PMTU Changes
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;tracepath&lt;/code&gt; is useful here because it traces the path and reports the PMTU when it changes. It does not require root privileges, and &lt;code&gt;-n&lt;/code&gt; keeps the output numeric so DNS delays do not obscure the result. The &lt;code&gt;-l&lt;/code&gt; option sets the initial probe length instead of the default 65535 bytes for IPv4.&lt;/p&gt;

&lt;p&gt;Run it from the affected client, through the tunnel, to the destination:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tracepath -n -l 1500 203.0.113.20
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A failing trace may look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; 1?: [LOCALHOST]                      pmtu 1420
 1:  10.8.0.1                          1.284ms
 2:  no reply
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read this carefully:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The first line shows the local tunnel MTU, 1420.&lt;/li&gt;
&lt;li&gt;Hop 1 is the VPN gateway and it replies.&lt;/li&gt;
&lt;li&gt;Hop 2 produces no reply, which means probes large enough to be encapsulated and sent beyond the gateway are not coming back.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is consistent with a drop beyond the gateway, but it is not yet proof of an MTU black hole. The probe could also be blocked by a firewall, or the destination could be unreachable for another reason. The next step is to trace the underlay path to the gateway’s public endpoint:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tracepath -n -l 1500 198.51.100.10
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A revealing result looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; 1?: [LOCALHOST]                      pmtu 1500
 1:  192.0.2.1                        2.104ms
 1:  192.0.2.1                        2.033ms pmtu 1400
 2:  198.51.100.10                    9.818ms reached
     Resume: pmtu 1400 hops 2 back 2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The repeated hop is the important detail. The first probe at 1500 bytes was rejected at that router; &lt;code&gt;tracepath&lt;/code&gt; retried at 1400 and got through. The &lt;code&gt;pmtu 1400&lt;/code&gt; field appears only when the path MTU changes, and the final &lt;code&gt;Resume&lt;/code&gt; line summarizes the detected PMTU, hop count and return path. The &lt;code&gt;tracepath&lt;/code&gt; manual page documents this output format, including the meaning of &lt;code&gt;asymm&lt;/code&gt; and the &lt;code&gt;?&lt;/code&gt; that appears when the TTL has to be guessed.&lt;/p&gt;

&lt;p&gt;For a broader walkthrough of TTL probing, the &lt;code&gt;-l&lt;/code&gt; and &lt;code&gt;-p&lt;/code&gt; options, and how to interpret fields such as &lt;code&gt;asymm&lt;/code&gt;, see &lt;a href="https://linuxnetwork.net/blog/tracepath-very-similar-function-to-traceroute/" rel="noopener noreferrer"&gt;tracepath’s built-in Path MTU discovery&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Two cautions matter when reading the output:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;tracepath&lt;/code&gt; shows the PMTU only when it changes. It is not an MTU readout for every hop.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;tracepath&lt;/code&gt; uses UDP probes, so a firewall that blocks those probes can also produce &lt;code&gt;no reply&lt;/code&gt;. Confirm the finding with the DF ping sweep in the next section.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For IPv6, use &lt;code&gt;tracepath -6&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tracepath -6 -n -l 1500 2001:db8::20
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;tracepath -6&lt;/code&gt; is the modern replacement for &lt;code&gt;traceroute6&lt;/code&gt;, and the output format is essentially the same. IPv6 PMTUD relies on ICMPv6 Packet Too Big messages rather than the IPv4 DF mechanism. When those messages are blocked, IPv6 connections can complete the TCP handshake and then hang in the same way. RFC 8201 describes this black-hole behavior and the ICMPv6 feedback that PMTUD depends on.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Confirm the Black Hole with DF Pings and tcpdump
&lt;/h2&gt;

&lt;p&gt;A DF ping sweep gives you a size boundary. On Linux, &lt;code&gt;ping -M do&lt;/code&gt; sets the Don’t Fragment bit and rejects packets that exceed the local PMTU, while &lt;code&gt;-s&lt;/code&gt; sets the ICMP payload size. For IPv4, the total IP packet size is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;payload + 8-byte ICMP header + 20-byte IPv4 header
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So a 1312-byte payload produces a 1340-byte IP packet, and a 1332-byte payload produces a 1360-byte packet.&lt;/p&gt;

&lt;p&gt;Run a sweep from the client through the tunnel:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="k"&gt;for&lt;/span&gt; s &lt;span class="k"&gt;in&lt;/span&gt; 1200 1280 1312 1332 1352 1372 1392&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; ping -M &lt;span class="k"&gt;do&lt;/span&gt; -s &lt;span class="s2"&gt;"$s"&lt;/span&gt; -c 1 -W 2 203.0.113.20 &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null 2&lt;span class="o"&gt;&amp;gt;&amp;amp;&lt;/span&gt;1&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
    &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"$((s+28))-byte packet: reply"&lt;/span&gt;
  &lt;span class="k"&gt;else&lt;/span&gt;
    &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"$((s+28))-byte packet: no reply"&lt;/span&gt;
  &lt;span class="k"&gt;fi&lt;/span&gt;
&lt;span class="k"&gt;done&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If 1340-byte packets get replies but 1360-byte packets do not, you have a boundary consistent with an inner path MTU of about 1340. That fits the earlier example: 1360 bytes of inner traffic plus 60 bytes of outer IPv4, UDP and tunnel overhead is 1420 bytes, which exceeds the 1400-byte underlay path.&lt;/p&gt;

&lt;p&gt;To confirm the underlay itself, run the same kind of test from the VPN gateway against the peer’s public address:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# 1400-byte IP packet: should pass if the underlay PMTU is 1400&lt;/span&gt;
ping -M &lt;span class="k"&gt;do&lt;/span&gt; -s 1372 -c 1 198.51.100.10

&lt;span class="c"&gt;# 1500-byte IP packet: should fail if the underlay PMTU is 1400&lt;/span&gt;
ping -M &lt;span class="k"&gt;do&lt;/span&gt; -s 1472 -c 1 198.51.100.10
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the 1500-byte packet fails with a message such as &lt;code&gt;Frag needed and DF set (mtu = 1400)&lt;/code&gt;, the router is sending the correct ICMP feedback and the underlay path is telling you its limit. If it simply goes silent, the ICMP message may be filtered, or the router may not be generating it.&lt;/p&gt;

&lt;p&gt;Capture ICMP while you run the sweep. On the gateway, capture on the underlay interface or on &lt;code&gt;any&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo tcpdump -ni any -vv &lt;span class="s1"&gt;'icmp and host 198.51.100.10'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;icmp&lt;/code&gt; primitive is standard libpcap filter syntax. In the capture, look for an ICMP unreachable message that reports &lt;code&gt;need to frag&lt;/code&gt; and an MTU value. That is the PMTUD feedback path working. If you see the large DF packets leaving but no corresponding ICMP message, you are looking at a silent drop or an ICMP filter.&lt;/p&gt;

&lt;p&gt;This distinction is the difference between two similar-looking problems:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;ICMP is delivered:&lt;/strong&gt; PMTUD has the information it needs, but the sender may be ignoring it, or the message may be filtered later on the return path.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ICMP is absent:&lt;/strong&gt; the sender never learns the real path MTU and keeps retrying full-sized packets. That is the black hole.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;RFC 2923 recommends exactly this kind of test: small echo packets succeed, MTU-sized echo packets with DF set fail, and the connection stalls while the control channel appears healthy.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Fix the Tunnel MTU or Clamp TCP MSS
&lt;/h2&gt;

&lt;p&gt;Fix the underlay mismatch first. If the tunnel MTU is larger than the underlay can carry after encapsulation, MSS clamping alone may not save you, because the route’s PMTU will still be wrong.&lt;/p&gt;

&lt;h3&gt;
  
  
  Option 1: Lower the tunnel MTU
&lt;/h3&gt;

&lt;p&gt;For the example underlay PMTU of 1400 and roughly 60 bytes of outer IPv4, UDP and WireGuard overhead, the largest safe inner packet is about 1340 bytes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo ip link &lt;span class="nb"&gt;set&lt;/span&gt; dev wg0 mtu 1340
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the outer path may use IPv6, the overhead grows by another 20 bytes, so 1320 is the safer value. Do not go below 1280 if the tunnel carries IPv6, because 1280 is the IPv6 minimum link MTU.&lt;/p&gt;

&lt;p&gt;For a persistent WireGuard configuration, set the MTU in the interface section:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ini"&gt;&lt;code&gt;&lt;span class="k"&gt;[Interface]&lt;/span&gt;
&lt;span class="na"&gt;Address&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;10.8&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mf"&gt;0.2&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;24&lt;/span&gt;
&lt;span class="na"&gt;MTU&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1320&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;wg-quick&lt;/code&gt; manual documents &lt;code&gt;MTU&lt;/code&gt; as the interface setting that overrides automatic MTU discovery.&lt;/p&gt;

&lt;p&gt;Lowering the tunnel MTU constrains every protocol carried by the tunnel, including UDP and ICMP. That is its advantage: it is simple and predictable. Its disadvantage is that it reduces payload efficiency for all traffic, even connections that would have negotiated a smaller segment size anyway.&lt;/p&gt;

&lt;h3&gt;
  
  
  Option 2: Clamp TCP MSS
&lt;/h3&gt;

&lt;p&gt;TCP MSS clamping is more targeted. The MSS is the maximum TCP payload per segment, negotiated during the handshake, and it does not include the TCP and IP headers. A gateway can rewrite the MSS in forwarded SYN packets so that each side advertises a segment size that fits the tunnel.&lt;/p&gt;

&lt;p&gt;On an iptables gateway, clamp forwarded TCP handshakes to the route PMTU:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo iptables -t mangle -A FORWARD \
  -p tcp --tcp-flags SYN,RST SYN \
  -j TCPMSS --clamp-mss-to-pmtu
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;TCPMSS&lt;/code&gt; target with &lt;code&gt;--clamp-mss-to-pmtu&lt;/code&gt; sets the MSS to the path MTU minus 40 bytes for IPv4 and minus 60 bytes for IPv6. One &lt;code&gt;FORWARD&lt;/code&gt; rule sees both the client’s SYN and the server’s SYN-ACK, so it can clamp both directions.&lt;/p&gt;

&lt;p&gt;There are two important caveats:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The route PMTU must be correct.&lt;/strong&gt; If &lt;code&gt;wg0&lt;/code&gt; still reports 1420 but the real underlay limit is 1400, &lt;code&gt;--clamp-mss-to-pmtu&lt;/code&gt; will clamp to 1380 — still too large. Lower the tunnel MTU first, or use an explicit MSS value.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;FORWARD&lt;/code&gt; only covers traffic routed through the gateway.&lt;/strong&gt; Traffic generated locally on the gateway itself needs an &lt;code&gt;OUTPUT&lt;/code&gt; rule instead. On a client that terminates the tunnel locally, the simplest fix is usually the tunnel MTU, because there is no forwarding path to clamp.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For a known tunnel MTU, an explicit MSS is easier to reason about. For a 1340-byte tunnel:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# IPv4: 1340 - 40 = 1300&lt;/span&gt;
&lt;span class="c"&gt;# IPv6: 1340 - 60 = 1280&lt;/span&gt;
sudo iptables -t mangle -A FORWARD \
  -p tcp --tcp-flags SYN,RST SYN \
  -j TCPMSS --set-mss 1280
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The smaller value is safe for a mixed IPv4/IPv6 path; use 1300 if the tunnel is IPv4-only. Avoid setting the MSS much lower than necessary, because it reduces throughput on every TCP connection.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Verify Recovery and Triage the Result
&lt;/h2&gt;

&lt;p&gt;Rerun the same tests in the same order. First confirm the interface MTU changed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ip link show dev wg0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then rerun &lt;code&gt;tracepath&lt;/code&gt; through the tunnel:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;tracepath -n -l 1500 203.0.113.20
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You want the trace to get past the point where it previously stopped, with no unexplained &lt;code&gt;no reply&lt;/code&gt; at the first tunnel hop. If the underlay path is now correctly reflected, the trace should reach the destination, or at least progress beyond the old failure point.&lt;/p&gt;

&lt;p&gt;Next, rerun the DF ping at the size that previously failed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ping -M &lt;span class="k"&gt;do&lt;/span&gt; -s 1312 -c 3 203.0.113.20
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A 1340-byte packet should now get replies. Then repeat the large SSH transfer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;timeout 30 ssh admin@203.0.113.20 &lt;span class="s1"&gt;'head -c 5000000 /dev/zero | base64'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; wc -c
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the transfer completes and the byte count is what you expect, the black hole is closed. For HTTPS, rerun the same &lt;code&gt;curl --max-time&lt;/code&gt; command and confirm it finishes instead of stalling after the handshake.&lt;/p&gt;

&lt;p&gt;If you used MSS clamping, verify that the advertised MSS actually changed. Capture TCP SYN packets on the tunnel interface:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo tcpdump -ni wg0 -vv &lt;span class="s1"&gt;'tcp port 22 and tcp[tcpflags] &amp;amp; tcp-syn != 0'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The SYN and SYN-ACK packets should show an MSS value at or below the value you intended. If they still show the old value, check that the rule is in the right table and chain, that the traffic is actually passing through &lt;code&gt;FORWARD&lt;/code&gt;, and that another rule is not overriding it.&lt;/p&gt;

&lt;p&gt;Use this table to separate the remaining possibilities:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What you see&lt;/th&gt;
&lt;th&gt;What it usually means&lt;/th&gt;
&lt;th&gt;Next check&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Small pings and SSH login work; large transfers stall; DF pings fail above a size; ICMP &lt;code&gt;need to frag&lt;/code&gt; is captured&lt;/td&gt;
&lt;td&gt;MTU mismatch or PMTUD black hole&lt;/td&gt;
&lt;td&gt;Lower the tunnel MTU or clamp MSS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Same stall, but large DF packets leave and no ICMP &lt;code&gt;need to frag&lt;/code&gt; is captured&lt;/td&gt;
&lt;td&gt;ICMP is filtered or not generated&lt;/td&gt;
&lt;td&gt;Check ICMP type 3 code 4 in both directions; capture on the underlay&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Small pings also fail, or the tunnel handshake is unstable&lt;/td&gt;
&lt;td&gt;Routing or tunnel reachability problem, not MTU&lt;/td&gt;
&lt;td&gt;Check &lt;code&gt;ip route get&lt;/code&gt;, the WireGuard handshake and the underlay ping&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Stalls are random; small pings show loss or jitter&lt;/td&gt;
&lt;td&gt;Congestion or packet loss, not a clean MTU boundary&lt;/td&gt;
&lt;td&gt;Check interface errors, &lt;code&gt;mtr&lt;/code&gt; and queueing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DF pings pass at all sizes but TCP throughput is still poor&lt;/td&gt;
&lt;td&gt;Not an MTU problem&lt;/td&gt;
&lt;td&gt;Check TCP window, congestion and application behavior with &lt;code&gt;ss -ti&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;A VPN connection that authenticates but freezes on large output is often not a routing failure. It is frequently a PMTU black hole: the tunnel’s configured MTU is larger than the underlay can carry after encapsulation, and the ICMP feedback that would correct the sender never arrives.&lt;/p&gt;

&lt;p&gt;The diagnostic sequence is repeatable. Reproduce the size-dependent failure, record the tunnel and underlay MTUs, run &lt;code&gt;tracepath&lt;/code&gt; and read where the reported PMTU changes or where replies stop, then confirm the boundary with a DF ping sweep and &lt;code&gt;tcpdump&lt;/code&gt;. Fix the underlay mismatch first by lowering the tunnel MTU, or clamp TCP MSS once the route PMTU is accurate. Finally, rerun &lt;code&gt;tracepath&lt;/code&gt;, the DF ping and the original large transfer to prove the path recovered.&lt;/p&gt;

</description>
      <category>debugging</category>
      <category>linux</category>
      <category>networking</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>iostat 100% Utilization, Low aqu-sz on NVMe: What It Means</title>
      <dc:creator>matt</dc:creator>
      <pubDate>Thu, 26 Nov 2026 00:10:01 +0000</pubDate>
      <link>https://dev.to/mattv2/iostat-100-utilization-low-aqu-sz-on-nvme-what-it-means-47ka</link>
      <guid>https://dev.to/mattv2/iostat-100-utilization-low-aqu-sz-on-nvme-what-it-means-47ka</guid>
      <description>&lt;p&gt;A disk-utilization alert fires on an NVMe device: &lt;code&gt;%util&lt;/code&gt; is pegged at 100%, but &lt;code&gt;aqu-sz&lt;/code&gt; is 0.23 and write latency is 0.03 ms. The drive looks simultaneously “saturated” and almost idle. Before adding capacity or throttling a workload, you need to decide which column is telling the truth.&lt;/p&gt;

&lt;p&gt;This tutorial gives you a repeatable way to classify that reading: take a clean sample, interpret &lt;code&gt;%util&lt;/code&gt; correctly, then confirm the verdict with queue depth, latency, IOPS, throughput and application behavior.&lt;/p&gt;

&lt;h2&gt;
  
  
  Table of Contents
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Reproduce the reading with a clean sample&lt;/li&gt;
&lt;li&gt;Why %util can hit 100% while aqu-sz stays low&lt;/li&gt;
&lt;li&gt;Classify the sample: busy but healthy or genuinely saturated&lt;/li&gt;
&lt;li&gt;Cross-check the verdict against latency and the device envelope&lt;/li&gt;
&lt;li&gt;Choose the next action and record the evidence&lt;/li&gt;
&lt;li&gt;Conclusion&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Reproduce the reading with a clean sample
&lt;/h2&gt;

&lt;p&gt;Start with the extended report, hide idle devices, and limit the run to a few samples:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;iostat -xz 1 5 nvme0n1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The options matter:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;-x&lt;/code&gt; adds the extended columns, including &lt;code&gt;r_await&lt;/code&gt;, &lt;code&gt;w_await&lt;/code&gt; and &lt;code&gt;aqu-sz&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-z&lt;/code&gt; omits devices with no activity during the interval.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;1&lt;/code&gt; samples every second.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;5&lt;/code&gt; produces five reports, then stops.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The first report covers the period since boot, so it is usually an average of very different workloads. Discard it, or add &lt;code&gt;-y&lt;/code&gt; to omit it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;iostat -xzy 1 5 nvme0n1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For each interval, record &lt;code&gt;r/s&lt;/code&gt;, &lt;code&gt;w/s&lt;/code&gt;, &lt;code&gt;rkB/s&lt;/code&gt;, &lt;code&gt;wkB/s&lt;/code&gt;, &lt;code&gt;r_await&lt;/code&gt;, &lt;code&gt;w_await&lt;/code&gt;, &lt;code&gt;aqu-sz&lt;/code&gt; and &lt;code&gt;%util&lt;/code&gt;. A typical NVMe line might look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Device            r/s      w/s     rkB/s     wkB/s  r_await  w_await  aqu-sz  %util
nvme0n1        118.00  7480.00    944.00  105250.00     0.08     0.03    0.23  100.00
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;At first glance, 100% utilization looks alarming. But the rest of the line describes a device completing about 7,600 requests per second, moving roughly 105 MB/s of writes, with sub-0.1 ms latency and fewer than one request in flight on average. That is not the signature of a queued, slow device.&lt;/p&gt;

&lt;p&gt;The first job is therefore not to explain away the alert, but to establish whether the columns agree with each other. In this sample, they do not: the queue and latency columns describe a lightly loaded device, while &lt;code&gt;%util&lt;/code&gt; claims it never stopped working.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why %util can hit 100% while aqu-sz stays low
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;%util&lt;/code&gt; is not a CPU-style percentage of capacity. The &lt;a href="https://www.man7.org/linux/man-pages/man1/iostat.1@@sysstat.html" rel="noopener noreferrer"&gt;iostat manual&lt;/a&gt; defines it as the percentage of elapsed time during which I/O requests were issued to the device. It also gives the critical caveat: saturation occurs when this value is close to 100% for devices serving requests serially, but for parallel devices such as RAID arrays and modern SSDs, the number “does not reflect their performance limits.”&lt;/p&gt;

&lt;p&gt;That distinction is the whole story. A serial disk can do roughly one thing at a time, so “busy almost all the time” and “saturated” are nearly the same statement. An NVMe device can have many commands outstanding across multiple queues and internal channels. One request in flight is enough to keep the busy indicator set, even if the device has enormous headroom.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;aqu-sz&lt;/code&gt; answers a different question. The same manual defines it as the average queue length of requests issued to the device, including requests waiting and requests in service. If &lt;code&gt;aqu-sz&lt;/code&gt; is 0.23, the time-averaged number of outstanding requests was well below one. A device cannot have been continuously busy in the strict sense and still average fewer than one request in flight: if the queue is never empty, its average size must be at least one. So when &lt;code&gt;%util&lt;/code&gt; is 100 and &lt;code&gt;aqu-sz&lt;/code&gt; is 0.23, the two counters are not describing the same physical reality.&lt;/p&gt;

&lt;p&gt;The kernel explains why. &lt;code&gt;%util&lt;/code&gt; is derived from &lt;code&gt;io_ticks&lt;/code&gt;, which the kernel’s &lt;a href="https://docs.kernel.org/admin-guide/iostats.html" rel="noopener noreferrer"&gt;I/O statistics documentation&lt;/a&gt; describes as increasing “so long as field 9 is nonzero” — that is, so long as at least one I/O is in progress. It is a busy-time indicator, not a measure of concurrency. It is also sampled and approximate. A &lt;a href="https://git.kernel.dk/cgit/linux/commit/block/blk.h?id=99dc422335d8b2bd4d105797241d3e715bae90e9" rel="noopener noreferrer"&gt;kernel commit that reworked io_ticks accounting&lt;/a&gt; documents the effect directly: with &lt;code&gt;HZ&lt;/code&gt; at 250, a test using 4 ms of think time reported utilization around 90% while the disk was really idle. Fast devices generate activity in nearly every sampling interval, so the busy indicator can stay pinned at 100% even when the queue is shallow and latency is low.&lt;/p&gt;

&lt;p&gt;This is not just an NVMe quirk, but NVMe makes it obvious. The &lt;a href="https://docs.kernel.org/block/blk-mq.html" rel="noopener noreferrer"&gt;blk-mq documentation&lt;/a&gt; describes the multi-queue block layer as a way to exploit “the parallelism offered by modern storage devices,” with multiple hardware dispatch queues and requests submitted simultaneously. A metric that asks only “was at least one request in flight?” cannot distinguish a device using one queue slot from one using dozens. For the same reason, &lt;code&gt;%util&lt;/code&gt; on a RAID volume or SAN LUN may reflect host-side busy time while the backend array has plenty of unused capacity.&lt;/p&gt;

&lt;p&gt;The counter that does measure accumulation is &lt;code&gt;aqu-sz&lt;/code&gt;. The &lt;a href="https://docs.kernel.org/block/stat.html" rel="noopener noreferrer"&gt;block-layer stat documentation&lt;/a&gt; defines &lt;code&gt;time_in_queue&lt;/code&gt; as the wait time multiplied by the number of requests waiting, so the resulting average queue depth rises when requests pile up. That is why &lt;code&gt;aqu-sz&lt;/code&gt; and &lt;code&gt;await&lt;/code&gt; are better saturation signals than &lt;code&gt;%util&lt;/code&gt; on parallel storage.&lt;/p&gt;

&lt;p&gt;For the complete field definitions and the same parallel-device caveat in one place, linuxnetwork.net’s &lt;a href="https://linuxnetwork.net/blog/iostat/" rel="noopener noreferrer"&gt;iostat guide to %util and the other columns&lt;/a&gt; is a useful companion when you build alerts or dashboards around these counters.&lt;/p&gt;

&lt;h2&gt;
  
  
  Classify the sample: busy but healthy or genuinely saturated
&lt;/h2&gt;

&lt;p&gt;Do not replace one misleading counter with another. Classify the device using three questions together:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Is &lt;code&gt;aqu-sz&lt;/code&gt; low and stable, or high and rising?&lt;/strong&gt; A value below one with low latency suggests the device is keeping up. A value that climbs interval after interval suggests arrivals are outpacing completions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Are &lt;code&gt;r_await&lt;/code&gt; and &lt;code&gt;w_await&lt;/code&gt; near their normal baseline?&lt;/strong&gt; These columns include queue time plus service time, so they reflect the delay an application actually experiences. A rising &lt;code&gt;w_await&lt;/code&gt; is a stronger warning than a high &lt;code&gt;%util&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Are IOPS and throughput at the device’s expected envelope, or have they stalled?&lt;/strong&gt; A device can be busy and fast, or busy and slow. The difference is whether adding load still produces more work.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A simple decision table helps:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Pattern&lt;/th&gt;
&lt;th&gt;&lt;code&gt;%util&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;&lt;code&gt;aqu-sz&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;&lt;code&gt;await&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;IOPS / throughput&lt;/th&gt;
&lt;th&gt;Likely verdict&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Busy but healthy&lt;/td&gt;
&lt;td&gt;Near 100&lt;/td&gt;
&lt;td&gt;Below 1, stable&lt;/td&gt;
&lt;td&gt;Near baseline, e.g. sub-0.1 ms on NVMe&lt;/td&gt;
&lt;td&gt;At or below expected envelope&lt;/td&gt;
&lt;td&gt;No saturation; fix the alert&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Genuinely queued&lt;/td&gt;
&lt;td&gt;Near 100&lt;/td&gt;
&lt;td&gt;Above baseline and rising&lt;/td&gt;
&lt;td&gt;Rising, often several times baseline&lt;/td&gt;
&lt;td&gt;Plateauing or falling&lt;/td&gt;
&lt;td&gt;Device or workload is saturated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Parallel device under pressure&lt;/td&gt;
&lt;td&gt;May be below 100&lt;/td&gt;
&lt;td&gt;High and rising&lt;/td&gt;
&lt;td&gt;Rising&lt;/td&gt;
&lt;td&gt;Plateauing or falling&lt;/td&gt;
&lt;td&gt;Saturation despite a misleading &lt;code&gt;%util&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Inconclusive&lt;/td&gt;
&lt;td&gt;Any&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;td&gt;Normal&lt;/td&gt;
&lt;td&gt;Look beyond the block device&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The worked line from the previous section is the first pattern. Its &lt;code&gt;aqu-sz&lt;/code&gt; of 0.23 and &lt;code&gt;w_await&lt;/code&gt; of 0.03 ms are consistent with roughly 7,480 writes per second and a small average in-flight count. The device is completing work quickly; the 100% is the approximate busy flag, not evidence of a queue.&lt;/p&gt;

&lt;p&gt;A genuinely queued NVMe sample looks different:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Device            r/s      w/s     rkB/s     wkB/s  r_await  w_await  aqu-sz  %util
nvme0n1         95.00  4100.00    760.00   58000.00     0.42     2.80   12.40  100.00
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, write throughput has fallen, write latency has risen by roughly two orders of magnitude, and the average queue is 12.4 requests. The device is not merely busy; requests are waiting. That is the pattern that justifies investigation or capacity action.&lt;/p&gt;

&lt;p&gt;There is an important exception to “low &lt;code&gt;aqu-sz&lt;/code&gt; means healthy.” If the application issues synchronous I/O with little concurrency, the queue may stay near one even when each request is slow. In that case, a low &lt;code&gt;aqu-sz&lt;/code&gt; combined with rising &lt;code&gt;await&lt;/code&gt; and falling IOPS is still a saturation signal. Queue depth reflects the workload’s concurrency as well as the device’s ability to keep up, so always read it alongside latency and completed work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cross-check the verdict against latency and the device envelope
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;iostat&lt;/code&gt; observes the block layer. Applications observe the whole path: filesystem, page cache, database locks, network storage, and their own queuing. Before you act on a storage alert, cross-check the storage verdict against the thing users actually feel.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Compare application latency with the iostat samples.&lt;/strong&gt; If p95 or p99 application latency rises at the same timestamps as &lt;code&gt;w_await&lt;/code&gt;, the storage signal is probably real. If application latency is normal while &lt;code&gt;%util&lt;/code&gt; is 100, the alert is probably measuring busy time rather than pain.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Compare against a baseline or a known envelope.&lt;/strong&gt; A modern NVMe device may sustain hundreds of thousands of small random IOPS, while a cloud volume may have a published IOPS or throughput limit. Use historical baselines or a controlled &lt;code&gt;fio&lt;/code&gt; run to establish what the device can do with the same request size and read/write mix. A queue depth of 12 may be trivial on one device and severe on another.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Check the workload shape.&lt;/strong&gt; &lt;code&gt;r/s&lt;/code&gt; and &lt;code&gt;w/s&lt;/code&gt; tell you request rate; &lt;code&gt;rkB/s&lt;/code&gt; and &lt;code&gt;wkB/s&lt;/code&gt; tell you throughput. Many small requests stress IOPS, while large sequential requests stress bandwidth. The same &lt;code&gt;%util&lt;/code&gt; reading can mean very different things depending on which limit you are approaching.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Look behind RAID and SAN abstractions.&lt;/strong&gt; On a hardware RAID volume or a network LUN, host-side &lt;code&gt;%util&lt;/code&gt; and &lt;code&gt;aqu-sz&lt;/code&gt; may not include the backend array’s queues. Check the array or volume metrics before concluding that the host is driving the device to its limit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Rule out non-storage bottlenecks.&lt;/strong&gt; High application latency with normal &lt;code&gt;await&lt;/code&gt;, low &lt;code&gt;aqu-sz&lt;/code&gt; and normal device throughput points away from the drive. Filesystem contention, synchronous writes, database locks, CPU saturation, or network round trips can all look like “slow storage” from the application’s perspective.&lt;/p&gt;

&lt;h2&gt;
  
  
  Choose the next action and record the evidence
&lt;/h2&gt;

&lt;p&gt;Once you have classified the sample, the action follows from the evidence rather than from &lt;code&gt;%util&lt;/code&gt; alone.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If the device is busy but healthy:&lt;/strong&gt; do not add capacity. Change the alert so it requires more than &lt;code&gt;%util&lt;/code&gt;. For NVMe and RAID, a practical rule is to require &lt;code&gt;%util&lt;/code&gt; near 100 &lt;em&gt;and&lt;/em&gt; either &lt;code&gt;aqu-sz&lt;/code&gt; above its baseline &lt;em&gt;or&lt;/em&gt; &lt;code&gt;await&lt;/code&gt; above the application’s latency budget. Record the sample that justified the change, including the device, workload, baseline and the fact that latency stayed low.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If the device is genuinely queued and slow:&lt;/strong&gt; decide whether the pressure is workload-driven or capacity-driven. Reduce concurrency, batch or align I/O, move cold data, or spread the workload across devices. Check whether the I/O scheduler or queue configuration is appropriate for NVMe; a scheduler that helps a spinning disk may add overhead on a device that prefers direct dispatch. If the device is at its IOPS or throughput envelope and latency is still rising, add capacity or move the workload.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If the reading is inconclusive:&lt;/strong&gt; keep the alert but downgrade its severity, and add application latency and device-envelope checks to the investigation. Escalate to the storage or platform team with the raw samples rather than a single &lt;code&gt;%util&lt;/code&gt; value.&lt;/p&gt;

&lt;p&gt;In all three cases, leave a short evidence record: the exact command, the timestamp, the per-interval columns, the application latency at the same time, the known device envelope, and the decision. That record is what turns a recurring “100% utilization” alert into a rule your team can trust.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;A 100% &lt;code&gt;%util&lt;/code&gt; reading on NVMe does not mean the drive is saturated. &lt;code&gt;%util&lt;/code&gt; is a busy-time indicator: it says at least one request was in flight, not that requests were queued or that the device had run out of capacity. On a parallel device, that indicator can stay at 100% while &lt;code&gt;aqu-sz&lt;/code&gt; remains below one and latency stays in the microseconds.&lt;/p&gt;

&lt;p&gt;Use &lt;code&gt;%util&lt;/code&gt; as a prompt to look closer, not as a verdict. Sample with &lt;code&gt;iostat -xz 1 5&lt;/code&gt;, discard the since-boot average, and read &lt;code&gt;aqu-sz&lt;/code&gt; and &lt;code&gt;r_await&lt;/code&gt;/&lt;code&gt;w_await&lt;/code&gt; alongside IOPS and throughput. Busy but healthy means low queue depth, baseline latency and normal completed work. Genuine saturation means rising queue depth and latency while IOPS or throughput stalls, confirmed by application latency.&lt;/p&gt;

&lt;p&gt;The right response to the original alert is usually to fix the alerting rule, not the drive. When the evidence does show real queueing, act on the workload or capacity — and keep the sample that proves it.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>monitoring</category>
      <category>performance</category>
      <category>sre</category>
    </item>
  </channel>
</rss>
