メモリの性能チェック
メモリ使用率の測定 free
引数なしで実行した結果
[riceplanting@localhost ~]$ free total used free shared buffers cached Mem: 1012548 714804 297744 0 72992 461624 -/+ buffers/cache: 180188 832360 Swap: 2031608 0 2031608
メモリ使用率の測定 vmstat
引数なしで実行した結果
[riceplanting@localhost ~]$ vmstat procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 0 0 0 297736 73008 461656 0 0 22 2 25 50 0 0 99 0 0
分析の仕方
- メモリに関する簡易的な情報を得る場合 free
- メモリに関する詳細な情報を得る場合 vmstat
si | スワップからメモリへ返されたメモリ量(KB/s) |
so | メモリからスワップへ追い出されたメモリ量(KB/s) |