linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Erik Slagter <erik@slagter.name>
To: Stefan <gentoopower@yahoo.de>
Cc: linux-ide@vger.kernel.org
Subject: Re: USB-Storage, slow speed with sync option
Date: Wed, 14 Sep 2005 12:33:33 +0200	[thread overview]
Message-ID: <1126694013.4248.49.camel@localhost.localdomain> (raw)
In-Reply-To: <4327FB2C.5000207@yahoo.de>

[-- Attachment #1: Type: text/plain, Size: 984 bytes --]

On Wed, 2005-09-14 at 12:27 +0200, Stefan wrote:
> >>When I copy files to my USB 2.0 Stick , my transferspeed are horrible in
> >>case I mount the device with sync option, the rates are around 50KB/s,
> >>doesn't really matter how big the files are.
> >>If I don't mount with option sync, then the speeds are as expected a
> >>couple of MB/s
> >Now do a complete benchmark and type "sync" after the cp command.

> I already did that:-)
> 
> With sync option, a test directory takes about 15min to copy.
> Without sync option about 20s and running command sync afterwards takes
> about 5-10s.
> 
> So roughly 15min compared to 30s

The problem is that with the "sync" option the metadata on the stick has
be written on every block write. That is not only terribly slow
(especially on a flash device), it also wears out certain sectors.
Compare it to using floppy's on a MS/DOS computer.

Why would you _ever_ want to use the sync mount option on a flash
device?

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 2115 bytes --]

  reply	other threads:[~2005-09-14 10:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-14  0:53 USB-Storage, slow speed with sync option Stefan
2005-09-14  9:31 ` Erik Slagter
2005-09-14 10:27   ` Stefan
2005-09-14 10:33     ` Erik Slagter [this message]
2005-09-14 10:43       ` Stefan
2005-09-14 12:45         ` Lionel Bouton
2005-09-14 12:51           ` Erik Slagter
     [not found]             ` <87f94c37050914055852ff4789@mail.gmail.com>
2005-09-14 13:04               ` Erik Slagter
2005-09-14 15:26             ` Mark Lord
2005-09-14 15:38               ` Lionel Bouton
2005-09-14 21:38                 ` Mark Lord
2005-09-14 13:37           ` Stefan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1126694013.4248.49.camel@localhost.localdomain \
    --to=erik@slagter.name \
    --cc=gentoopower@yahoo.de \
    --cc=linux-ide@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).