Open1

Linux 便利コマンド集

ymz_noteymz_note

書き込み速度計測

# dd if=/dev/zero of=/root/testfile bs=1M count=10 conv=fsync
10+0 records in
10+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 0.0421199 s, 249 MB/s

/root ディレクトリに dd コマンドを使用して 10M バイトの testfile を生成する速度は,249 MB/s と分かる

以下はコンテナの IO 書き込み速度を見る場合

# docker exec -it container0001 \
dd if=/dev/zero of=/root/testfile bs=1M count=10 conv=fsync
10+0 records in
10+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 0.0421199 s, 249 MB/s