Bug 161696 - REGRESSION: Some XMLHttpRequest tests have become much slower, and frequently time out (http/tests/xmlhttprequest/methods-async.html, http/tests/xmlhttprequest/workers/methods.html)
Summary: REGRESSION: Some XMLHttpRequest tests have become much slower, and frequently...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-09-07 09:51 PDT by Alexey Proskuryakov
Modified: 2016-09-26 10:06 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2016-09-07 09:51:12 PDT
Some time around August 20, a few tests became much slower - usually taking around 30 seconds, and thus often timing out.

E.g.:

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=http%2Ftests%2Fxmlhttprequest%2Fworkers%2Fmethods.html
https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=http/tests/xmlhttprequest/methods-async.html

You can see that before August 20th or so, the tests were taking under a second, or a few seconds at most, then gradually grew, and now always take very substantial time.
Comment 1 Alexey Proskuryakov 2016-09-07 09:54:15 PDT
There are a couple reasons for such behavior that I can think of:

1. Disk caching going crazy, and storing way too many files to be performant (we've seen that with media loads before).

2. Us gradually adding more and more unrelated tests that globally slow down the system in some way, perhaps leaking VM entries or confusing JSC garbage collection code.
Comment 2 Alexey Proskuryakov 2016-09-07 09:55:06 PDT
The regression is only observed with WebKit2 at this time.
Comment 3 Alexey Proskuryakov 2016-09-07 09:58:28 PDT
I guess #1 is unlikely, as this is happening on both iOS and macOS, and we are supposed to always start with a clean simulator on iOS.
Comment 4 Jonathan Bedard 2016-09-07 11:02:56 PDT
https://bugs.webkit.org/show_bug.cgi?id=161699 should enable spindump on timeout for only iOS 9 WK2 release simulators.  Just needs a review.
Comment 5 Radar WebKit Bug Importer 2016-09-08 19:44:53 PDT
<rdar://problem/28219123>
Comment 6 Alexey Proskuryakov 2016-09-15 13:18:51 PDT
Looks like rebooting clears this up.
Comment 7 Alexey Proskuryakov 2016-09-26 10:06:10 PDT
Tracked this down to an issue below WebKit, will continue tracking in Radar.

We'll need to reboot the bots periodically for now.