Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: add example for building with constrained resources #7423

Merged
merged 1 commit into from Jan 29, 2016

Conversation

Projects
None yet
3 participants
@jarret
Copy link
Contributor

commented Jan 27, 2016

discussed in github issue #6658

@jonasschnelli

View changes

doc/build-unix.md Outdated
system with less than 1 GB memory, the compiler can be instructed to conserve
memory with additional CXXFLAGS:

./configure CXXFLAGS="--param ggc-min-expand=1 --param ggc-min-heapsize=32768"

This comment has been minimized.

Copy link
@jonasschnelli

jonasschnelli Jan 27, 2016

Member

nit: Looks like gcc specific. Maybe okay. But is there a clang equivalent or something that is supported by "all"/"most" compilers?

This comment has been minimized.

Copy link
@laanwj

laanwj Jan 27, 2016

Member

Nit: From what I understood of #6658, these settings may even be helpful with only 1 GB of memory, not just with less

Edit: and yes, this should mention the compiler

This comment has been minimized.

Copy link
@jarret

jarret Jan 28, 2016

Author Contributor

@jonasschnelli:

I have updated the wording to indicate gcc-specificness. I will have to do more
research and testing for a working low-memory clang recipe. With gcc and
aggressive values for these params, I have been able to successfully build with
on a Raspberry Pi 1 with 512 RAM and no swap partition. This is better than
@laanwj's clang measurements posted on issue 6658, so until we can demonstrate
a better tweak with clang, this appears to be a solid recommendation.

@laanwj:

That is correct, thanks. I have also updated the commit with a change of the
section title and a phrasing that feels better to me. I went with a wording to
encourage people to try if they are below 1.5 GB. Please let me know if you
think it is an improvement.

@jonasschnelli

This comment has been minimized.

Copy link
Member

commented Jan 27, 2016

utACK

@jarret jarret force-pushed the jarret:docBuildFlags branch to f9298cc Jan 28, 2016

@laanwj

This comment has been minimized.

Copy link
Member

commented Jan 28, 2016

@laanwj laanwj merged commit f9298cc into bitcoin:master Jan 29, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

laanwj added a commit that referenced this pull request Jan 29, 2016

Merge #7423: doc: add example for building with constrained resources
f9298cc doc: add example for building with constrained resources (Jarret Dyrbye)

codablock added a commit to codablock/dash that referenced this pull request Dec 9, 2017

Merge bitcoin#7423: doc: add example for building with constrained re…
…sources

f9298cc doc: add example for building with constrained resources (Jarret Dyrbye)

codablock added a commit to codablock/dash that referenced this pull request Dec 11, 2017

Merge bitcoin#7423: doc: add example for building with constrained re…
…sources

f9298cc doc: add example for building with constrained resources (Jarret Dyrbye)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.