On Tue, 23 Nov 2010 09:04:54 -0600 Paul Hartman wrote: > On Mon, Nov 22, 2010 at 9:52 PM, David Relson > <rel...@osagesoftware.com> wrote: > > I'd like to reduce the time delay between a command or program's > > writing to a file on a flash drive and when ext2 actually writes > > the data to the drive. How can I do this? > > In addition to Florian's tip, you can also remove the delay completely > by mounting with sync option. This may negatively impact performance. > > Alternatively you can leave it caching as normal and then issue the > "sync" command when you're done doing your USB operations and it'll > flush remaining data to the flash drive immediately. (I think > unmount/eject will do this too.) That's what I usually do.
Sync really, really slows down writes, at least for a solid state drive. I'm looking for a way to avoid that slowdown without the dangers of a user yanking a flash drive before the cache is completely written out.