⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 249102 in webkit


Ignore:
Timestamp:
Aug 26, 2019, 10:21:28 AM (7 years ago)
Author:
Jonathan Bedard
Message:

run-webkit-tests: Cap the number of automatically booted simulators at 12
https://bugs.webkit.org/show_bug.cgi?id=201139

Reviewed by Aakash Jain.

To make local development with simulators more pleasant, machines should
never automatically boot more than 12 simulators.

  • Scripts/webkitpy/xcode/simulated_device.py:

(SimulatedDeviceManager.max_supported_simulators):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r249100 r249102  
     12019-08-26  Jonathan Bedard  <jbedard@apple.com>
     2
     3        run-webkit-tests: Cap the number of automatically booted simulators at 12
     4        https://bugs.webkit.org/show_bug.cgi?id=201139
     5
     6        Reviewed by Aakash Jain.
     7
     8        To make local development with simulators more pleasant, machines should
     9        never automatically boot more than 12 simulators.
     10
     11        * Scripts/webkitpy/xcode/simulated_device.py:
     12        (SimulatedDeviceManager.max_supported_simulators):
     13
    1142019-08-26  Aakash Jain  <aakash_jain@apple.com>
    215
  • trunk/Tools/Scripts/webkitpy/xcode/simulated_device.py

    r248451 r249102  
    6868    PROCESS_COUNT_ESTIMATE_PER_SIMULATOR_INSTANCE = 125
    6969
     70    # Testing on iMac Pros has indicated that more than 12 simulators, even if we seem to have enough resources for them,
     71    # results in diminishing returns.
     72    MAX_NUMBER_OF_SIMULATORS = 12
     73
    7074    xcrun = '/usr/bin/xcrun'
    7175    simulator_device_path = '~/Library/Developer/CoreSimulator/Devices'
     
    418422            return 0
    419423
    420         max_supported_simulators_for_hardware = min(host.executive.cpu_count() / 2, host.platform.total_bytes_memory() // SimulatedDeviceManager.MEMORY_ESTIMATE_PER_SIMULATOR_INSTANCE)
     424        max_supported_simulators_for_hardware = min(
     425            host.executive.cpu_count() // 2,
     426            host.platform.total_bytes_memory() // SimulatedDeviceManager.MEMORY_ESTIMATE_PER_SIMULATOR_INSTANCE,
     427            SimulatedDeviceManager.MAX_NUMBER_OF_SIMULATORS,
     428        )
    421429        max_supported_simulators_locally = (system_process_count_limit - current_process_count) // SimulatedDeviceManager.PROCESS_COUNT_ESTIMATE_PER_SIMULATOR_INSTANCE
    422430
Note: See TracChangeset for help on using the changeset viewer.