Add a script to setup sysctl values

This commit is contained in:
Josh.5
2023-09-01 17:07:18 +12:00
parent e0dc046470
commit c3480448ff

View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
###
# File: 11-setup_sysctl_values.sh
# Project: cont-init.d
# File Created: Friday, 1st September 2023 3:56:17 pm
# Author: Josh.5 (jsunnex@gmail.com)
# -----
# Last Modified: Monday, 1st September 2023 3:56:17 pm
# Modified By: Console and webGui login account (jsunnex@gmail.com)
###
echo "**** Configure some system kernel parameters ****"
if [ "$(cat /proc/sys/vm/max_map_count)" -ge 524288 ]; then
echo "Setting the maximum number of memory map areas a process can create to 524288"
echo 524288 > /proc/sys/vm/max_map_count
fi
echo "DONE"