Zero packet loss and 11 ms latency, yet downloads crawled at 10–25 KB/s. Lowering the MTU to 1400 made them roughly 300 times faster.
ping sends small packets by default, so it only proves small packets get through. Probing with large, do-not-fragment packets: payloads of 1472 and 1464 bytes all failed and 1372 succeeded, meaning the real MTU on this WiFi path was around 1400. Full-size 1500-byte packets were silently dropped along the way, and TCP kept retransmitting.
ping -M do -s 1472 <host> # 不通就往下试,1372 通即路径 MTU ≈ 1400
sudo ip link set dev wlp3s0 mtu 1400With the interface MTU at 1400, a 12.6 MB package downloaded in 1.6 seconds. The setting is lost when WiFi reconnects; making it stick means writing it into the NetworkManager connection profile.
Related
Filtering kwargs with inspect.signature: a function that takes **kwargs looks like it accepts nothing, and a retry lost its model_path2026-11-08inspect.signature(f).parameters lists only declared parameters; **kwargs shows up as a single entry named kwargs. Checking by name whether a callee accepts an argument lets nothing through to the most permissive function. Autarkia’s empty-reply retry lost its model_path this way and fell back to the default model; the resulting 400s landed among upstream 503s, and that day’s error triage filed them as gateway noise.#Python#LLM#DebuggingFour Seconds on a First Visit2026-10-29The site always felt fast to me because my browser had a cache. A cold request from Beijing took 1.3 seconds to first byte and four seconds to finish, once twenty-four. On a small server in Hong Kong it now finishes in 0.3.#Networking#DeploymentNon-ASCII text and parentheses in Windows batch files: commands cut into fragments after chcp 65001, and a ) inside echo closes the if block early2026-10-27When cmd reads a batch file containing multibyte characters, later lines can be read from a shifted position, producing “is not recognized” errors with half a command name; chcp 65001, UTF-8 with BOM and GBK all drifted, and only pure ASCII was stable. Autarkia hit this three times, because the checker covered one directory and wasn’t in CI.#Windows#Batch Files#Debugging