Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am running an embedded Linux on arm with a SD-Card. While writing huge amounts of data I see bizarre effects. E.g, when I dd a 15 MB file few times, it writes the file (normally) in less than 2 Secs. But After lets say 3-4 times it takes sometimes 15 to 30 Seconds to write the same file. If I sync after writing the file, then this does not happen but sync takes long time too. If there is enough gap between writing two files than presumably kernel syncs itself. How can I optimize the whole performance so that write should always finish inside 2 Seconds. The File system I am using is ext3. Any pointers?

share|improve this question
    
Is using another filesystem (ext2) an option? –  Bobby Oct 23 '12 at 12:46
    
yes I can try that. Do you think it can improve performance because its not a JFS? –  user1566277 Oct 23 '12 at 13:13
    
changed to ext2. It's the same. –  user1566277 Oct 23 '12 at 13:34
1  
In that case I'd guess that it is due to a cache. Your data is not really writting onto the card but is instead cached somewhere and then get's asynchronously written to the card. You could try to mount it via mount -o sync CARD MOUNTPOINT. –  Bobby Oct 23 '12 at 13:46
2  
Well, then it is the cache which makes it appear faster the first few times. Get a faster SD-Card reader then would be the only answer. –  Bobby Oct 23 '12 at 14:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.