This makes builds much faster if you have a multi-core machine.
Add instructions for parallel gitian builds. #10968
pull coblee wants to merge 1 commits into bitcoin:master from litecoin-project:coblee_multi_core changing 3 files +8 −4-
coblee commented at 6:31 AM on August 1, 2017: contributor
-
laanwj commented at 9:11 AM on August 1, 2017: member
utACK https://github.com/bitcoin/bitcoin/pull/10968/commits/36928b069561501c9d239830ed59d27dd9814325
(that's awful, it only picks a single-core VM by default?)
- laanwj added the label Docs and Output on Aug 1, 2017
-
coblee commented at 9:15 AM on August 1, 2017: contributor
Yes by default, it's only a single-core VM. And gbuild defaults to "-j 2". Now builds are 4 times faster on my machine.
-
in doc/release-process.md:114 in 36928b0695 outdated
110 | @@ -111,16 +111,16 @@ The gbuild invocations below <b>DO NOT DO THIS</b> by default. 111 | ### Build and sign Bitcoin Core for Linux, Windows, and OS X: 112 | 113 | pushd ./gitian-builder 114 | - ./bin/gbuild --memory 3000 --commit bitcoin=v${VERSION} ../bitcoin/contrib/gitian-descriptors/gitian-linux.yml 115 | + ./bin/gbuild --num-make `nproc` --memory 3000 --commit bitcoin=v${VERSION} ../bitcoin/contrib/gitian-descriptors/gitian-linux.yml
laanwj commented at 7:05 AM on August 2, 2017:This is a bit dangerous - in many cases, number of concurrent C++ compiles is limited by memory, not number of cores
PRabahy commented at 3:05 AM on August 3, 2017:https://github.com/bitcoin/bitcoin/blob/master/contrib/gitian-build.sh appears to use -j instead of --num-make. Is there a difference?
laanwj commented at 6:18 AM on August 3, 2017:You could just provide the default of
--num-make 2here, which works with--memory 3000Doubling one of the numbers means you have to double the other one too, at least for KVM, for LXC the memory limit is ignored which is why you didn't notice anything.coblee force-pushed on Aug 3, 2017jonasschnelli commented at 9:47 AM on August 3, 2017: contributorutACK 393e77637c65f73c65de8462454d2582a5e359a7
fanquake commented at 8:14 AM on August 9, 2017: memberutACK 393e776
MarcoFalke commented at 10:59 AM on August 9, 2017: memberutACK 393e776, but I am not entirely happy about the binary files in our source code repo. At least it seems pngcrush can reduce the size by 30k... Would you mind fixing that up? (c.f. 7a482e4ac)
coblee force-pushed on Aug 13, 2017coblee commented at 9:59 AM on August 13, 2017: contributorDone and pngcrush'd 2 other images.
Add instructions for multi-processor gitian builds e93ff718c5MarcoFalke force-pushed on Aug 13, 2017MarcoFalke commented at 10:32 AM on August 13, 2017: memberLooks like my compression was slightly more efficient. (I used
contrib/devtools/optimize-pngs.py)Also, rewriting existing files in the git repo will keep the old versions around. Probably not worth trying to reduce the size...
I reverted the change to the existing files and force pushed the commit to the litecoin repo. I hope this is ok.
MarcoFalke added this to the milestone 0.15.0 on Aug 13, 2017coblee commented at 5:48 PM on August 13, 2017: contributorSure, np
fanquake commented at 12:34 AM on August 14, 2017: memberACK e93ff71
laanwj merged this on Aug 14, 2017laanwj closed this on Aug 14, 2017laanwj referenced this in commit 98aa3f6d5c on Aug 14, 2017thrasher- referenced this in commit d991b65bba on Aug 17, 2017thrasher- referenced this in commit 27287cd946 on Aug 17, 2017thrasher- deleted the branch on Aug 17, 2017PastaPastaPasta referenced this in commit d0d2d3fb9c on Aug 6, 2019PastaPastaPasta referenced this in commit 4b67772174 on Aug 6, 2019PastaPastaPasta referenced this in commit 4329905876 on Aug 6, 2019PastaPastaPasta referenced this in commit fb2774d7d2 on Aug 7, 2019PastaPastaPasta referenced this in commit c3446d68a1 on Aug 8, 2019PastaPastaPasta referenced this in commit 19a17a58d2 on Aug 12, 2019barrystyle referenced this in commit 014c94c6e7 on Jan 22, 2020DrahtBot locked this on Sep 8, 2021
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 18:15 UTC
More mirrored repositories can be found on mirror.b10c.me