### Update: still reproducible on Pop!_OS 26.04 (kernel 7.2.15), with
data supporting a cause

Pop!_OS 26.04 is out, so I retested on a **fresh install** of 26.04 (same 
MacBookPro11,2, BCM4360, `wl` from
`broadcom-sta-dkms` 6.30.223.271 built by DKMS for 7.2.15-76070215-generic). 
The bug is still present.

**Symptom unchanged:** single-flow TCP upload (laptop to a Gigabit-Ethernet 
server on the same LAN, 5 GHz, signal
good) gets only ~55-65 Mbit/s in my first runs (~127-160 Mbit/s a few minutes 
later, same settings), while download
gets 293-401 Mbit/s.

**New evidence that points to the transmit path, not the radio, AP or
server:**

- UDP upload at 200 Mbit/s: **0 % loss** (0 of 258920 datagrams), so `wl` and 
the link can carry that rate.
- 4 parallel TCP flows each get ~60 Mbit/s (241 Mbit/s total): the cap is **per 
TCP connection**.
- Control: another machine (Gigabit Ethernet) sends a single TCP flow to the 
same server at 942 Mbit/s, so the
  server and its receive window are not the limit.
- `ss -tin` during an upload: `cwnd:298` but only `unacked:92` in flight, 
`notsent:2237000` waiting in the socket
  buffer, `rwnd_limited` 0.2 %, rtt 5 ms, no loss. The sender is holding data 
back although the congestion window
  and the receiver would allow more.

**Test of the hypothesis** (TCP small queues limiting data queued per flow 
while the driver releases transmitted
packets late): raising `net.ipv4.tcp_pacing_ss_ratio` and 
`net.ipv4.tcp_pacing_ca_ratio` (default 200/120, max 1000),
three alternated 10 s single-flow uploads per setting:

| setting | Mbit/s |
|---|---|
| default | 127, 160, 156 |
| 1000/1000 | 186, 208, 234 |
| default again | 126, 160, 158 |

The effect is +30-50 % and reverses when the values are restored, which is 
consistent with that hypothesis. It does
not reach what the link can do (UDP 200 Mbit/s or more), so it is at best a 
partial workaround, and I have not
proven the root cause. `tcp_limit_output_bytes` (4 MB here) does not seem to be 
the limiting factor.

**Caveats:** the baseline varied between measurement sessions with identical 
settings; only one client and one AP
were tested; `wl` exposes no station statistics, so I could not read the 
negotiated TX rate. A control with a second
Wi-Fi laptop is still to be done.

Full details and raw numbers are in my first report; I can attach `ss`
output and kernel logs if useful.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2172872

Title:
  Related: Ubuntu bug #2161038 (broadcom-sta-dkms fails to build with
  kernel 7.0), which is a build failure only. Here the module builds and
  works on 7.2.6, but TCP upload is much slower than on 6.17.9.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/broadcom-sta/+bug/2172872/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to