Changeset 252437 in webkit


Ignore:
Timestamp:
Nov 13, 2019 4:17:42 PM (4 years ago)
Author:
clopez@igalia.com
Message:

test262-runner: use NUMBER_OF_PROCESSORS and stop multiplying the number of cores.
https://bugs.webkit.org/show_bug.cgi?id=204154

Reviewed by Ross Kirsling.

We have enabled running test262 on GTK and WPE test bots on r252362
But it seems this test262 runner is not respecting the environment
variable NUMBER_OF_PROCESSORS. We set that on the bot environments
to tell each worker how much parallelism it should use.

Instead this runner was using all the system cores (which on some
cases is 256) and that was causing issues on other containers/workloads
running on the same system at the same time.

This environment variable is understood by all webkit-related test scripts.
It should be accepted also by this test262 runner script.

On top of that, this patch removes the multiplication that is done
when the number of parallel jobs is not specified and its calculated
from the available cores of the system. On one hand there is no
written motivation for this multiplication behaviour, and on the other
hand there is evidence that it doesn't improve performance.

  • Scripts/test262/Runner.pm:

(getProcesses):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r252435 r252437  
     12019-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
    1292019-11-13  Myles C. Maxfield  <mmaxfield@apple.com>
    230
  • trunk/Tools/Scripts/test262/Runner.pm

    r251588 r252437  
    554554
    555555sub getProcesses {
     556    return $ENV{NUMBER_OF_PROCESSORS} if (defined($ENV{NUMBER_OF_PROCESSORS}));
     557
    556558    my $cores;
    557559    my $uname = qx(which uname >> /dev/null && uname);
     
    574576    }
    575577
    576     if ($cores <= 8) {
    577         return $cores * 4;
    578     }
    579     else {
    580         return $cores * 2;
    581     }
     578    return $cores;
    582579}
    583580
Note: See TracChangeset for help on using the changeset viewer.