gsing wrote on Tuesday, May 30, 2017:
Hi,
I am new to FreeRTOS, now I am working on FreeRTOS on Xilinx zynq platform, running 160919_FreeRTOS_Labs. I want to test the performance of SD card writing. SD card formated fat32 with windows, it is a 4G card, testing with windows, the write speed is about 5.5 MB/sec. Testing with ftp uploading, the speed is 1.59 MB/sec. testing with command "copy ", actual function is prvCOPYCommand, the speed is very slow, checking the code, I modify the buffer to 32K byte, the speed get improved(about 300 KB/sec), check the log, the problem is we will see that writing stop for about 10 sec, then continue. please see below log.
Does anyone see this? What I can do to improve this hiccup? to improve the writing performance. Thanks in advance for any suggestion!
each line of log means write 32K byte data, the second data is total data have written.
56.549.595 [UDP CLI ] read byte this time lBytesToRead = 32768, read total byte, lBytesRead = 3997696
56.572.595 [UDP CLI ] read byte this time lBytesToRead = 32768, read total byte, lBytesRead = 4030464
56.594.596 [UDP CLI ] read byte this time lBytesToRead = 32768, read total byte, lBytesRead = 4063232
56.617.595 [UDP CLI ] read byte this time lBytesToRead = 32768, read total byte, lBytesRead = 4096000
//why here has 10 seconds delay???
66.641.627 [UDP CLI ] read byte this time lBytesToRead = 32768, read total byte, lBytesRead = 4128768
66.663.627 [UDP CLI ] read byte this time lBytesToRead = 32768, read total byte, lBytesRead = 4161536
below is the chart for overview of writting time interval