Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: SD Card performance
PostPosted: Mon Jun 06, 2005 12:45 pm 
Offline

Joined: Fri Mar 11, 2005 2:46 pm
Posts: 18
Location: Switzerland
i'm having performance issues with the SD Card driver:
since write-back caching is disabled, all data gets written immediately. and, in contrary to read access, only in chunks of 1/2 sector or 1 sector (why?).
i found out that soft-caching (writing into a buffer of 1MB and calling WriteFile() for this buffer) helps a bit and gives me a maximum data rate of about 1.2MB/s on write and 1.7MB/s on read when doing nothing else. strange thing is, the SD Cards we're using can handle up to 9MB/s on both read and write (or a little less on write).
what's causing this discrepancy? is the hardware too slow? or is it just beacuse we're not using write-back caching?
there's another small thing: in debug mode, every written chunk produces 4 lines of debug message noise. it would be much better to turn that off or at least reduce it to one line.


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


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:
Jump to: