grpc.io icon indicating copy to clipboard operation
grpc.io copied to clipboard

C++ Compilation Instructions in Quickstart Guide will Crash Most Machines

Open tylercasper opened this issue 3 years ago • 1 comments

The default instructions indicate to build gRPC using the command make -j, which is nearly guaranteed to crash most machines given a project of this size. Building easily ate through my 16 GB of RAM at about 54% complete. After my terminal session crashed twice while building, I kept an eye on my system resources the next time around, and discovered this to be the issue. Limiting the number of concurrent jobs to 8 with make -j 8 doesn't substantially increase build times and safely keeps RAM usage to something reasonable. The line of the guide in question is here:

https://github.com/grpc/grpc.io/blob/main/content/en/docs/languages/cpp/quickstart.md?plain=1#L117

tylercasper avatar Jun 10 '22 01:06 tylercasper

CC @veblush @yashykt

sanjaypujare avatar Sep 29 '22 18:09 sanjaypujare