System/swap
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
#topicpath
/////////////////////////////////////////////////////////...
* 目次 [#e3c59a54]
#contents();
/////////////////////////////////////////////////////////...
* swap [#j834bdc8]
/////////////////////////////////////////////////////////...
* swap を使用しているプロセスを調べる [#m86bafb7]
- /proc/<PID>/status の VmSwap フィールドに書かれている値...
$ grep VmSwap /proc/*/status | sort -k 2 -nr
- swap を使用しているプロセスを調べる。
$ grep VmSwap /proc/*/status | sort -k 2 -nr | grep -v '...
/////////////////////////////////////////////////////////...
* swap 領域の開放 [#qdcf267f]
- 一旦 swap を無効にしてから再度有効にすることで実現出来...
- コマンド
# swapoff -a && swapon -a
- swapoff
-- 指定したデバイスやファイルのスワッピングを無効にする。
-- -a が指定されると、(/proc/swaps または /etc/fstab 中の...
- swapon
-- ページング (paging) やスワッピング (swapping) を行うデ...
-- 主なオプション
|~option |~description |~remark |
|-a |/etc/fstab 中で ''swap'' マークが付いている...
|-e |swapon に -a オプションが指定されている場合...
|-L <label> |指定された <label> のパーティションを使う。 ...
|-s |スワップの使用状況をデバイス毎に表示する。 "...
|-U <uuid> |指定された uuid のパーティションを使う。 (こ...
/////////////////////////////////////////////////////////...
* 参考リンク [#hd9a88b3]
- [[Swapを使ってるプロセスを探す>https://qiita.com/rmanzo...
- [[Linux swap領域の解放方法>https://dekiruengineer.com/e...
終了行:
#topicpath
/////////////////////////////////////////////////////////...
* 目次 [#e3c59a54]
#contents();
/////////////////////////////////////////////////////////...
* swap [#j834bdc8]
/////////////////////////////////////////////////////////...
* swap を使用しているプロセスを調べる [#m86bafb7]
- /proc/<PID>/status の VmSwap フィールドに書かれている値...
$ grep VmSwap /proc/*/status | sort -k 2 -nr
- swap を使用しているプロセスを調べる。
$ grep VmSwap /proc/*/status | sort -k 2 -nr | grep -v '...
/////////////////////////////////////////////////////////...
* swap 領域の開放 [#qdcf267f]
- 一旦 swap を無効にしてから再度有効にすることで実現出来...
- コマンド
# swapoff -a && swapon -a
- swapoff
-- 指定したデバイスやファイルのスワッピングを無効にする。
-- -a が指定されると、(/proc/swaps または /etc/fstab 中の...
- swapon
-- ページング (paging) やスワッピング (swapping) を行うデ...
-- 主なオプション
|~option |~description |~remark |
|-a |/etc/fstab 中で ''swap'' マークが付いている...
|-e |swapon に -a オプションが指定されている場合...
|-L <label> |指定された <label> のパーティションを使う。 ...
|-s |スワップの使用状況をデバイス毎に表示する。 "...
|-U <uuid> |指定された uuid のパーティションを使う。 (こ...
/////////////////////////////////////////////////////////...
* 参考リンク [#hd9a88b3]
- [[Swapを使ってるプロセスを探す>https://qiita.com/rmanzo...
- [[Linux swap領域の解放方法>https://dekiruengineer.com/e...
ページ名: