Re: [gentoo-user] usb write delay

2010-11-26 Thread David Relson
On Tue, 23 Nov 2010 09:04:54 -0600
Paul Hartman wrote:

> On Mon, Nov 22, 2010 at 9:52 PM, David Relson
>  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.




Re: [gentoo-user] usb write delay

2010-11-26 Thread David Relson
On Tue, 23 Nov 2010 07:31:48 +0100
Florian Philipp wrote:

> Am 23.11.2010 04:52, schrieb David Relson:
> > 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?
> > 
> 
> Mount with the option commit=x where x is a time in seconds. 0 means
> default (=5).
> 
> Hope this helps,
> Florian Philipp
> 

It doesn't work for my USB memory stick which has the default
filesystem, i.e. vfat

According to mount's man page, commit=n is for ext3.



Re: [gentoo-user] usb write delay

2010-11-23 Thread Paul Hartman
On Mon, Nov 22, 2010 at 9:52 PM, David Relson  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.



Re: [gentoo-user] usb write delay

2010-11-22 Thread Florian Philipp
Am 23.11.2010 04:52, schrieb David Relson:
> 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?
> 

Mount with the option commit=x where x is a time in seconds. 0 means
default (=5).

Hope this helps,
Florian Philipp



signature.asc
Description: OpenPGP digital signature