【发布时间】:2018-06-15 15:00:05
【问题描述】:
我试图使用 dd 来测试我的 ceph 文件系统的性能。在测试过程中,我发现了一些令人困惑的地方,即 dd with oflag=dsync 或 conv=fdatasync/fsync 比 dd with oflag=direct 快 10 倍左右。
我的网络是 2*10Gb
/mnt/testceph# dd if=/dev/zero of=/mnt/testceph/test1 bs=1G count=1 oflag=direct
1+0 records in
1+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 23.1742 s, 46.3 MB/s
/mnt/testceph# dd if=/dev/zero of=/mnt/testceph/test1 bs=1G count=1 conv=fdatasync
1+0 records in
1+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 2.22468 s, 483 MB/s
【问题讨论】:
-
你曾经收集过
iostat输出吗?
标签: linux filesystems ceph