Other contacts

Novi članci

Flickr Goodness


January 12, 2013 @ 22:56

Benchmark flash memory on Linux

I gathered all my flash based memory devices (USB flash memory sticks and SHDC cards) and wanted to see how do they compare to each other.

Quick google search revealed that dd tool could be used for benchmarking so that is what I used. Have you done benchamrs some other way? Please share your method.

Be really, really careful if you choose do to write test, because that will ERASE your existing data so test write speed only on EMPTY flash memory devices. Also triple check which device is your flash memory device. Simple typo could render your data partition unusable!

I didn’t want to write on the first 1GB of flash memory because that part is probably most often used, I know there are some wear-leveling chips that should take care of that but you can use skip parameter if you wish to be safe. To prefent mesuring your cache performance but actual device performance use iflag and oflag options. 

read speed benchmark:

$ sudo dd if=/dev/sdX1 of=/dev/zero bs=1M count=400 iflag=direct

write speed benchmark :

$ sudo dd if=/dev/zero of=/dev/sdX1 bs=1M count=400 skip=1000 oflag=direct

SDHC Card Read speed Write speed
Adata 8GB class 10 20.8 MB/s 10.6 MB/s
Apacer 4GB class 4 15.4 MB/s 3.6 MB/s
LG 2GB class unknown 20.9 MB/s 8.1 MB/s

USB memory stick Read speed Write speed
2GB Transceng VF V90 19.2 MB/s 11.6 MB/s
4GB Kingston DT 108 15.2 MB/s 7.2 MB/s
8GB Kingston DT 2.0 19.0 MB/s 16.0 MB/s
8GB Kingston DT SE9 20.1 MB/s 14.9 MB/s
4GB Red USB 19.8 MB/s 9.0 MB/s
8GB Silicon Power SP 810 24.8 MB/s 5 MB/s

Filed under english, linux, tips&tricks

  • brem

    Make sure to always use oflag=direct and iflag=direct when respectively doing write and read benchmark test, or you risk toi get results that actually are filecache write and read timings

    • valent

      Aaaah, that is why I was getting really unreliable results, I’ll redo them with these flags. Thanks!

  • http://profiles.google.com/valent.turkovic Valent Turkovic
  • http://profiles.google.com/valent.turkovic Valent Turkovic

    4GB CF card from Igor:
    Read: 18.3 MB/s
    Write: 18.3 MB/s

    Recent Comments

    •  Tomáš Pavel: So I just solder it together and it works? That looks easy.
    • Valent Turkovic: NetVideoHunter (plugin) NetVideoHunter is a Firefox add-on (extension), and you can easily download...
    • Valent Turkovic: Also interesting, Google+ Share – https://addons.mozilla.org/en- US/firefox/addon/google-sha...
    • sf_jeff: Did you look under the “View” tab under the computer on the left?
    • blahmer anagas: set get fans at full speed hp linux, how can i set my fans to full speed on my hp 6530b 6730b? ^ just...



    Flickr photostream

    User not found

    Meta meta :)