[英]How can i know how much free memory i have in a linux machine?
When i use: 当我使用时:
cat /proc/meminfo | grep MemFree
htop: Mem
I get different free memory results. 我得到了不同的空闲内存结果。
I want to run a memory consuming process. 我想运行一个消耗内存的过程。 What is the number of all of the above that is relevant to me?
以上所有与我相关的数字是多少?
Simply try free -m which give available memory in MB. 只需尝试使用free -m即可以MB为单位提供可用内存。 You can also try vmstat -s which gives free memory in KB.
您也可以尝试使用vmstat -s来提供可用内存(以KB为单位)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.