Changeset 252437 in webkit
- Timestamp:
- Nov 13, 2019 4:17:42 PM (4 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r252435 r252437 1 2019-11-13 Carlos Alberto Lopez Perez <clopez@igalia.com> 2 3 test262-runner: use NUMBER_OF_PROCESSORS and stop multiplying the number of cores. 4 https://bugs.webkit.org/show_bug.cgi?id=204154 5 6 Reviewed by Ross Kirsling. 7 8 We have enabled running test262 on GTK and WPE test bots on r252362 9 But it seems this test262 runner is not respecting the environment 10 variable NUMBER_OF_PROCESSORS. We set that on the bot environments 11 to tell each worker how much parallelism it should use. 12 13 Instead this runner was using all the system cores (which on some 14 cases is 256) and that was causing issues on other containers/workloads 15 running on the same system at the same time. 16 17 This environment variable is understood by all webkit-related test scripts. 18 It should be accepted also by this test262 runner script. 19 20 On top of that, this patch removes the multiplication that is done 21 when the number of parallel jobs is not specified and its calculated 22 from the available cores of the system. On one hand there is no 23 written motivation for this multiplication behaviour, and on the other 24 hand there is evidence that it doesn't improve performance. 25 26 * Scripts/test262/Runner.pm: 27 (getProcesses): 28 1 29 2019-11-13 Myles C. Maxfield <mmaxfield@apple.com> 2 30 -
trunk/Tools/Scripts/test262/Runner.pm
r251588 r252437 554 554 555 555 sub getProcesses { 556 return $ENV{NUMBER_OF_PROCESSORS} if (defined($ENV{NUMBER_OF_PROCESSORS})); 557 556 558 my $cores; 557 559 my $uname = qx(which uname >> /dev/null && uname); … … 574 576 } 575 577 576 if ($cores <= 8) { 577 return $cores * 4; 578 } 579 else { 580 return $cores * 2; 581 } 578 return $cores; 582 579 } 583 580
Note: See TracChangeset
for help on using the changeset viewer.