Closed Bug 1199416 Opened 11 years ago Closed 8 years ago

Don't run non-major forgetSkippable so likely, and run them using runnables, not timers

Categories

(Core :: DOM: Core & HTML, defect)

36 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: smaug, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

We could possibly increase the magical 100 suspected limit to 1000. 100 comes from https://bugzilla.mozilla.org/show_bug.cgi?id=721543
Ended up hacking something else too, just trying out to reduce timer wake ups. So, use already active event loop for non-major forgetSkippables. Those aren't as critical, so exact timing or number of them isn't that critical.
The patch is a
Summary: Don't run non-major forgetSkippable so likely → Don't run non-major forgetSkippable so likely, and run them using runnables, not timers
oops. Don't know what I was about to write. Anyhow, the patch does seem to turn most of CC wake ups to use already active event loop. But I'm not sure how to measure whether this affects to the power consumption. njn, want to try with your tools?
Flags: needinfo?(n.nethercote)
mccr8 hinted about rapl. I'll try that tomorrow.
> mccr8 hinted about rapl. I'll try that tomorrow. You should, it's easy and will save you having to ask me all the time. Nonetheless, I tried the patch, and power consumption was unchanged AFAICT.
Flags: needinfo?(n.nethercote)
> Nonetheless, I tried the patch, and power consumption was unchanged AFAICT. But the number of CCTimerFired events drops from 309 to 35 when I start the browser on BuzzFeed and let it sit for 60 seconds. So that's good.
Yeah, I tried rapl and couldn't see really any difference to power consumption, but on my machine the results are really noisy.
Forget skippable scheduling is all different these days, using mostly idle time.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: