public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: DervishD <lkml@dervishd.net>
To: Brice Goglin <Brice.Goglin@ens-lyon.org>
Cc: Linux-kernel <linux-kernel@vger.kernel.org>
Subject: [SOLVED] USB Storage speed regression since 2.6.12
Date: Thu, 1 Sep 2005 18:23:53 +0200	[thread overview]
Message-ID: <20050901162353.GA67@DervishD> (raw)
In-Reply-To: <4316EAD1.70300@ens-lyon.org>

    Hi Brice, again :)

 * Brice Goglin <Brice.Goglin@ens-lyon.org> dixit:
> Are you mounting this storage with vfat and 'sync' option ?
> IIRC, sync support for vfat was added around 2.6.12, making
> write way slower since it's now really synchron.

    That seems to be the problem. Mounting without 'sync' the speed
of transfers is almost infinite ;) but when doing a manual sync it
gives the usual speed of about 800Kb/sec (a little bit less, in
fact...). I've took a look at the ChangeLog for 2.6.12 and I cannot
find any reference to vfat and sync options, but the patch contains a
couple of references to MS_SYNCHRONIZE (or something like that), so
maybe was then when the "-o sync" honouring was added.

    I don't feel comfortable with an vfat mounted asynchronously, but
the new implementation seems to rewrite the fat on every single write
(that's the reason of the slowdown, probably), and since I'm not sure
about the quality of the flash memory present in the device, it is
very probable that it would wear the first sectors :( So I have to
mount it 'async' under 2.6.13; I didn't have to do that on older
kernels because the 'sync' was not honoured by vfat, so the fat was
updated asynchronously but the data were written synchronously (not
cached, at least).

    Thanks a lot for your help :))

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...

  parent reply	other threads:[~2005-09-01 16:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-01 11:36 USB Storage speed regression since 2.6.12 DervishD
2005-09-01 11:49 ` Brice Goglin
2005-09-01 14:49   ` DervishD
2005-09-01 16:23   ` DervishD [this message]
2005-09-01 16:31     ` [SOLVED] " Mark Lord
2005-09-01 17:29       ` DervishD
2005-09-01 12:29 ` linux-os (Dick Johnson)
2005-09-01 20:12 ` Bill Davidsen
2005-09-01 21:52   ` Andrew Morton

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=20050901162353.GA67@DervishD \
    --to=lkml@dervishd.net \
    --cc=Brice.Goglin@ens-lyon.org \
    --cc=linux-kernel@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