RetroBSD

2.11BSD operating system for microcontrollers
It is currently Sat Jan 19, 2019 10:07 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: SDcards - performance
PostPosted: Fri Oct 16, 2015 11:34 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
So, after 5y, I've refreshed my storage pool for retrobsd and LiteBSD by 2x 8GB Sammy EVO CL10 UHS-I, 1x 16GB Sammy EVO CL10 UHS-I, and 1x 16GB Sandal Ultra CL10 UHS-I.
Hopefully they will last for next 5y :)
Now, how to set 16 or 20MHz with LiteBSD.. :?

I set to 16MHz SPI on LiteBSD and tried with fresh Sammy N1 on the SDZL board:
Code:
Samsung 8GB microSDHC CL10 UHS-I

# diskspeed
Testing 4-kbyte block size.
Write speed: 8 Mbytes in 8.898 seconds = 920 kbytes/sec
 Read speed: 8 Mbytes in 5.224 seconds = 1568 kbytes/sec

# time ls -lR /
       18.05
       16.61 real         5.91 user         0.47 sys
       16.37 real         5.77 user         0.56 sys
       16.06 real         5.60 user         0.51 sys
       16.22 real         5.55 user         0.66 sys
       16.28 real         5.76 user         0.54 sys
       16.34 real         5.73 user         0.48 sys

Above are the 7 consecutive runs after a fresh install of the image on the fresh card. Interesting to see how the sdcard's speeds-up itself every run.. And then slows down :)
Now, let us wait for the CMD6 high speed setting :P

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Fri Oct 16, 2015 12:06 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
The same card as above with 25MHz SPI:
Code:
# diskspeed
Testing 4-kbyte block size.
Write speed: 8 Mbytes in 5.601 seconds = 1462 kbytes/sec
 Read speed: 8 Mbytes in 3.808 seconds = 2151 kbytes/sec
# diskspeed
Testing 4-kbyte block size.
Write speed: 8 Mbytes in 5.017 seconds = 1632 kbytes/sec
 Read speed: 8 Mbytes in 3.805 seconds = 2152 kbytes/sec
#
#

Code:
# time ls -lR /     
      15.54 real         4.65 user         0.49 sys
      14.86 real         4.77 user         0.49 sys
      15.11 real         4.90 user         0.53 sys
      15.17 real         5.00 user         0.46 sys
#


At 50MHz SPI:
Code:
sd0 at port spi2, pin cs=G9
sd0: card_size: SEND_CSD timed out, reply = 255

Sure the CMD6 high speed mode may help (the default max SPI is 25MHz in normal mode, 50MHz in high speed mode, you can set the signal driver strengths as well) :)

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron




Powered by phpBB® Forum Software © phpBB Group

BSD Daemon used with permission