commit | 188572170e8cdf28df55a5ca90ed70d14b72b804 | [log] [tgz] |
---|---|---|
author | Dave Borowitz <dborowitz@google.com> | Tue Oct 23 17:02:59 2012 -0700 |
committer | Dave Borowitz <dborowitz@google.com> | Thu Oct 25 08:12:48 2012 -0700 |
tree | d64ad4724552898c9c49ba19f715c74c5caa504c | |
parent | 091f893625269fd12adadf7d1f60c21b4b83e779 [diff] |
sync: Run gc --auto in parallel We can't just let this run wild with a high (or even low) -j, since that would hose a system. Instead, limit the total number of threads across all git gc subprocesses to the number of CPUs reported by the multiprocessing module (available in Python 2.6 and above). Change-Id: Icca0161a1e6116ffa5f7cfc6f5faecda510a7fb9