フルスワップメモリの実際の効果が何であるかを知る必要がありますか?すでに十分なメモリがありますが、まだスワップメモリを使用していますか?私はOracle 11gデータベースを含むサーバーを使用しています。それでは、スワップメモリがいっぱいになるとデータベースに影響しますか?サーバーメモリ使用量の現在のシナリオ
free -h
total used free shared buff/cache available
Mem: 31G 10G 176M 17G 20G 2.9G
Swap: 2.0G 2.0G 152K
ベストアンサー1
確認してみてください協会。ここでは、システムに約1つのRAMを使用できます3GB
。しかし、システムはまだスワップスペースを使用しています。
- システムは必要に応じてスワップスペースをスワップイン/アウトできます。
- ただし、swap-in/swap-out操作、つまりディスク操作が多いと、最終的にアプリケーションのパフォーマンスに影響を与えます。積極的なスワッピングがデータベースに与える影響により、クエリが結果を取得するのに時間がかかることがあります。システムに全体的な影響を与える可能性があるパフォーマンス。
- システムがどのように実行されているかを概説するには、コマンドを実行して
sar -B
列を観察します%vmeff
。
%vmeff
Calculated as pgsteal / pgscan, this is a metric of the efficiency of page reclaim. If it is near 100% then almost every page coming off the tail of the inactive list is being reaped. If it gets too low (e.g. less than 30%) then the virtual memory is having some difficulty. This field is displayed as zero if no pages have been scanned during the interval of time.
サンプル出力sar -B 1
:
05:12:13 PM pgpgin/s pgpgout/s fault/s majflt/s pgfree/s pgscank/s pgscand/s pgsteal/s %vmeff
05:12:14 PM 0.00 294.95 33.33 0.00 313.13 0.00 0.00 0.00 0.00
05:12:15 PM 8.00 377.00 35.00 0.00 433.00 0.00 0.00 0.00 0.00
編集する:
これを確認してください協会スワップ領域を追加するプロセスです。