0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

RHEL7.1のswapを解放する方法

0
Posted at

freeコマンドでの出力は実メモリとスワップの出力がされる。

実メモリのfreeが余裕があるが、swap領域を使用している場合、以下のコマンドを実行する。

swapoff -a && swapoff -a

メモリ使用量を確認する方法

  • topコマンドを実行し、出力を確認する。
  • ps -aux --sort --rrsで出力を確認する。

topコマンドのサブコマンド
M:メモリ使用率順にプロセスを並べる。
P:CPU順にプロセスを並べる。
T:実行時間順にプロセスを並べる。

V:プロセスをツリー上に出力する。
1:CPUの使用率を全体ではなく、単体で出力する。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?