2 ms·
Semantically it's the same, but maybe it is somewhat optimized? Testing right now... Edit: indeed it's different, this is the result: ... Write in 219
by antirez 17y ago
Semantically it's the same, but maybe it is somewhat optimized? Testing right now...
Edit: indeed it's different, this is the result:
...
Write in 219 microseconds
Write in 253 microseconds
Write in 264 microseconds
Write in 271 microseconds
Write in 246 microseconds
...
250 us instead of 13, but no big stops. So much better indeed... Even summing the times, every 10 writes this take 2500 us compared to 40000 us of fsync().
Definitely an improvement.
p.s. all this, in ext4 FS.
- pquerna 17y agoits not the same on filesystems like ext3 with ordered data mode (the default). fsync on those kind of filesystems will flush everything, not just a single file, though I believe there has been some more recent work in 2.6 to improve this behavior.
- jedbrown 17y ago> recent work in 2.6 So, since 2003?