Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Issue 11140019: Make gclient sync use cpu count for default jobs (Closed)

Created:
8 years, 2 months ago by Isaac (away)
Modified:
8 years, 2 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews, Dirk Pranke, cmp+cc_chromium.org
Visibility:
Public.

Description

Make gclient sync use cpu count for default jobs - On high core, fast machines, jobs=8 is does not offer good parallelization. Switch to use number of local cpus. R=maruel@chromium.org BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162072

Patch Set 1 #

Patch Set 2 : Use 8 as lower bound for num threads #

Total comments: 3

Patch Set 3 : pylint disable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -3 lines) Patch
M gclient.py View 1 1 chunk +2 lines, -2 lines 0 comments Download
M gclient_utils.py View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M tests/gclient_utils_test.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
Isaac (away)
8 years, 2 months ago (2012-10-15 03:43:20 UTC) #1
M-A Ruel
I don't think that in the general case, the number of cores gives a good ...
8 years, 2 months ago (2012-10-15 15:07:58 UTC) #2
Isaac (use chromium)
It definitely speeds things up for git; the basis of the change was that the ...
8 years, 2 months ago (2012-10-15 16:27:33 UTC) #3
M-A Ruel
On 2012/10/15 16:27:33, Isaac (use chromium acct) wrote: > It definitely speeds things up for ...
8 years, 2 months ago (2012-10-15 17:03:02 UTC) #4
Isaac (away)
Hi M.A.? It wasn't clear to me if you thought -j=max(8, NumCpus()) could actually be ...
8 years, 2 months ago (2012-10-16 01:12:33 UTC) #5
M-A Ruel
lgtm https://chromiumcodereview.appspot.com/11140019/diff/2002/gclient_utils.py File gclient_utils.py (right): https://chromiumcodereview.appspot.com/11140019/diff/2002/gclient_utils.py#newcode785 gclient_utils.py:785: return int(os.sysconf('SC_NPROCESSORS_ONLN')) You want to # pylint: disable=E1101 ...
8 years, 2 months ago (2012-10-16 01:20:18 UTC) #6
Isaac (away)
committing https://chromiumcodereview.appspot.com/11140019/diff/2002/gclient_utils.py File gclient_utils.py (right): https://chromiumcodereview.appspot.com/11140019/diff/2002/gclient_utils.py#newcode785 gclient_utils.py:785: return int(os.sysconf('SC_NPROCESSORS_ONLN')) On 2012/10/16 01:20:18, Marc-Antoine Ruel wrote: ...
8 years, 2 months ago (2012-10-16 04:23:32 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ilevy@chromium.org/11140019/3002
8 years, 2 months ago (2012-10-16 04:24:00 UTC) #8
commit-bot: I haz the power
Change committed as 162072
8 years, 2 months ago (2012-10-16 04:26:39 UTC) #9
M-A Ruel
8 years, 2 months ago (2012-10-16 11:18:21 UTC) #10
https://chromiumcodereview.appspot.com/11140019/diff/2002/gclient_utils.py
File gclient_utils.py (right):

https://chromiumcodereview.appspot.com/11140019/diff/2002/gclient_utils.py#ne...
gclient_utils.py:785: return int(os.sysconf('SC_NPROCESSORS_ONLN'))
On 2012/10/16 04:23:32, Isaac wrote:
> On 2012/10/16 01:20:18, Marc-Antoine Ruel wrote:
> > You want to # pylint: disable=E1101 here on Windows.
> 
> Done, but I cribbed this function from swarm_client/run_test_cases.py.  Does
> that also need this pylint disable?

I fixed it there a few hours ago. :) I rarely run the presubmit checks on
Windows, only ~once a month.

Powered by Google App Engine
This is Rietveld 408576698