Skip to content

Commit 385751c

Browse files
authored
Merge pull request #270 from FloopCZ/oom-warn
Add out-of-memory killer warning to readme
2 parents 7e19d1e + 3e56ffa commit 385751c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ processor that is older than `haswell` generation, you may wish to run `export C
9090
before the build. This command provides the best possible optimizations for your current CPU generation, but
9191
it may cause the built library to be incompatible with older generations.
9292

93+
**Warning:** In low-memory or many-cpu environments, the bazel scheduler can miss the resource consumption
94+
estimates and the build may be terminated by the out-of-memory killer.
95+
If that is your case, consider adding resource limit parameters to CMake, e.g.,
96+
`cmake -DLOCAL_RAM_RESOURCES=2048 -DLOCAL_CPU_RESOURCES=4 ..`
97+
9398
#### 4) (Optional) Free disk space
9499

95100
```

0 commit comments

Comments
 (0)