Skip to main content
Drupal 8

Main navigation

  • Home
    • Question And Answer
    • NEWS
    • Projects
  • Tutorials - Drupal
    • Android
    • Other
User account menu
  • Log in

Breadcrumb

  1. Home

Test disk read write speed on linux CLI

By editor , 23 April, 2020
Question

How to test Linux and Unix Test Disk I/O Performance ?

Test Disk Write Performance With dd Command

dd is a basic command une in all linux distributions to copy data. You can also use this feature to test dis performance.

Syntax

dd if=/dev/zero of=/path/to/output.file  bs=BLOCK-SIZE  count=NUMBER-OK-BLOCKS  oflag=dsync

Examples

dd if=/dev/zero of=./test.img bs=1G count=1 oflag=dsync
dd if=/dev/zero of=./test.img bs=64M count=1 oflag=dsync
dd if=/dev/zero of=./test.img bs=1M count=256 conv=fdatasync
dd if=/dev/zero of=./test.img bs=8k count=10k
dd if=/dev/zero of=./test.img bs=512 count=1000 oflag=dsync
## OR alternate syntax for GNU/dd ##
dd if=/dev/zero of=./test.img bs=1G count=1 conv=fdatasync

Do not forget to delete created file

 

Test Disk Read Performance With dd Command

Syntax

dd if=/path/to/input.file of=/dev/null bs=1M count=1024

Examples

dd if=./test.img of=/dev/null bs=1M count=1024
dd if=./test.img of=/dev/null bs=1G count=1

 

Tags

  • Linux
  • Shell
Create a CIFS - SAMBA Network Share on Linux

Comments

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Links

  • Drupal.org
  • Drupal core release cycle
  • Drupal events with ease
  • Unit test with Drupal using PHPUnit (Drupal 10)
  • Tokens for file upload url
  • Tips for Docker
  • CKEditor inline image files usage for custom forms.
  • Install Docker on Linux Mint
  • Install PHP 8.1
  • Drupal Security Best Practices
  • Order and sort items with tabledrag
  • Add a custom service YAML container
  • Apply a patch with composer