Get the most out of your Centmin Mod LEMP stack
Become a Member

Benchmarking an ssd disk

Discussion in 'System Administration' started by pamamolf, Oct 30, 2014.

  1. pamamolf

    pamamolf Well-Known Member

    4,101
    428
    83
    May 31, 2014
    Ratings:
    +838
    Local Time:
    4:40 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    Hi


    How can i do an accurate benchmark of an ssd disk and get the real read and write speed of it?

    Thanks
     
  2. Josephm

    Josephm Active Member

    132
    44
    28
    Aug 26, 2014
    Ratings:
    +48
    Local Time:
    8:40 PM
    1.9.5
    10.0.21
    Try command below, for SSD speed should be more than 200MB/s:
    Code:
    dd if=/dev/zero of=iotest bs=64k count=16k conv=fdatasync && rm -rf iotest
    
     
  3. eva2000

    eva2000 Administrator Staff Member

    55,906
    12,281
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,868
    Local Time:
    11:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  4. pamamolf

    pamamolf Well-Known Member

    4,101
    428
    83
    May 31, 2014
    Ratings:
    +838
    Local Time:
    4:40 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    Ok great :)

    How long does it takes about for this to finish?

    Code:
    dd if=/dev/zero of=iotest bs=64k count=16k conv=fdatasync && rm -rf iotest
    And if the disk is sata and not ssd which command can i use?

    Thanks
     
  5. eva2000

    eva2000 Administrator Staff Member

    55,906
    12,281
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,868
    Local Time:
    11:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    you run command from the disk partition you want to test to test the particular disk you want

    as to time, varies depending on performance
     
  6. pamamolf

    pamamolf Well-Known Member

    4,101
    428
    83
    May 31, 2014
    Ratings:
    +838
    Local Time:
    4:40 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    Can i use the same command for Sata disks?
     
  7. eva2000

    eva2000 Administrator Staff Member

    55,906
    12,281
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,868
    Local Time:
    11:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yes.. dd info Linux and UNIX dd command help and examples

    pay attention though
     
  8. pamamolf

    pamamolf Well-Known Member

    4,101
    428
    83
    May 31, 2014
    Ratings:
    +838
    Local Time:
    4:40 PM
    Nginx-1.26.x
    MariaDB 10.6.x
    OK thanks :)