Create a 1 GiB file containing only zeros

por | 24 mayo, 2011

Create a 1 GiB file containing only zeros (bs=blocksize, count=number of blocks):

time dd if=/dev/zero of=trash bs=1M count=1024

Benchmark
—————————————–
Laptop HP Wrk
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 14.2728 s, 75.2 MB/s
——————————————————
Server T110
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 9.777131 s, 110 MB/s
—————————————————————

Categoría: Nix