After porting our application from Linux 2.4.26 to Linux 2.6.10, I am seeing it taking 35 seconds to write to a file when using NFS.
Here is the code I am using to write to the file:
fprintf(fileHandle, "%s\n", msg_p); fflush(fileHandle);
If I put a printf statement right after this code, I see it immediately on the screen.
When I run out of flash with Linux 2.6.10, there is no delay in writing to the file. When using NFS with Linux 2.4.26, there is no delay either.
Is there anything in 2.6.10 that causes a delay in writing to a file with NFS?