Closed Bug 1376503 Opened 7 years ago Closed 7 years ago

Add hard limit for cache slowness

Categories

(Core :: Networking, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: valentin, Assigned: valentin)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-active])

Attachments

(1 file, 1 obsolete file)

For really old/bad hardware we might not have a significant delay from the local average, but CachePerfStats::IsCacheSlow() should still return true if the average is above a certain limit.

We want the limit to be preffable, and it's initial value would probably be based on telemetry: HTTP_SUB_OPEN_TO_FIRST_FROM_CACHE_V2 https://mzl.la/2tT7Gsb
MozReview-Commit-ID: 3GIbTq9L9MS
Attachment #8885716 - Flags: review?(michal.novotny)
(In reply to Valentin Gosu [:valentin] from comment #0)
> For really old/bad hardware we might not have a significant delay from the
> local average, but CachePerfStats::IsCacheSlow() should still return true if
> the average is above a certain limit.

The original idea was to have a hard limit for a delay at http://searchfox.org/mozilla-central/rev/31311070d9860b24fe4a7a36976c14b328c16208/netwerk/protocol/http/nsHttpChannel.cpp#9243

I don't think we really need to have a hard limit in IsCacheSlow, because even on a really slow HW, the delay hard limit will ensure that the racing will start in a reasonable time.
Comment on attachment 8885716 [details] [diff] [review]
Add a preffable hard limit for cache slowness

Oh, right, I misunderstood that.
I'll write up another patch.
Attachment #8885716 - Attachment is obsolete: true
Attachment #8885716 - Flags: review?(michal.novotny)
MozReview-Commit-ID: 59BLUjMeFFr
Attachment #8885781 - Flags: review?(michal.novotny)
Attachment #8885781 - Flags: review?(michal.novotny) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/0fef3ce5bc6360bedb4548cc4c3396c7480f6406
Bug 1376503 - Add a limit to how long we wait for the cache before we race r=michal
Pushed by valentin.gosu@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/0fef3ce5bc63
Add a limit to how long we wait for the cache before we race r=michal
https://hg.mozilla.org/mozilla-central/rev/0fef3ce5bc63
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: