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

Command line option for limiting building processes? #2654

Closed
MrMYHuang opened this issue Jan 26, 2018 · 2 comments
Closed

Command line option for limiting building processes? #2654

MrMYHuang opened this issue Jan 26, 2018 · 2 comments
Labels
category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed

Comments

@MrMYHuang
Copy link

Could vcpkg provide a command line option for limiting number of building processes?
I was building caffe2 on my PC with Intel Core i7 (4 cores, 8 threads) and 8 GB RAM. My PC went down at the linking stage. Before the down, the task manager showed the build consumed more than 4-GB RAM and the HDD IO LED kept lighting (it seems the physical RAM run out and the virtual memory was massively used).

If I could limit the number of building processes, e.g., to 4 processes, my PC would not run out of physical RAM and finally get a success build (although it would take a longer build time than the one with 8 processes and no out of RAM), isn't it?

@JackBoosY JackBoosY added the category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed label Feb 27, 2019
@NancyLi1013
Copy link
Contributor

This issue hasn’t been updated in a year; if it is still an issue, please reopen.

@j-rivero
Copy link

For reference is someone is looking for limiting building threads using command line, the VCPKG_MAX_CONCURRENCY variable can be used, it is documented https://vcpkg.readthedocs.io/en/latest/users/config-environment/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed
Projects
None yet
Development

No branches or pull requests

4 participants