• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

dd

Display Sequential Write Throughput

February 5, 2020

Here’s a dd command to display sequential write throughput from the command line.

time dd if=/dev/zero of=/mounted_backup_volume/zero.raw bs=1M count=512 status=progress

time dd if=/dev/zero of=/mounted_backup_volume/zero.raw bs=1M count=512 status=progress

Output is.

512+0 records in
512+0 records out
536870912 bytes (537 MB) copied, 0.667813 s, 804 MB/s
 
real    0m0.669s
user    0m0.000s
sys     0m0.359s

512+0 records in 512+0 records out 536870912 bytes (537 MB) copied, 0.667813 s, 804 MB/s real 0m0.669s user 0m0.000s sys 0m0.359s

Filed Under: Linux Tagged With: dd, display, sequential, terminal, throughput, write

Create A Dummy File

February 4, 2019

Here’s the command to create a dummy file in Linux. This creates a 1GB or a 2GB file. Adjust the count to achieve the file size.

# 1GB
dd if=/dev/zero of=/path/to/dummyfile bs=1M count=1024
# 2GB
dd if=/dev/zero of=/path/to/dummyfile bs=1M count=2048

# 1GB dd if=/dev/zero of=/path/to/dummyfile bs=1M count=1024 # 2GB dd if=/dev/zero of=/path/to/dummyfile bs=1M count=2048

Filed Under: Linux Tagged With: dd, dummy file

  • Home
  • About
  • Archives

Copyright © 2023