<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - run-webkit-tests consumes gigabytes of memory with --iterations 4294967300"
   href="https://bugs.webkit.org/show_bug.cgi?id=163470#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - run-webkit-tests consumes gigabytes of memory with --iterations 4294967300"
   href="https://bugs.webkit.org/show_bug.cgi?id=163470">bug 163470</a>
              from <span class="vcard"><a class="email" href="mailto:dean_johnson&#64;apple.com" title="Dean Johnson &lt;dean_johnson&#64;apple.com&gt;"> <span class="fn">Dean Johnson</span></a>
</span></b>
        <pre>I would suspect the major issue here being this function:

OpenSource/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py
...
class Manager(object):
...
    def _get_test_inputs(self, tests_to_run, repeat_each, iterations):
        test_inputs = []
        for _ in xrange(iterations):
            for test in tests_to_run:
                for _ in xrange(repeat_each):
                    test_inputs.append(self._test_input_for_file(test)) # This line
        return test_inputs

Since it figures out all test_inputs before the tests are actually ran, you'll see multiple gigabytes of data stored in memory with large iteration numbers.

Is this really an issue? When do we ever run millions of iterations? If we do need to do this for some reason, can we limit it to 1000000?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>