|
|
Chromium Code Reviews
Descriptionbuild: Tweak linker memory usage for android static build
Manually measured using top that linker can use ~25G of memory linking
unit_tests_apk.
BUG=617429
Committed: https://crrev.com/3fbd5a693a788cf963ac8d009ef120239f56e9c2
Cr-Commit-Position: refs/heads/master@{#415072}
Patch Set 1 #
Total comments: 2
Patch Set 2 : symbol_level==2 #Patch Set 3 : import #Messages
Total messages: 30 (13 generated)
boliu@chromium.org changed reviewers: + dpranke@chromium.org
ptal finally the original change for android
https://codereview.chromium.org/2282943002/diff/1/build/toolchain/concurrent_... File build/toolchain/concurrent_links.gni (right): https://codereview.chromium.org/2282943002/diff/1/build/toolchain/concurrent_... build/toolchain/concurrent_links.gni:32: _args = [ "--mem_per_link_gb=25" ] is this number correct for both debug and release? it's a big change, so if we want to land this as-is you need to make sure we make sure cycle time goes down, not up :).
https://codereview.chromium.org/2282943002/diff/1/build/toolchain/concurrent_... File build/toolchain/concurrent_links.gni (right): https://codereview.chromium.org/2282943002/diff/1/build/toolchain/concurrent_... build/toolchain/concurrent_links.gni:32: _args = [ "--mem_per_link_gb=25" ] On 2016/08/26 17:50:45, Dirk Pranke wrote: > is this number correct for both debug and release? it's a big change, so if we > want to land this as-is you need to make sure we make sure cycle time goes down, > not up :). this was measured when I copied the config from the official release bots, so definitely not debug. I thought debug+static build isn't a thing anymore though? I'm guessing the next config that matters most is symbol_level, and 25G is measured at symbol_level=2. I could measure 1 and 0 if you want?
Description was changed from ========== build: Tweak linker memory usage for android static build Manually measured using top that linker can use ~25G of memory linking unit_tests_apk. BUG=617429 ========== to ========== build: Tweak linker memory usage for android static build Manually measured using top that linker can use ~25G of memory linking unit_tests_apk. BUG=617429 ==========
debug static is definitely still a thing, particularly on android. We should definitely check the impact on both debug and release builds as well as official, since this likely cuts the number of parallel links in half or two thirds.
On 2016/08/26 18:01:12, Dirk Pranke wrote: > debug static is definitely still a thing, particularly on android. > > We should definitely check the impact on both debug and release builds as well > as official, since this likely cuts the number of parallel links in half or two > thirds. Re-did testing on static builds, using the resident set column from top official: 0.025t release: 0.025t debug: 0.026t So roughly the same across the board.
On 2016/08/27 00:19:53, boliu wrote: > On 2016/08/26 18:01:12, Dirk Pranke wrote: > > debug static is definitely still a thing, particularly on android. > > > > We should definitely check the impact on both debug and release builds as well > > as official, since this likely cuts the number of parallel links in half or > two > > thirds. > > Re-did testing on static builds, using the resident set column from top > official: 0.025t > release: 0.025t > debug: 0.026t > > So roughly the same across the board. Oh, that was linking for unit_tests_apk, one of the largest targets.
On 2016/08/27 00:27:35, boliu wrote: > On 2016/08/27 00:19:53, boliu wrote: > > On 2016/08/26 18:01:12, Dirk Pranke wrote: > > > debug static is definitely still a thing, particularly on android. > > > > > > We should definitely check the impact on both debug and release builds as > well > > > as official, since this likely cuts the number of parallel links in half or > > two > > > thirds. > > > > Re-did testing on static builds, using the resident set column from top > > official: 0.025t > > release: 0.025t > > debug: 0.026t > > > > So roughly the same across the board. > > Oh, that was linking for unit_tests_apk, one of the largest targets. Tried debug+static+symbol_level=1 only uses 5.8G, so I'm limiting this to symbol_level==2
ok, lgtm.
The CQ bit was checked by boliu@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Exceeded global retry quota
The CQ bit was checked by boliu@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Dirk can you look again? I added import for symbol_level, which apparently is not included from the analyze step. I'm not sure if the import is preferred over checking if symbol_level is defined?
lgtm. import() is definitely correct. defined() wouldn't even really do the right thing (I'm not sure if it would ever return true w/o the import; I think it used to if you set symbol_level explicitly in args.gn, but I thought we changed that because it was a source of bugs like this).
The CQ bit was unchecked by boliu@chromium.org
The CQ bit was checked by boliu@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by dsansome@chromium.org
dsansome@chromium.org changed reviewers: + dsansome@chromium.org
(I unset the commit bit on this change to try fix a stuck CQ - https://bugs.chromium.org/p/chromium/issues/detail?id=642077. The issue is fixed now so I'm sending this to CQ again for you)
The CQ bit was checked by dsansome@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== build: Tweak linker memory usage for android static build Manually measured using top that linker can use ~25G of memory linking unit_tests_apk. BUG=617429 ========== to ========== build: Tweak linker memory usage for android static build Manually measured using top that linker can use ~25G of memory linking unit_tests_apk. BUG=617429 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== build: Tweak linker memory usage for android static build Manually measured using top that linker can use ~25G of memory linking unit_tests_apk. BUG=617429 ========== to ========== build: Tweak linker memory usage for android static build Manually measured using top that linker can use ~25G of memory linking unit_tests_apk. BUG=617429 Committed: https://crrev.com/3fbd5a693a788cf963ac8d009ef120239f56e9c2 Cr-Commit-Position: refs/heads/master@{#415072} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/3fbd5a693a788cf963ac8d009ef120239f56e9c2 Cr-Commit-Position: refs/heads/master@{#415072} |
