10.95 - 10.83% idb-open-many-seq open_duration + 1 more (Windows) regression on Tue June 23 2026
Categories
(Core :: Storage: IndexedDB, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr140 | --- | unaffected |
| firefox-esr153 | --- | wontfix |
| firefox152 | --- | unaffected |
| firefox153 | --- | wontfix |
| firefox154 | --- | wontfix |
People
(Reporter: performance-sheriff-bot, Assigned: aaiunusov)
References
(Regression)
Details
(Keywords: perf, perf-alert, regression)
Perfherder has detected a browsertime performance regression from push 4138203b7be19c9ef0189fede9c1ecc06a0c5dac. As author of one of the patches included in that push, we need your help to address this regression.
Please acknowledge, and begin investigating this alert within 3 business days, or the patch(es) may be backed out in accordance with our regression policy.
| Regression | Test | Platform | Options | Absolute values [old vs new] | Performance Profiles |
|---|---|---|---|---|---|
| 11% | idb-open-many-seq open_duration (doc) | windows11-64-24h2-shippable | fission webrender | 6,017.15 -> 6,676.32 | Before/After |
| 11% | idb-open-many-seq time_duration (doc) | windows11-64-24h2-shippable | fission webrender | 6,036.00 -> 6,689.86 | Before/After |
| Improvement | Test | Platform | Options | Absolute values [old vs new] | Performance Profiles |
|---|---|---|---|---|---|
| 35% | idb-open-few-seq delete_duration (doc) | windows11-64-24h2-shippable | fission webrender | 13.84 ms -> 8.98 ms | Before/After |
| 35% | idb-open-few-par delete_duration (doc) | windows11-64-24h2-shippable | fission webrender | 13.39 ms -> 8.76 ms | Before/After |
Support & Actionable Steps
For questions, please contact bacasandrei@mozilla.com. You can also find help on Slack (#perf-help) or Matrix (#perftest).
Action guide details:
- See the guide to handling regression bugs for investigation steps.
- Review the alert summary for affected tests, graphs, and comparisons.
- Check the PerfCompare results.
- Tests on Try: Run all tests using
./mach try perf --alert 51136(See documentation link for details). - Profiling jobs: Trigger jobs from Treeherder job view or request them from bacasandrei@mozilla.com.
Comment 1•4 months ago
|
||
Set release status flags based on info from the regressing bug 2016438
| Assignee | ||
Comment 2•4 months ago
•
|
||
The patch from Bug 2016438 fixes a huge regression 55.08 - 50.08% idb-open-few-seq delete_duration / idb-open-few-par delete_duration.
It was due to the incorrect mutex. Which was verified by SQLite and merged into trunk.
My assumption is that Bug 2016438 introduced a regression, but slightly improved other tests, like these. It's a Tradeoff.
Means, reverting a patch is not a solution, and this regression requires investigation
Comment 3•4 months ago
|
||
(In reply to Artur Iunusov from comment #2)
The patch from Bug 2016438 fixes a huge regression 55.08 - 50.08% idb-open-few-seq delete_duration / idb-open-few-par delete_duration.
I think "huge" is a bit relative here. It's huge in relative terms, but not necessarily in absolute terms. On the other hand, open_duration is the opposite, the relative change isn't that large, but it's quite noticeable in absolute terms. Anyway, it would be good to understand what's going on and determine whether this is a real regression, noise, or something else.
According to the results posted in https://bugzilla.mozilla.org/show_bug.cgi?id=2016438#c42 it might actually be real?
Although those don't have all results like idb-open-many-seq.
| Assignee | ||
Comment 4•4 months ago
•
|
||
Yep, to paraphrase it. I think this regression comes from SQLite upgrade: Bug 1998267 and Bug 2023610.
Not from fixing a wrong mutex
| Assignee | ||
Updated•4 months ago
|
| Assignee | ||
Comment 5•4 months ago
|
||
At least, the graph shows a spike, then improvement after SQLite upgrade patch landed. Subsequently, after landing Bug 2016438 it goes slightly up again, how it was before upgrade. I think, we need to collect more data.
| Assignee | ||
Updated•4 months ago
|
| Assignee | ||
Updated•4 months ago
|
Updated•4 months ago
|
| Assignee | ||
Comment 6•3 months ago
|
||
The graph indicates potential for improvement.
This was primarily caused by the SQLite update.
In other words, I need to analyze their code to find a real cause.
Comment 7•3 months ago
•
|
||
(In reply to Artur Iunusov from comment #4)
Yep, to paraphrase it. I think this regression comes from SQLite upgrade: Bug 1998267 and Bug 2023610.
Not from fixing a wrong mutex
Are you saying this alert identified the wrong push, and the change was not from https://hg-edge.mozilla.org/integration/autoland/pushloghtml?changeset=4138203b7be19c9ef0189fede9c1ecc06a0c5dac ? I'm confused by your changes to the "regressed by" dependency.
| Assignee | ||
Comment 8•3 months ago
•
|
||
I'll try to explain this more clearly.
THE TIMELINE:
At February, 6, SQLite upgrade patch was landed: https://hg-edge.mozilla.org/integration/autoland/pushloghtml?changeset=0f1bdd59c39b7c3c2156c6d73a2288b260456aea
It had a bug, that regressed "delete" operations, but artificially improved "open" operations. Due to the wrong mutex selected for DOS paths.
Bug was fixed and landed:
https://bugzilla.mozilla.org/show_bug.cgi?id=2016438
SQLIte accepted my patch and merged it into their trunk:
https://sqlite.org/src/info/a4691489f21bb164 ("Do not confuse the long-DOS-device syntax with UNC paths")
Reverting my patch will introduce a known bug into the code (reverting my patch will mean: "DO CONFUSE the long-DOS-device syntax with UNC paths"). In other words, the new version of SQLite contained a bug that broke functionality and introduced confusion into the tests. That is why I flagged it as a regressor.
Or, I can explain it even shorter: my patch is already in SQLite trunk. Therefore, regression caused by SQLite upgrade.
| Assignee | ||
Updated•3 months ago
|
| Assignee | ||
Comment 9•3 months ago
|
||
The best Fair way to assess the actual difference, it is to create a local Nightly with the previous version of SQLite (before upgrade).
Then, for both versions (current Nightly and Nightly with downgraded SQLite version), run the command ./mach try perf --alert 51136.
However, this is very time-consuming.
If you really want to pursue this, please contact my manager, Sam Lloyd.
Comment 10•3 months ago
|
||
Artur: Last week I asked when this call may get triggered during the average browsing session, and how many times it would likely be called during the average browsing session. Additionally, I'm interested in when versions of SQLite were changed on the testing system. I'd be grateful if you could provide that information.
| Assignee | ||
Comment 11•3 months ago
•
|
||
We had only 1 SQLite version change this year (major SQLite upgrade):
https://hg-edge.mozilla.org/integration/autoland/pushloghtml?changeset=0f1bdd59c39b7c3c2156c6d73a2288b260456aea
To answer all the questions and assess the real perf regression/impact, we must create a version before SQLite upgrade (basically, revert the upgrade). Push it to phab.
And compare it with the current Nightly by using ./mach try perf --alert 51136
This is time consuming, though. I can kindly do this by your request.
Thank you.
UPD: this test testing a basic SQLite functionality, "open"* operations are widely used in our storage code almost everywhere. So, I can't tell exact number, unfortunately:
https://searchfox.org/firefox-main/search?q=idb-open-many-seq&path=&case=false®exp=false
(idb-open-many-seq: "Measures opening many IndexedDB databases in sequence")
*Every storage related operation requires opening IndexedDB database.
But we have a good chance to perform a clean test.
Comment 12•3 months ago
•
|
||
Summarising what was said in our meeting, I'd like to do some investigation before deciding how to move forward.
Comment 13•3 months ago
•
|
||
I've firefox profiling jobs with additional threads both before and after bug 2016438 landed.
Parameters:
depth: 1
gecko_profile_interval: 1
gecko_profile_features: js,stackwalk,cpu,memory,ipcmessages,flows,fileio,cpuallthreads,markersallthreads
gecko_profile_threads: GeckoMain,IPDL,QuotaManager,IndexedDB,Worker
Bug 2016438 landing can be seen in this db-open-many-seq Β· open_duration CI time series.
The owner of this test is DOM Lifecycle, Workers and Storage Team so happy to help analyze, but I think they will ultimately decide if this is just a baseline shift or an actual problem.
https://firefox-source-docs.mozilla.org/testing/perfdocs/raptor.html#idb-open-many-seq-c
Comment 14•3 months ago
|
||
To help analyze performance profiles we have an in-tree agent skill that can be used
https://searchfox.org/firefox-main/source/.agents/skills/profiler-analysis
This tool will be more effective if you install the command-line interface for querying Firefox Profiler
https://github.com/firefox-devtools/profiler/tree/main/profiler-cli
Comment 15•3 months ago
•
|
||
Thanks Andrew, that was really helpful.
CPU totals, before vs after:
QuotaManager IO 8,047.7ms -> 8,993.8ms (+946.0ms, +11.8%)
IPDL Background 2,497.2ms -> 2,695.8ms (+198.6ms)
content GeckoMain 1,102.0ms -> 1,238.0ms (+136.0ms)
IndexedDB IO #13 3.4ms (effectively idle in both)
Most of the extra time is in QuotaManager. Of that +946ms, +231ms is ZwWaitForAlertByThreadId (the thread's idle event-loop wait) so extra work is about +715ms.
The following call path accounts for +542.3ms of it (59.6ms -> 601.9ms):
NtCreateFile -> CreateFileW -> winHandleOpen -> winShmMap -> walIndexPageRealloc -> walIndexReadHdr -> walTryBeginRead -> walBeginReadTransaction -> sqlite3WalBeginReadTransaction -> sqlite3PagerSharedLock
A second, new path adds +82.4ms (0.0ms -> 82.4ms): winShmMap -> winHandleOpen -> GetFileAttributesExW.
Together that is ~+625ms of the ~+715ms of added work
My read is that this isn't a Gecko regression but an SQLite one & we should pass the before and afters to them for analysis via our support contract.
Artur: No further work is needed from you on this at the moment.
Updated•3 months ago
|
Comment 16•2 months ago
|
||
I ended up discussing this with Arnaud as I wasn't convinced about my analysis. He ran his own analysis and agrees there's no real regression.
Thanks Artur for tracing the original regression to winIsUNCPath and getting the fix into SQLite trunk.
Closing as won't fix
Comment 17•17 days ago
|
||
Clearing the needinfo request since this bug has been closed as WONTFIX for 2 months and 4 days.
For more information, please visit BugBot documentation.
Description
•