Title: [197891] trunk/Tools
- Revision
- 197891
- Author
- aakash_j...@apple.com
- Date
- 2016-03-09 15:07:49 -0800 (Wed, 09 Mar 2016)
Log Message
use ulimit command to check process limit in webkitpy
https://bugs.webkit.org/show_bug.cgi?id=155260
Reviewed by Alexey Proskuryakov.
* Scripts/webkitpy/port/ios.py:
(IOSSimulatorPort.default_child_processes): Use ulimit command output instead of
launchctl limit maxproc command.
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (197890 => 197891)
--- trunk/Tools/ChangeLog 2016-03-09 23:02:57 UTC (rev 197890)
+++ trunk/Tools/ChangeLog 2016-03-09 23:07:49 UTC (rev 197891)
@@ -1,3 +1,14 @@
+2016-03-09 Aakash Jain <aakash_j...@apple.com>
+
+ use ulimit command to check process limit in webkitpy
+ https://bugs.webkit.org/show_bug.cgi?id=155260
+
+ Reviewed by Alexey Proskuryakov.
+
+ * Scripts/webkitpy/port/ios.py:
+ (IOSSimulatorPort.default_child_processes): Use ulimit command output instead of
+ launchctl limit maxproc command.
+
2016-03-09 Alexey Proskuryakov <a...@apple.com>
Stop building armv7 on iOS device builders
Modified: trunk/Tools/Scripts/webkitpy/port/ios.py (197890 => 197891)
--- trunk/Tools/Scripts/webkitpy/port/ios.py 2016-03-09 23:02:57 UTC (rev 197890)
+++ trunk/Tools/Scripts/webkitpy/port/ios.py 2016-03-09 23:07:49 UTC (rev 197891)
@@ -136,7 +136,7 @@
def default_child_processes(self):
"""Return the number of Simulators instances to use for this port."""
best_child_process_count_for_cpu = self._executive.cpu_count() / 2
- system_process_count_limit = int(subprocess.check_output(["launchctl", "limit", "maxproc"]).strip().split()[1])
+ system_process_count_limit = int(subprocess.check_output(["ulimit", "-u"]).strip())
current_process_count = len(subprocess.check_output(["ps", "aux"]).strip().split('\n'))
_log.info('Process limit: %d, current #processes: %d' % (system_process_count_limit, current_process_count))
maximum_simulator_count_on_this_system = (system_process_count_limit - current_process_count) // self.PROCESS_COUNT_ESTIMATE_PER_SIMULATOR_INSTANCE
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes