Closed
Bug 877784
Opened 13 years ago
Closed 10 years ago
Detect when cache locks are being held a long time and display UI to allow user to disable disk cache
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: ted, Unassigned)
Details
My Windows machine occasionally gets into a state where Firefox hangs for ~10 seconds at a time. I've never tracked down the root cause here, but I've profiled the hangs and they're all related to cache code. Things holding the cache lock, primarily. I have lots of chromehangs reports and Telemetry samples showing that this is bad. This is on a fairly fast fairly recent desktop (Core i7, 8GB, non-SSD drive). It's bad enough that if I didn't work for MoCo I would switch to Chrome.
taras tells me that the disk cache is being rewritten, which is fantastic, but I doubt that's going to ship in a short timeframe. I think that we should do something similar to bug 836010 in the short term and detect this situation. taras suggests that disabling disk cache makes this suck less, so perhaps we could detect this (via the telemetry entries) and offer easy UI to disable the disk cache?
(Also we have a lot of bugs on cache hangs, e.g. bug 828997.)
Comment 1•13 years ago
|
||
This sounds like bug 868441 (minus the UI part, but that seems like overkill).
| Reporter | ||
Comment 2•13 years ago
|
||
Except that patch landed and my Firefox is still laggy, so, uh.
Comment 3•13 years ago
|
||
See active discussion in the bug, it wasn't clear that it helped, it may need to be reopened.
Comment 4•13 years ago
|
||
I don't think we should add UI for this, but I'd have no objection to automagically disabling the cache when it's slow. Essentially just extending the existing cache-size management to be "0" when that's in fact optimal. :)
This differs from the slow-startup stuff because there we don't know what the specific problem is. Here we know the problem (bad code / long locks), and so should just make it fast without pestering the user.
| Reporter | ||
Comment 6•10 years ago
|
||
I haven't seen this in a long time, I think the disk cache rewrite probably fixed it.
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(ted)
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•