Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议将host_check.sh中checkMem的内存条件放宽一些 #507

Open
oaHeZgnoS opened this issue Jul 28, 2023 · 1 comment
Open

建议将host_check.sh中checkMem的内存条件放宽一些 #507

oaHeZgnoS opened this issue Jul 28, 2023 · 1 comment

Comments

@oaHeZgnoS
Copy link

oaHeZgnoS commented Jul 28, 2023

建议将host_check.sh中checkMem的内存条件放宽一些,目前是查询free空间:
$(awk '($1 == "MemFree:"){print $2/1048576}' /proc/meminfo 2>&1)
推荐改为available空间:
$(awk '($1 == "MemAvailable:"){print $2/1048576}' /proc/meminfo 2>&1)

@CodingCattwo
Copy link
Contributor

可根据实际机器资源,调整 check 脚本中的内存大小

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants