RESOLVED FIXED 201139
run-webkit-tests: Cap the number of automatically booted simulators at 12
https://bugs.webkit.org/show_bug.cgi?id=201139
Summary run-webkit-tests: Cap the number of automatically booted simulators at 12
Jonathan Bedard
Reported 2019-08-26 07:50:58 PDT
It seems that with a larger number of cores and memory, simulators start to be bound by some other system resource. In particular, contributors with iMac Pros and 128 GB of RAM will boot between 16 and 20 simulators, and begin to see diminishing returns on how fast simulator tests are run. By default, we should cap the number of simulators we automatically boot at 12. Note that this change will not have an effect on the number of simulators booted unless a machine is automatically booting more than 12 simulators.
Attachments
Patch (1.92 KB, patch)
2019-08-26 07:58 PDT, Jonathan Bedard
no flags
Patch (2.44 KB, patch)
2019-08-26 08:27 PDT, Jonathan Bedard
no flags
Jonathan Bedard
Comment 1 2019-08-26 07:58:26 PDT
Jonathan Bedard
Comment 2 2019-08-26 08:05:14 PDT
In particular, some testing a year or two back indicated that RAM was usually the bottleneck when booting simulators, and 128 GB of RAM could boot up to 21 simulators...if you have that much RAM, CPU will usually be considered the bottleneck, which would leave you with 18, in most cases. Getting some feedback from different folks, it seems like this is rarely desired.
Aakash Jain
Comment 3 2019-08-26 08:07:42 PDT
Comment on attachment 377245 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=377245&action=review > Tools/Scripts/webkitpy/xcode/simulated_device.py:422 > + max_supported_simulators_for_hardware = min(host.executive.cpu_count() // 2, host.platform.total_bytes_memory() // SimulatedDeviceManager.MEMORY_ESTIMATE_PER_SIMULATOR_INSTANCE, 12) Please store 12 in a separate variable, something like MAX_NUMBER_OF_SIMULATORS.
Jonathan Bedard
Comment 4 2019-08-26 08:27:20 PDT
WebKit Commit Bot
Comment 5 2019-08-26 10:21:34 PDT
Comment on attachment 377246 [details] Patch Clearing flags on attachment: 377246 Committed r249102: <https://trac.webkit.org/changeset/249102>
WebKit Commit Bot
Comment 6 2019-08-26 10:21:36 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7 2019-08-26 10:22:18 PDT
Note You need to log in before you can comment on or make changes to this bug.