WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
195952
REGRESSION (
r242911
?): High Sierra Release WK2 Perf bot timing out while running IndexedDB/large-number-of-inserts.html
https://bugs.webkit.org/show_bug.cgi?id=195952
Summary
REGRESSION (r242911?): High Sierra Release WK2 Perf bot timing out while runn...
Ryan Haddad
Reported
2019-03-19 10:02:28 PDT
The High Sierra Release WK2 Perf bot hitting a Buildbot step timeout of 20m without output while running IndexedDB/large-number-of-inserts.html
https://build.webkit.org/builders/Apple%20High%20Sierra%20Release%20WK2%20%28Perf%29/builds/612/steps/perf-test/logs/stdio
Based on the history of the queue, it looks like the last successful run was with
r242891
and the first failing was r 242912
Attachments
Patch
(1.30 KB, patch)
2019-03-20 11:56 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews105 for mac-highsierra-wk2
(2.97 MB, application/zip)
2019-03-20 15:42 PDT
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews124 for ios-simulator-wk2
(2.60 MB, application/zip)
2019-03-20 16:34 PDT
,
EWS Watchlist
no flags
Details
Patch
(1.43 KB, patch)
2020-01-06 17:18 PST
,
Sihui Liu
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Ryan Haddad
Comment 1
2019-03-19 10:03:16 PDT
"Check IDB quota usage through QuotaManager" seems like a potential culprit:
https://trac.webkit.org/changeset/242911/webkit
youenn fablet
Comment 2
2019-03-19 10:07:03 PDT
Will look at it tonight
youenn fablet
Comment 3
2019-03-20 10:48:02 PDT
So, a test that is doing about the same thing (PerformanceTests/IndexedDB/large-number-of-inserts-responsiveness.html) is taking twice the time between run 610 and 612. The median test run remains of the same order though. It might be that cache quota is hit. This triggers some IPC to the UIProcess which triggers some additional overhead. We might be able to fix that by increasing the default quota for these tests.
youenn fablet
Comment 4
2019-03-20 10:48:35 PDT
Additionally, we could also increase the build bot timeout above 20 minutes for perf tests and/or decrease the test iteration from 20 down to 10.
youenn fablet
Comment 5
2019-03-20 11:56:37 PDT
Created
attachment 365376
[details]
Patch
EWS Watchlist
Comment 6
2019-03-20 15:42:35 PDT
Comment on
attachment 365376
[details]
Patch
Attachment 365376
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
https://webkit-queues.webkit.org/results/11585671
New failing tests: http/wpt/mediarecorder/MediaRecorder-AV-audio-video-dataavailable.html
EWS Watchlist
Comment 7
2019-03-20 15:42:37 PDT
Created
attachment 365417
[details]
Archive of layout-test-results from ews105 for mac-highsierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-highsierra-wk2 Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 8
2019-03-20 16:34:43 PDT
Comment on
attachment 365376
[details]
Patch
Attachment 365376
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
https://webkit-queues.webkit.org/results/11586009
New failing tests: fast/visual-viewport/ios/min-scale-greater-than-one.html
EWS Watchlist
Comment 9
2019-03-20 16:34:44 PDT
Created
attachment 365432
[details]
Archive of layout-test-results from ews124 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews124 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
youenn fablet
Comment 10
2019-03-20 16:36:02 PDT
Comment on
attachment 365376
[details]
Patch Both errors unrelated
Brady Eidson
Comment 11
2019-03-20 16:46:34 PDT
Comment on
attachment 365376
[details]
Patch 242911 slowed down IDB enough to make this test timeout, and our solution is to reduce the magnitude of the test?
youenn fablet
Comment 12
2019-03-20 16:51:37 PDT
(In reply to Brady Eidson from
comment #11
)
> Comment on
attachment 365376
[details]
> Patch > > 242911 slowed down IDB enough to make this test timeout, and our solution is > to reduce the magnitude of the test?
The first step is to make the test run again instead of timing out, hence reducing the magnitude of the test. This patch is only doing this. The second step is to add an API to increase the default quota to a bigger value so that we do not hit the quota-check IPC cost from NetworkProcess to UIProcess. My guess is that this eats time for the first test.
Ryosuke Niwa
Comment 13
2019-03-20 19:19:55 PDT
I feel like the latest time Sihui fixed this test, the issue was that our IDB limit was too small? Do you recall that, Sihui?
youenn fablet
Comment 14
2019-03-20 19:53:32 PDT
(In reply to Ryosuke Niwa from
comment #13
)
> I feel like the latest time Sihui fixed this test, the issue was that our > IDB limit was too small? Do you recall that, Sihui?
I think that something similar to setIDBPerOriginQuota with a big enough value should do the trick. Step 2 is probably just renaming setIDBPerOriginQuota to setPerOriginQuota, piping the provided value to StorageQuotaManager(s) and updating that perf test to set the quota accordingly.
Radar WebKit Bug Importer
Comment 15
2019-03-21 20:39:36 PDT
<
rdar://problem/49137688
>
Sihui Liu
Comment 16
2019-03-22 10:20:09 PDT
(In reply to youenn fablet from
comment #14
)
> (In reply to Ryosuke Niwa from
comment #13
) > > I feel like the latest time Sihui fixed this test, the issue was that our > > IDB limit was too small? Do you recall that, Sihui? > > I think that something similar to setIDBPerOriginQuota with a big enough > value should do the trick. Step 2 is probably just renaming > setIDBPerOriginQuota to setPerOriginQuota, piping the provided value to > StorageQuotaManager(s) and updating that perf test to set the quota > accordingly.
At that time we had a lower default IDB quota for layout tests. Default quota for single layout test is 50MB and for non-test is 500MB. So increasing the quota for some tests still showed us what to expect when opening test page in browser. If we were about to change the default quota for some test now with presence of StorageQuotaManager, it seems we are ignoring the performance issue? Could we still wait for UI process to respond and return a high quota in the first response?
Ryan Haddad
Comment 17
2019-03-29 08:49:55 PDT
I skipped the test in
https://trac.webkit.org/changeset/243604/webkit
so that the bot would finish its test runs.
youenn fablet
Comment 18
2020-01-06 02:36:10 PST
Sihui, given the improvements you made, do you think we can reenable the test?
Sihui Liu
Comment 19
2020-01-06 17:18:26 PST
Created
attachment 386918
[details]
Patch
WebKit Commit Bot
Comment 20
2020-01-08 17:32:44 PST
Comment on
attachment 386918
[details]
Patch Clearing flags on attachment: 386918 Committed
r254240
: <
https://trac.webkit.org/changeset/254240
>
WebKit Commit Bot
Comment 21
2020-01-08 17:32:46 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug