search

Home  >  Q&A  >  body text

linux中free命令的available值是如何计算的?

[root@localhost ~]# free -h
              total        used        free      shared  buff/cache   available
Mem:           489M        124M         24M         28M        339M        314M
Swap:            0B          0B          0B

请问大神们,available项是如何计算出来的呢?在统计内存使用率时这项是否可参考?

大家讲道理大家讲道理2821 days ago819

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 14:42:23

    cat /proc/meminfo
    If you are using centos/fedora/rhel, install the package kernel-docs
    arch linux, then install linux-docs
    and find filesystems/proc.txt in the package File, there will be detailed explanation in it
    In addition, you can also refer to man 5 proc

    reply
    0
  • Cancelreply