Skip to content

Commit

Permalink
setup-all.sh: add vm.max_map_count check
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonin Reitz committed Oct 20, 2023
1 parent 274ece0 commit baeb4d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ setup() {
#last line = missing for tcg/pa, with bazel-bootstrap
echo "Required Debian packages are installed"
fi

if [[ "$(sysctl -n vm.max_map_count)" -lt 1048576 ]]; then
echo "sysctl vm.max_map_count < 1048576, not OK, please fix it, exiting"
else
echo "sysctl vm.max_map_count >= 1048576, OK"
fi
}

build_starmalloc() {
Expand Down

0 comments on commit baeb4d9

Please sign in to comment.