Closed liuqun closed 6 years ago
uses swapfile for solves this problem. For example:
# fallocate -l 4G swap.img && mkswap swap.img && swapon swap.img
# sysctl vm.swappiness=70
Thanks. I just add the RAM to 3GB to my VMware machine. Seems that 3GB RAM works for me.
By the way when I ran the build script inside a docker container, there was no swap space available by default. (Even if the docker host does have a 4GB sized hard disk swap partition)
The following bash code doesn't work when I try to build bazel-0.10.0 with only 2GB RAM or less: https://github.com/lhelontra/tensorflow-on-arm/blob/7ca59b4ddc1dc33e2a35fa22a8d176b9c3f2f73c/build_tensorflow/build_tensorflow.sh#L106-L112
Output is:
Here is my patch code: