WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: RPi file write speed test  (Read 2860 times)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
RPi file write speed test
« on: November 28, 2013, 01:58:25 PM »
I tested the file write speed on RPi with piCore, see result below:



SD card is Class 4 rated which means 4 Mbyte/s max. speed. You can see effect of RAM caching.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: RPi file write speed test
« Reply #1 on: November 28, 2013, 03:48:53 PM »
I'm curious how you benchmark'd the SD card?


Also there are much faster SD cards available now with the need to save 4K video,  we need to try one of these bad boys http://www.toshiba.co.jp/about/press/2013_07/pr1601.htm   :P

I have one of their slower 90MB/s SDcard siblings around here somewhere...   will have to look for it  then maybe I should get a Raspberry Pi and join the fun
« Last Edit: November 28, 2013, 03:54:25 PM by coreplayer2 »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: RPi file write speed test
« Reply #2 on: November 28, 2013, 05:03:38 PM »
Measured with my own program written in Python.

What is commonly available here different Class 10 cards and UHS-I cards with up to 40 Mbyte/s write speed. 90 Mbyte/s is a read speed most likely.

Ask an RPi from Santa, it is a nice toy :)
« Last Edit: November 28, 2013, 05:05:32 PM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Franxoois

  • Newbie
  • *
  • Posts: 18
Re: RPi file write speed test
« Reply #3 on: November 28, 2013, 06:02:13 PM »
Very interesting. I thought the ram was faster.

I tried this

Code: [Select]
tc@FLink2:~$ dd if=/dev/urandom of=/opt/test bs=10M count=5
5+0 records in
5+0 records out
52428800 bytes (50.0MB) copied, 44.505094 seconds, 1.1MB/s
tc@FLink2:~$ dd if=/opt/test of=/opt/test2
102400+0 records in
102400+0 records out
52428800 bytes (50.0MB) copied, 1.592277 seconds, 31.4MB/s
tc@FLink2:~$ dd if=/opt/test of=/opt/test2 bs=10M
5+0 records in
5+0 records out
52428800 bytes (50.0MB) copied, 0.558725 seconds, 89.5MB/s
tc@FLink2:~$ dd if=/opt/test of=/opt/test2 bs=20M
2+1 records in
2+1 records out
52428800 bytes (50.0MB) copied, 0.601817 seconds, 83.1MB/s
tc@FLink2:~$ dd if=/opt/test of=/opt/test2 bs=20M
2+1 records in
2+1 records out
52428800 bytes (50.0MB) copied, 0.572355 seconds, 87.4MB/s
tc@FLink2:~$ sudo dd if=/opt/test of=/mnt/mmcblk0p2/test3 bs=4M
12+1 records in
12+1 records out
52428800 bytes (50.0MB) copied, 13.180353 seconds, 3.8MB/s

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: RPi file write speed test
« Reply #4 on: November 28, 2013, 06:40:46 PM »
Thanks. My program is writing 1024 bytes buffers during test in Python. I will play a bit with increased buffer length. For sure with larger buffers and using strict C you can reduce overhead when writing to RAM.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline spence91

  • Jr. Member
  • **
  • Posts: 80
Re: RPi file write speed test
« Reply #5 on: November 29, 2013, 05:10:07 AM »
Does anyone know how this compares with other SD card writes?