RESOLVED FIXED 196849
WebThread should run at a higher priority than user initiated
https://bugs.webkit.org/show_bug.cgi?id=196849
Summary WebThread should run at a higher priority than user initiated
Ryosuke Niwa
Reported 2019-04-11 21:02:34 PDT
WebThread should run at a higher priority than user initiated
Attachments
Fixes the bug (1.84 KB, patch)
2019-04-11 21:05 PDT, Ryosuke Niwa
no flags
Fixes the bug (1.85 KB, patch)
2019-04-11 21:06 PDT, Ryosuke Niwa
ggaren: review+
Ryosuke Niwa
Comment 1 2019-04-11 21:03:01 PDT
Ryosuke Niwa
Comment 2 2019-04-11 21:05:28 PDT
Created attachment 367282 [details] Fixes the bug
Ryosuke Niwa
Comment 3 2019-04-11 21:05:30 PDT
Ryosuke Niwa
Comment 4 2019-04-11 21:06:09 PDT
Created attachment 367283 [details] Fixes the bug
Geoffrey Garen
Comment 5 2019-04-11 22:20:50 PDT
Can you include a description of the workload you used to qualify this change, and the improvement you saw?
Geoffrey Garen
Comment 6 2019-04-11 22:21:44 PDT
Comment on attachment 367283 [details] Fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=367283&action=review r=me > Source/WebCore/platform/ios/wak/WebCoreThread.mm:670 > - pthread_attr_setstacksize(&tattr, 200 * 4096); > + pthread_attr_setstacksize(&tattr, 800 * KB); I'm pretty sure this change is harmless -- but it doesn't really seem related to this bug.
Ryosuke Niwa
Comment 7 2019-04-11 23:36:04 PDT
(In reply to Geoffrey Garen from comment #6) > Comment on attachment 367283 [details] > Fixes the bug > > View in context: > https://bugs.webkit.org/attachment.cgi?id=367283&action=review > > r=me > > > Source/WebCore/platform/ios/wak/WebCoreThread.mm:670 > > - pthread_attr_setstacksize(&tattr, 200 * 4096); > > + pthread_attr_setstacksize(&tattr, 800 * KB); > > I'm pretty sure this change is harmless -- but it doesn't really seem > related to this bug. Oh ya, I forgot to mention in the change log. I'm just replaying 200 * 4096 by 200 * 4 * 1024 -> 800 * 1024 -> 800 KB. I think the code comes from when page size was 4KB in iOS.
Ryosuke Niwa
Comment 8 2019-04-12 13:37:11 PDT
(In reply to Geoffrey Garen from comment #5) > Can you include a description of the workload you used to qualify this > change, and the improvement you saw? Added: "This improves the blocked time in StartWebThread from 2~3ms to 250μs while cold launching iBooks to an opened book."
Ryosuke Niwa
Comment 9 2019-04-12 13:37:40 PDT
Note You need to log in before you can comment on or make changes to this bug.