Closed Bug 1927173 Opened 10 days ago Closed 4 days ago

Since the last few days, favicons on address bar take some time to appear

Categories

(Toolkit :: Places, defect, P1)

defect

Tracking

()

RESOLVED FIXED
134 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox132 --- unaffected
firefox133 + fixed
firefox134 + fixed

People

(Reporter: mayankleoboy1, Assigned: yazan)

References

(Regression)

Details

(Keywords: perf, regression, Whiteboard: [sng])

Attachments

(5 files)

See attached video. Wasnt some recent work done on favicons? Maybe its a fallout from that?
See attached video.

Attached file about:support

it's possible one of the queries hit a slow path and now it takes longer to resolve.
We should investigate this on a large database.
If you go to about:telemetry and you have telemetry enabled, there should be a slow SQL section, and you could check for queries continaining "moz_icons", what is reported there?

Flags: needinfo?(mayankleoboy1)
Keywords: perf

Maybe related to the changes in Bug 1664001, this check would indeed be slow WHERE p.url BETWEEN :pageRoot AND :pageRoot || "X'FFFF' " because there is no index on url... we should use origin or rev_host to restrict the result set

Flags: needinfo?(yalmacki)
Attached image slow sql.png

[Tracking Requested - why for this release]: performance problem on retrieving icons

Severity: -- → S2
Priority: -- → P1
Regressed by: 1664001

yeah, the posted Slow SQL telemetry confirms my suspect.

I am happy to give a profile using the profiler. What preset should I use? Or what threads I should add in the profiler UI to capture slow SQL or placesstuff in general?

Severity: S2 → --
Flags: needinfo?(mayankleoboy1) → needinfo?(mak)
Priority: P1 → --
No longer regressed by: 1664001
Flags: needinfo?(mak)
Whiteboard: [sng]
Severity: -- → S2
Priority: -- → P1
Regressed by: 1664001

(In reply to Mayank Bansal from comment #8)

I am happy to give a profile using the profiler. What preset should I use? Or what threads I should add in the profiler UI to capture slow SQL or placesstuff in general?

Thank you, I think we have all we need to fix this already.
I must file a bug to improve our profiler story around queries execution, currently you can check the "ignore selected elements and register all threads" option in about:profiling, and that will also show sqldb threads, but they don't report the executed query.... we can really do better there (fwiw it looks like the StepStatement call shows the query in the stack)

Here is a profile with all threads + IPC + I/O on all threads : https://share.firefox.dev/4f1NdY4

Assignee: nobody → yalmacki
Status: NEW → ASSIGNED

Submitted a patch that should fix this, thank you for reporting the issue.

Flags: needinfo?(yalmacki)

This try build does not fix the issue for me : https://share.firefox.dev/3YGvnEj

[Tracking Requested - why for this release]: performance problem on retrieving icons

Builds from this try push are much better: https://share.firefox.dev/48qdrB8

See Also: → 1927729
Pushed by yalmacki@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/32f052833473 Make FetchMostFrecentSubPageIcon SQL query faster by filtering by host. r=mak,places-reviewers
Status: ASSIGNED → RESOLVED
Closed: 4 days ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch
Attachment #9434655 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: Firefox hangs when opening and clicking into a new blank tab, favicons take time to load
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: N/A
  • Risk associated with taking this patch: Low
  • Explanation of risk level: This patch fixes a regression, and the fix has been verified in Nightly
  • String changes made/needed: N/A
  • Is Android affected?: no
Attachment #9434655 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

This is fixed for me on the latest Nightly. Thanks!

Duplicate of this bug: 1927729
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: