Linux メモリがどれだけ使われているか確認するには?

ショコラ
ショコラ

Linux メモリがどれだけ使われているか確認するには?

「free -s 1」コマンドでキメマス。

もっさん先輩
もっさん先輩
free -s 1
$ free -s 1
              total        used        free      shared  buff/cache   available
Mem:       32344464     1623748     4440860      138532    26279856    30118212
Swap:       4095996           0     4095996

              total        used        free      shared  buff/cache   available
Mem:       32344464     1623568     4440996      138532    26279900    30118380
Swap:       4095996           0     4095996

              total        used        free      shared  buff/cache   available
Mem:       32344464     1622876     4441680      138532    26279908    30119080
Swap:       4095996           0     4095996
  • Mem の used で 1.6GB のメモリを使用している。available で 30GB の空きがある。
  • Swap の used 0 でスワップには入っていない。
Scroll to Top