Learn about Centmin Mod LEMP Stack today
Become a Member

Benchmarking an ssd disk

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

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,084
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    2:20 PM
    Nginx-1.25.x
    MariaDB 10.3.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:
    7:20 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

    54,601
    12,225
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,794
    Local Time:
    10:20 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  4. pamamolf

    pamamolf Premium Member Premium Member

    4,084
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    2:20 PM
    Nginx-1.25.x
    MariaDB 10.3.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

    54,601
    12,225
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,794
    Local Time:
    10:20 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 Premium Member Premium Member

    4,084
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    2:20 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Can i use the same command for Sata disks?
     
  7. eva2000

    eva2000 Administrator Staff Member

    54,601
    12,225
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,794
    Local Time:
    10:20 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 Premium Member Premium Member

    4,084
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    2:20 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    OK thanks :)