From: Stefan <gentoopower@yahoo.de>
To: Erik Slagter <erik@slagter.name>
Cc: linux-ide@vger.kernel.org
Subject: Re: USB-Storage, slow speed with sync option
Date: Wed, 14 Sep 2005 12:43:51 +0200 [thread overview]
Message-ID: <4327FEE7.7020707@yahoo.de> (raw)
In-Reply-To: <1126694013.4248.49.camel@localhost.localdomain>
Erik Slagter wrote:
>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?
>
>
Don't ask me:-)
I used to mount without sync option, but I switched to hal + dbus now
and with gentoo it automatically sets sync option in fstab :-(
Your explanation makes sense and I kind of had the same thought at
first, but also was unsure since somebody must have put it there,
therefore I'm going to check how to remove sync from those scripts that
set the mountpoint in fstab and discuss with the gentoo dev who set this up.
Thanks for your help Erik
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
next prev parent reply other threads:[~2005-09-14 10:45 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
2005-09-14 10:43 ` Stefan [this message]
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=4327FEE7.7020707@yahoo.de \
--to=gentoopower@yahoo.de \
--cc=erik@slagter.name \
--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).