Home/Support/Support Forum/FLASH0 Write Time
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

FLASH0 Write Time

0 votes
I have a CGI that needs to save POST data to the FSù

I'm noticing that it takes a long time to save to FLASH0
and that the time increase while the FS increase in volume
so when empty

when the FS is empty saving 70Kb takes 4/5 seconds

when the FS contains about 1MB of data saving the same 70Kb takes 90 seconds

and so on

Is this behavior expected or not?

Code:
char xml_data[70000] = {}; int fd = open(cgi_file_url, O_RDWR | O_CREAT ); if(fd > 0) { // Write data to the file int bytesWritten = write(fd , xml_data, strlen(xml_data)); close(fd); }
asked Oct 31, 2013 in NET+OS by gavello New to the Community (16 points)

Please log in or register to answer this question.

...