Steven email: sjh@svana.org
web: https://svana.org/sjh Other online diaries:
Aaron Broughton, Links:
Linux Weekly News, Canberra Weather: forecast, radar.
Categories:
|
Tue, 09 Jan 2007
The sync option to mount does not mix well with vfat and memory cards - 16:41
After banging my head against this for a while I googled for details about bad usb memory performance on Linux. I came across a lkml thread from may 2005 that seems to have helped enough. Apparently the performance of USB memory with the sync option and vfat filesystems is really pathetic, this is largely due to the repeated hammering of 2 blocks with every sync. Alan Cox has some good and salient points in the discussion (to be expected from such a guru I guess), notably he points out most quality flash memory is very unlikely to be too adversely affected in a short time by using sync and he has a link to some details of life time guarantees from some companies for their flash products. Anyway I disabled sync on the desktop image and my own desktop and disabled it on my laptop, all of a sudden I get 2MB/s or better depending on the memory stick I am using. Neato. Interestingly Alan suggests the documentation for mount is generated form the kernel docs somehow and should be up to date and thus not continue to suggest that vfat filesystems ignore the sync flag. It is interesting to see that my Debian unstable copy of that man page on my laptop today still suggests that vfat ignores the sync option. At a glance I can not see any mention of this on the Debian bugs page for mount. |