Linux tweak
This commit is contained in:
parent
569dac5953
commit
db8c2dbcb2
1 changed files with 6 additions and 3 deletions
|
@ -236,10 +236,13 @@ ensureUserGroup() {
|
||||||
# increasing the `vm.max_map_count`. According to a [RedHat article](https://access.redhat.com/solutions/99913), the default value is `65530`.
|
# increasing the `vm.max_map_count`. According to a [RedHat article](https://access.redhat.com/solutions/99913), the default value is `65530`.
|
||||||
# This function increases that value to `262144` if `sysctl` is available on the system.
|
# This function increases that value to `262144` if `sysctl` is available on the system.
|
||||||
increaseMapCount() {
|
increaseMapCount() {
|
||||||
|
if [ ! -d /Applications ] && [ ! -d /System ]; then
|
||||||
|
### Linux
|
||||||
if command -v sysctl > /dev/null; then
|
if command -v sysctl > /dev/null; then
|
||||||
logg info 'Increasing vm.max_map_count size to 262144'
|
logg info 'Increasing vm.max_map_count size to 262144'
|
||||||
sudo sysctl -w vm.max_map_count=262144 > /dev/null
|
sudo sysctl -w vm.max_map_count=262144 > /dev/null
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# @description Helper function for installDocker that installs pre-built gVisor using method recommended on official website
|
# @description Helper function for installDocker that installs pre-built gVisor using method recommended on official website
|
||||||
|
|
Loading…
Reference in a new issue