High web process CPU usage
Chris Aljoudi <chris <at> chrismatic.io>
2016-07-21 02:30:24 GMT
In the Safari shipped with the latest macOS Sierra beta, as well as Safari Tech Preview 9, there's an odd CPU usage issue with individual tab's web processes.
For example, if one navigates to huffingtonpost.com
, Activity Monitor will show the tab web process continually using 5-10% of CPU, along with hundreds of idle wake-ups. Even more concerning, this continues to happen with the huffingtonpost.com
web process even if one picks another tab in the window.
To investigate, I opened Web Inspector and recorded the JS/event timeline. I found that there were timers firing quite frequently.
Now, I know Safari/WebKit should be throttling timers of background tabs anyway, but I figured I'd `clearInterval` all the timers to see if that reduces the CPU usage. Nope (even though I verified no timers are firing any longer after clearing all the intervals — no activity on the timeline whatsoever; CPU usage and idle wake ups still way too high).
The previous Sierra beta's Safari and Tech Preview 8 both showed this problem. I don't know whether it goes further back.
Any ideas what's going on? Is this 'expected behavior' and I'm missing something obvious?
webkit-dev mailing list
webkit-dev <at> lists.webkit.org