Flash memory drives are know to be slow, but30 secs does sound like a long time.
Are you reading files, or doing directory listings, or walk through directory trees before calling sync()? If so, that maybe the cause of this long sync() time.
Most (all?) unix/linux filesystems update the the access times for files and directories. This means when you are reading a file or a directory (like 'ls' does), this causes writing access times to the meta-data of the filesystem.
If this causes you long sync() times, you can can solve it by mounting the flash drive with de "noatime" mount option to disable this behaviour. Or use vfat.
Last edited by Hko; 01-18-2008 at 10:51 AM.
|