- 论坛徽章:
- 0
|
改变一下bs,count的值,参看dd的手册:
- bs=BYTES
- count=BLOCKS
- copy only BLOCKS input blocks
- seek=BLOCKS
- skip BLOCKS obs-sized blocks at start of output
- BLOCKS and BYTES may be followed by the following multiplicative suf-
- fixes: xM M, c 1, w 2, b 512, kB 1000, K 1024, MB 1000*1000, M
- 1024*1024, GB 1000*1000*1000, G 1024*1024*1024, and so on for T, P, E,
- Z, Y.
复制代码
比较一下下面两个命令的运行速度:
- dd if=/dev/zero of=emptyfile bs=1M count=1000M
- dd if=/dev/zero of=emptyfile bs=100M count=10
- dd if=/dev/zero of=emptyfile bs=1000M count=1
复制代码
bs不是越大越好,跟你的系统配置有关。 |
|