15
17

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.

syncコマンドの進捗を確認

Last updated at Posted at 2015-10-15
確認コマンド
watch grep -e Dirty: -e Writeback: /proc/meminfo

Dirty: 2000 kB
Writeback: 487844 kB

Writeback が 0 になったらsync完了

解説

書き込み処理はいったんメモリにdirtyメモリとして保存されて
vm.dirty_background_ratioの割合を超えるか
vm.dirty_expire_centisecsの時間が経過すると
pdflushが実行されてwrite back処理によって物理ディスクに書き込まれる

書き込み処理が終わる前に次のpdflushが実行されても
前回の書き込みが終了するまでは待たなければいけない。(I/O wait)

15
17
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
15
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?