Open
Bug 1248058
Opened 10 years ago
Updated 3 years ago
Make sure that use of LOAD_BYPASS*_CACHE flags bypassing our DNS cache doesn't cause any performance issues
Categories
(Core :: Networking: DNS, defect, P3)
Core
Networking: DNS
Tracking
()
NEW
| Tracking | Status | |
|---|---|---|
| firefox47 | --- | affected |
People
(Reporter: mayhemer, Unassigned)
Details
(Whiteboard: [necko-backlog])
Bug 938803 introduced this. Seems like LOAD_BYPASS_CACHE may be used frequently while it should not lead to DNS refresh every time. One example is an XHR POST that should completely bypass caching (bug 1248049). We don't necessarily need to use LOAD_BYPASS_CACHE for that case, but that is suboptimal: in case HTTP cache index is not up to date, we will on every XHR POST loop to disk to look for a file (if not found, no cache entry will be created), this is unnecessary IO.
We may use just the LOAD_BYPASS_LOCAL_CACHE to do DNS refreshes.
| Reporter | ||
Updated•10 years ago
|
Severity: major → normal
| Reporter | ||
Comment 1•10 years ago
|
||
Err... we will ALWAYS loop to disk, regardless index status. So, I think to fix bug 1248049 we need to pass LOAD_BYPASS_CACHE as well. Which means a DNS refresh all the time.
Flags: needinfo?(mcmanus)
Comment 2•10 years ago
|
||
I think the key thing here is to refresh the DNS cache when normal refresh is pressed. does LOCAL_CACHE do that?
Flags: needinfo?(mcmanus)
| Reporter | ||
Comment 3•10 years ago
|
||
(In reply to Patrick McManus [:mcmanus] from comment #2)
> I think the key thing here is to refresh the DNS cache when normal refresh
> is pressed. does LOCAL_CACHE do that?
It does. But the correct question should be: does a normal refresh set BYPASS_LOCAL_CACHE? No, it doesn't.
My consideration here is that we do refresh for literally every channel that is set BYPASS_CACHE or BYPASS_LOCAL_CACHE. I think that should be made only for top level documents. Otherwise it's pretty much waste of resources.
| Reporter | ||
Comment 4•10 years ago
|
||
We should measure how often we do DNS refreshes that are not coming from F5.
| Reporter | ||
Comment 6•10 years ago
|
||
(In reply to Patrick McManus [:mcmanus] from comment #5)
> honza, can you make a specific proposal?
let's talk about this live. generally, I think some kind of a telemetry may give answers whether this is a problem.
Summary: Reconsider nsIRequest::LOAD_BYPASS_CACHE for DNS refresh → Make sure that use of LOAD_BYPASS*_CACHE flags bypassing our DNS cache doesn't cause any performance issues
Comment 7•8 years ago
|
||
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P1
Comment 8•8 years ago
|
||
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: P1 → P3
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•