简体   繁体   English

我如何知道Linux机器中有多少可用内存?

[英]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.

相关问题 我如何知道Linux上的GNU C ++剩余多少可用内存 - How do I find out how much free memory is left in GNU C++ on Linux 如何知道是否有足够的内存可以在 Linux 机器上部署新应用程序? - How to know whether enough memory is free to deploy a new application on a Linux machine? 如何知道我的linux发行版? - How to know the linux distribution I have? 如何知道哪个中断线是共享的,哪个中断线在Linux中是免费的? - How can I know which interrupt line is shared or not, and which interrupt line is free in Linux? Linux如何知道进程使用了​​多少物理内存? - How does Linux know how much physical memory is used by a process? 我怎么知道一个命名管道有要在Linux上的Java中读取的数据 - How can I know a named pipe have data to read in java on linux 我怎么知道哪个 /dev/input/eventX (X=0..7) 有 Linux 输入 stream? - How can I know which of the /dev/input/eventX (X=0..7) have the Linux input stream? Linux - 我如何知道给定文件的块 map 和/或分区的可用空间 map - Linux - How do i know the block map of the given file and/or the free space map of the partition Linux:使用免费的meminfo的vmstat检查为进程分配了多少内存 - Linux: check how much memory was allocated to a process using vmstat, free, of meminfo Linux会因为内存不足而杀死我的进程,如何查看我使用了多少? - Linux kill my process for out of memory, how to see how much I use?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM