mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-28 16:14:21 +00:00
Display actual mapcount and file limits on system
This commit is contained in:
parent
3f72676c71
commit
dafc53615d
@ -637,7 +637,7 @@ mapcount_check() {
|
|||||||
# Add to the results and actions arrays
|
# Add to the results and actions arrays
|
||||||
if [ "$mapcount" -ge 16777216 ]; then
|
if [ "$mapcount" -ge 16777216 ]; then
|
||||||
# All good
|
# All good
|
||||||
preflight_pass+=("vm.max_map_count is set to at least 16777216.")
|
preflight_pass+=("vm.max_map_count is set to $mapcount.")
|
||||||
elif grep -E -x -q "vm.max_map_count" /etc/sysctl.conf /etc/sysctl.d/* 2>/dev/null; then
|
elif grep -E -x -q "vm.max_map_count" /etc/sysctl.conf /etc/sysctl.d/* 2>/dev/null; then
|
||||||
# Was it supposed to have been set by sysctl?
|
# Was it supposed to have been set by sysctl?
|
||||||
preflight_fail+=("vm.max_map_count is configured to at least 16777216 but the setting has not been loaded by your system.")
|
preflight_fail+=("vm.max_map_count is configured to at least 16777216 but the setting has not been loaded by your system.")
|
||||||
@ -702,7 +702,7 @@ filelimit_check() {
|
|||||||
# Add to the results and actions arrays
|
# Add to the results and actions arrays
|
||||||
if [ "$filelimit" -ge 524288 ]; then
|
if [ "$filelimit" -ge 524288 ]; then
|
||||||
# All good
|
# All good
|
||||||
preflight_pass+=("Hard open file descriptors limit is set to at least 524288.")
|
preflight_pass+=("Hard open file descriptors limit is set to $filelimit.")
|
||||||
else
|
else
|
||||||
# The file limit should be changed
|
# The file limit should be changed
|
||||||
preflight_fail+=("Your hard open file descriptors limit is $filelimit\nand should be set to at least 524288\nto increase the maximum number of open files.")
|
preflight_fail+=("Your hard open file descriptors limit is $filelimit\nand should be set to at least 524288\nto increase the maximum number of open files.")
|
||||||
|
Loading…
Reference in New Issue
Block a user