Raise the AlternateServices data storage limit beyond 2048 entries
Categories
(Core :: Networking: HTTP, enhancement, P2)
Tracking
()
People
(Reporter: mail, Assigned: mail)
References
Details
(Whiteboard: [necko-triaged])
nsIDataStorage caps every table at 2048 entries (MAX_SLOTS in security/manager/ssl/data_storage/src/lib.rs). For the Alt-Svc cache that cap is reached in practice.
On Nightly, the P99 of data_storage.alternate_services sits in the top histogram bucket (1950+), about 1.7% of clients. Beta looks similar at P99.9. Since bug 2080863 limited shift-reload clearing to the channel's origin attributes, caches keep growing (Nightly median 156 and rising), so more clients will hit the cap.
With network partitioning each mapping is stored per origin and top-level site, so the same HTTP/3 origin can take many slots.
Proposal: Increase the alt-svc cache from 2048 entries to 4096 entries. Slots are 1286 bytes, so the worst-case AlternateServices.bin grows from 2.5 MiB to 5 MiB. In case e.g. the 95th percentile hit the new limit as well, we can increase again.
Updated•25 days ago
|
Description
•