Open Bug 1736916 Opened 3 years ago Updated 2 years ago

[Meta] Firefox has bursts of activity every 5 minutes

Categories

(Core :: Performance, defect, P3)

defect

Tracking

()

People

(Reporter: florian, Unassigned)

References

(Depends on 2 open bugs, Blocks 1 open bug)

Details

(Keywords: meta, power)

As an experiment, I profiled for 20 minutes a Firefox instance that only had a single tab: about:blank.

Here is the result: https://share.firefox.dev/3DZp81b

Every 5 minutes there's a burst of activity in both the parent process and the Privileged Content process (very visible when looking at the memory tracks).

Bug 1735408 makes the markers on the Timer tracks very noisy, but using the console, I could get the list of timers that run with a 300,000ms delay:

  • StorageActivityService
    ​​

  • IdleRunnableWrapper::SetTimer
    ​​

  • setTimeout() for _getTimeoutPromise/timeoutPromise</<[Sqlite.jsm]:JS
    ​​

  • DataStorageTimer
    ​​

  • setInterval() for init/this._recordContentProcessCountInterval<[BrowserUsageTelemetry.jsm]:JS

  • IntermediatePreloadingHealer
    ​​

  • setInterval() for init/this.intervalId<[SystemTickFeed.jsm]:JS
    ​​

  • setInterval() for init/_intervalId<[MomentsPageHub.jsm]:JS
    ​​

  • setTimeout() for _rescheduleTimeout/this._schedulerTimer<[TelemetryScheduler.jsm]:JS

The visible bumps in the memory tracks seem to match in the marker chart with the markers for setInterval() for init/this.intervalId<[SystemTickFeed.jsm]:JS (https://share.firefox.dev/2Z7scco)

Also, when looking at the memory tracks, it looks like the memory use increases every 5 minutes.

This needs to be split to several bugs. I guess this is more like a meta bug.

Severity: -- → S3
Priority: -- → P3
Summary: Firefox has bursts of activity every 5 minutes → [Meta] Firefox has bursts of activity every 5 minutes

The meta keyword is there, the bug doesn't depend on other bugs and there is no activity for 12 months.
:fdoty, maybe it's time to close this bug?

Flags: needinfo?(fdoty)

:florian has stated he will file more specific bugs about getting this issue fixed. It has been recorded to still be happening

Flags: needinfo?(fdoty) → needinfo?(florian)

(In reply to Florian Quèze [:florian] from comment #0)

Bug 1735408 makes the markers on the Timer tracks very noisy, but using the console, I could get the list of timers that run with a 300,000ms delay

Bug 1817034 made the timer markers dramatically easier to understand.

  • StorageActivityService

Bug 1819135.

  • IdleRunnableWrapper::SetTimer
    ​​
  • setTimeout() for _getTimeoutPromise/timeoutPromise</<[Sqlite.jsm]:JS

I don't remember what these two were, but I'm not seeing them in current profiles. The IdleRunnableWrapper::SetTimer one could be bug 1818881.

  • DataStorageTimer

Bug 1817305.
​​

  • setInterval() for init/this._recordContentProcessCountInterval<[BrowserUsageTelemetry.jsm]:JS

Bug 1772429.

  • IntermediatePreloadingHealer

Bug 1825720.

  • setInterval() for init/this.intervalId<[SystemTickFeed.jsm]:JS

Bug 1821490. Afaik, this was the one causing the most activity.

  • setInterval() for init/_intervalId<[MomentsPageHub.jsm]:JS

To be filed.

  • setTimeout() for _rescheduleTimeout/this._schedulerTimer<[TelemetryScheduler.jsm]:JS

The timer only fires every 5 minutes while the user is active, and switches to every hour when the user is idle. See bug 1825600.

Flags: needinfo?(florian)
You need to log in before you can comment on or make changes to this bug.