free命令和top命令显示的内存有什么区别?

free命令和top命令显示的内存有什么区别?

我是运行 Linux 服务器的新手,想知道命令显示的总内存之间的差异top(似乎是 78GB)

在此输入图像描述

以及free显示我有 743GB 内存的命令

在此输入图像描述

先感谢您!

答案1

top自由的数字是90G。旁边有+号全部的,用过的增益/缓存价值观。top报告的尺寸与 相同free

请参阅手册页,特别是第 4a 节中top交互式命令的描述:E

      E  :Enforce-Summary-Memory-Scale in Summary Area
          With this command you can cycle through the available
          summary area memory scaling which ranges from KiB
          (kibibytes or 1,024 bytes) through EiB (exbibytes or
          1,152,921,504,606,846,976 bytes).

          If you see a `+' between a displayed number and the
          following label, it means that top was forced to truncate
          some portion of that number.  By raising the scaling
          factor, such truncation can be avoided.

相关内容