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

Issue 23242012: Linux (and Android): Implement GetDefaultConcurrentLinks() for Linux Builds (Closed)

Created:
7 years, 4 months ago by Anton
Modified:
7 years, 3 months ago
Reviewers:
iannucci, anton1, scottmg, Nico
CC:
gyp-developer_googlegroups.com, darin (slow to review)
Base URL:
https://chromium.googlesource.com/external/gyp.git@master
Visibility:
Public.

Description

Implement GetDefaultConcurrentLinks() for Linux Builds. This method is used to determine the size of the Ninja pool which is used for links during the build. It is currently size 1 for Linux, because this method is not implemented. After this patch it will be <total_memory> / 8Gb. BUG= R=scottmg@chromium.org Committed: https://code.google.com/p/gyp/source/detail?r=1701

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixes per scottmg's suggestion #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -0 lines) Patch
M pylib/gyp/generator/ninja.py View 1 1 chunk +10 lines, -0 lines 1 comment Download

Messages

Total messages: 9 (0 generated)
anton1
Add Darin as there doesn't seem to be OWNERS in this repo.
7 years, 4 months ago (2013-08-21 15:28:13 UTC) #1
scottmg
(darin to CC, there's separate committers for gyp) https://codereview.chromium.org/23242012/diff/1/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://codereview.chromium.org/23242012/diff/1/pylib/gyp/generator/ninja.py#newcode1487 pylib/gyp/generator/ninja.py:1487: meminfo ...
7 years, 4 months ago (2013-08-21 15:44:58 UTC) #2
anton1
On 2013/08/21 15:44:58, scottmg wrote: > (darin to CC, there's separate committers for gyp) > ...
7 years, 4 months ago (2013-08-21 16:05:41 UTC) #3
anton1
Please advise as to the correct approach for dealing with the Trybots and CQ. https://codereview.chromium.org/23242012/diff/1/pylib/gyp/generator/ninja.py ...
7 years, 4 months ago (2013-08-21 16:06:58 UTC) #4
scottmg
lgtm There's no CQ, I can land it for you. +iannucci fyi as this will ...
7 years, 4 months ago (2013-08-21 16:19:53 UTC) #5
anton1
On 2013/08/21 16:19:53, scottmg wrote: > lgtm > > There's no CQ, I can land ...
7 years, 4 months ago (2013-08-21 16:21:29 UTC) #6
scottmg
Committed patchset #2 manually as r1701.
7 years, 4 months ago (2013-08-21 17:06:59 UTC) #7
Nico
drive-by nit https://codereview.chromium.org/23242012/diff/11001/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://codereview.chromium.org/23242012/diff/11001/pylib/gyp/generator/ninja.py#newcode1494 pylib/gyp/generator/ninja.py:1494: return max(1, int(match.group(1)) / (8 * (2 ...
7 years, 3 months ago (2013-08-27 22:01:04 UTC) #8
anton1
7 years, 3 months ago (2013-08-28 09:31:52 UTC) #9
Message was sent while issue was closed.
On 2013/08/27 22:01:04, Nico wrote:
> drive-by nit
> 
>
https://codereview.chromium.org/23242012/diff/11001/pylib/gyp/generator/ninja.py
> File pylib/gyp/generator/ninja.py (right):
> 
>
https://codereview.chromium.org/23242012/diff/11001/pylib/gyp/generator/ninja...
> pylib/gyp/generator/ninja.py:1494: return max(1, int(match.group(1)) / (8 * (2
> ** 20)))
> Isn't 2**20 a megabyte, not a gigabyte?
> 
> ...ah, /proc/meminfo stores kB, not bytes. This isn't super clear, maybe
> 
>   available_memory_bytes = int(match.group(1)) * 1024
>   return max(1, available_memory_bytes / (8 * (2 ** 30)))
> 
> would be a bit clearer?

I removed my comment, which said it was Kb, at Scott's suggestion. As this has
already landed, feel free to make a change yourself.

Powered by Google App Engine
This is Rietveld 408576698