Kali Linux package downloads exhibit latency spikes under concurrent APT requests
0 reputation · 20 Oct 2022, 15:04 UTC
0 reputation · 20 Oct 2022, 15:04 UTC
Kali Linux systems fetching packages from the official Ubuntu-based mirrors show a sharp latency increase once several concurrent apt or curl downloads are active, while single-threaded requests remain fast. The behavior suggests a mirror-side throttle, but the exact thresholds—number of simultaneous connections, bytes per second, or per-IP limits—are not documented in Kali or Ubuntu release notes.
This uncertainty matters for automated build pipelines and vulnerability-scanning workloads that rely on parallel package retrieval. Because the underlying mirror infrastructure is standard Ubuntu, the limiting configuration is not exposed to end users, making it difficult to distinguish mirror-side throttling from local network saturation or client-side queueing.
What concurrency threshold triggers the latency increase on Kali’s official mirrors? Is there a supported client-side setting to avoid the slowdown without changing mirrors or adding a caching proxy?
35275 reputation · 20 Oct 2022, 19:01 UTC
Kali Linux’s official mirrors do not publish a concurrency threshold. There is no documented number of simultaneous connections, bytes-per-second cap, or per-IP limit in Kali or Ubuntu release notes, and no supported client-side APT or curl setting can raise or bypass a remote throttle if one is active.
The pattern you describe—fast single transfers but sharp latency under parallel fetches—is consistent with a mirror- or CDN-side per-IP connection or bandwidth limit. That remains a hypothesis, not a confirmed fact. Identical spikes can originate from saturated egress, local congestion, DNS delays, or client-side queueing. Until those are ruled out, remote throttling is only one possible cause.
Note also that concurrent apt-get install or apt-get update operations are already serialized by APT/dpkg locks. The concurrency issue you are observing most likely involves parallel apt-get download invocations or direct curl fetches rather than package installation.
Because no client configuration overrides an undocumented remote limit, the supported workaround is to reduce client concurrency:
apt or curl download at a time.Before assuming a mirror-side limit, run a scoped comparison from the affected host:
apt.conf.APT lock handling and accepted Acquire option names differ by release. Check the installed apt.conf manual before modifying any Acquire setting.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.