public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] usb storage transfer is very slow
@ 2005-08-29 15:11 Michal Kurgan
  2005-08-29 18:14 ` Neil Bothwick
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Michal Kurgan @ 2005-08-29 15:11 UTC (permalink / raw
  To: gentoo-user

Hello!
Recently i spotted that my usb flash memory work very slow, about 5kB/s on 
write. On internet search i discover that it's problem with new kernel 
(2.6.12) and "sync" mount option, that is now correctly(?) respected by fat 
filesystem.
This is my case, but i want to have sth like sync when using removable 
devices, is there any option to do this? I much prefer that i see that sth is 
copied, not only then when i will try unmount device (in this case i don't 
know if there are any problems, earlier with sync i saw transfer rate, and 
this is what i want)
-- 
Michal Kurgan
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] usb storage transfer is very slow
  2005-08-29 15:11 [gentoo-user] usb storage transfer is very slow Michal Kurgan
@ 2005-08-29 18:14 ` Neil Bothwick
  2005-08-29 19:30   ` Michal Kurgan
  2005-08-29 20:02 ` Alvin A ONeal Jr
  2005-08-30  6:11 ` Miroslav Flídr
  2 siblings, 1 reply; 10+ messages in thread
From: Neil Bothwick @ 2005-08-29 18:14 UTC (permalink / raw
  To: gentoo-user

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

On Mon, 29 Aug 2005 17:11:04 +0200, Michal Kurgan wrote:

> Recently i spotted that my usb flash memory work very slow, about 5kB/s
> on write. On internet search i discover that it's problem with new
> kernel (2.6.12) and "sync" mount option, that is now correctly(?)
> respected by fat filesystem.

Make sure you haven't enabled BLK_DEV_UB in your kernel.

-- 
Neil Bothwick

If a program is useless, it must be documented.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] usb storage transfer is very slow
  2005-08-29 18:14 ` Neil Bothwick
@ 2005-08-29 19:30   ` Michal Kurgan
  0 siblings, 0 replies; 10+ messages in thread
From: Michal Kurgan @ 2005-08-29 19:30 UTC (permalink / raw
  To: gentoo-user

On Monday 29 of August 2005 20:14, Neil Bothwick wrote:
> Make sure you haven't enabled BLK_DEV_UB in your kernel.
I am sure.
-- 
Michal Kurgan
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] usb storage transfer is very slow
  2005-08-29 15:11 [gentoo-user] usb storage transfer is very slow Michal Kurgan
  2005-08-29 18:14 ` Neil Bothwick
@ 2005-08-29 20:02 ` Alvin A ONeal Jr
  2005-08-29 21:03   ` Michal Kurgan
  2005-08-30  6:11 ` Miroslav Flídr
  2 siblings, 1 reply; 10+ messages in thread
From: Alvin A ONeal Jr @ 2005-08-29 20:02 UTC (permalink / raw
  To: gentoo-user

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

are you accessing it as /dev/sda or /dev/uba?

Ever since the new "usb-block device" option has been in the kernel I've 
noticed this as well. I don't believe it has anything to do with the 
sync option, but I have been known to be wrong.

I can't remember off the top of my head, but if you check the "help" in 
the kernel configuration (make menuconfig) it gives you a warning or 
tells you which option is better.

-- 
8^)
Laterz-
~Alvin
http://CoolAJ86.Havenite.net

---
Yeah you do!

[-- Attachment #2: coolaj86.vcf --]
[-- Type: text/x-vcard, Size: 323 bytes --]

begin:vcard
fn:Alvin A ONeal Jr
n:ONeal;Alvin
adr;dom:;;34 Fletcher Lane;Shelburne;VT;05482
email;internet:coolaj86@havenite.net
tel;work:1.802.877.2938
tel;home:1.802.985.5277
tel;cell:1.802.578.0599
note;quoted-printable:DoB: 19860616=0D=0A=
	
x-mozilla-html:FALSE
url:http://coolaj86.havenite.net
version:2.1
end:vcard


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] usb storage transfer is very slow
  2005-08-29 20:02 ` Alvin A ONeal Jr
@ 2005-08-29 21:03   ` Michal Kurgan
  2005-08-30  0:07     ` Neil Bothwick
  0 siblings, 1 reply; 10+ messages in thread
From: Michal Kurgan @ 2005-08-29 21:03 UTC (permalink / raw
  To: gentoo-user

On Monday 29 of August 2005 22:02, Alvin A ONeal Jr wrote:
> are you accessing it as /dev/sda or /dev/uba?
>
> Ever since the new "usb-block device" option has been in the kernel I've
> noticed this as well. I don't believe it has anything to do with the
> sync option, but I have been known to be wrong.
>
> I can't remember off the top of my head, but if you check the "help" in
> the kernel configuration (make menuconfig) it gives you a warning or
> tells you which option is better.

I use usb storage driver, with ehci and ohci support and scsi driver...
I don't use Low Performance USB Block Driver, i never use it.

i acces through "/dev/usb/usbdrive" hand made udev link :-), but this is only 
symlink to "sd?"

When i mount by hand without sync my flash work as usual but it start writing 
on umnount command, this is not what i want...

Also i use hald with kdemedia kioslave, by default it uses "sync" option.
-- 
Michal Kurgan
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] usb storage transfer is very slow
  2005-08-29 21:03   ` Michal Kurgan
@ 2005-08-30  0:07     ` Neil Bothwick
  0 siblings, 0 replies; 10+ messages in thread
From: Neil Bothwick @ 2005-08-30  0:07 UTC (permalink / raw
  To: gentoo-user

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

On Mon, 29 Aug 2005 23:03:37 +0200, Michal Kurgan wrote:

> When i mount by hand without sync my flash work as usual but it start
> writing on umnount command, this is not what i want...

I can confirm the same here, with gentoo-sources-2.6.12-r9.

Copying a 96MB file to a usb stick and then unmounting it takes just
under 2 minutes with async and over 48 minutes with sync.


-- 
Neil Bothwick

Compatible: Gracefully accepts erroneous data from any source.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] usb storage transfer is very slow
  2005-08-29 15:11 [gentoo-user] usb storage transfer is very slow Michal Kurgan
  2005-08-29 18:14 ` Neil Bothwick
  2005-08-29 20:02 ` Alvin A ONeal Jr
@ 2005-08-30  6:11 ` Miroslav Flídr
  2005-08-30 11:49   ` Michal Kurgan
  2 siblings, 1 reply; 10+ messages in thread
From: Miroslav Flídr @ 2005-08-30  6:11 UTC (permalink / raw
  To: gentoo-user

Michal Kurgan napsal(a):
> Recently i spotted that my usb flash memory work very slow, about 5kB/s on 
> write. On internet search i discover that it's problem with new kernel 
> (2.6.12) and "sync" mount option, that is now correctly(?) respected by fat 
> filesystem.
> This is my case, but i want to have sth like sync when using removable 
> devices, is there any option to do this? I much prefer that i see that sth is 
> copied, not only then when i will try unmount device (in this case i don't 
> know if there are any problems, earlier with sync i saw transfer rate, and 
> this is what i want)

This behaviour is caused by change in the vfat driver. It now respects 
the sync option and the slow speed is caused by frequent updating of the 
FAT table. Some info can be found here: 
http://readlist.com/lists/vger.kernel.org/linux-kernel/22/111748.html

The only solution seem to be to use the async option.

--
Miroslav Flídr



-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] usb storage transfer is very slow
  2005-08-30  6:11 ` Miroslav Flídr
@ 2005-08-30 11:49   ` Michal Kurgan
  2005-08-30 13:21     ` Miroslav Flídr
  0 siblings, 1 reply; 10+ messages in thread
From: Michal Kurgan @ 2005-08-30 11:49 UTC (permalink / raw
  To: gentoo-user

On Tuesday 30 of August 2005 08:11, Miroslav Flídr wrote:
> This behaviour is caused by change in the vfat driver. It now respects
> the sync option and the slow speed is caused by frequent updating of the
> FAT table. Some info can be found here:
> http://readlist.com/lists/vger.kernel.org/linux-kernel/22/111748.html

Exactly this is the problem... so sync every sector.
I have one question, how this work earlier? With sync i know when files where 
copied in realtime, not after the umount command (there is info that fat 
filesystem ignore sync option, then why it works differently with and 
without).

>
> The only solution seem to be to use the async option.

But this makes copy process to be done at umount, also i don't see then data 
copy rate so i even don't know if there are no problems.

Most suprising is that on gentoo we use hald, by default it uses "sync" 
option, as in my case. Whe developers made such big change and don't inform 
anyone about this. Yes , there are some info but only in bugzillas reports by 
users who spotted it.

So where will by default it will work flawless...
In my opinion current situation is quite dangerous, it can even destroy flash 
memory with fat fs (are there other fs widely used in portable hardware?), by 
constan overwrite of fat filetable.
> --
> Miroslav Flídr

-- 
Michal Kurgan
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] usb storage transfer is very slow
  2005-08-30 11:49   ` Michal Kurgan
@ 2005-08-30 13:21     ` Miroslav Flídr
  2005-08-30 20:11       ` Michal Kurgan
  0 siblings, 1 reply; 10+ messages in thread
From: Miroslav Flídr @ 2005-08-30 13:21 UTC (permalink / raw
  To: gentoo-user

Michal Kurgan napsal(a):
> Exactly this is the problem... so sync every sector.
> I have one question, how this work earlier? With sync i know when files where 
> copied in realtime, not after the umount command (there is info that fat 
> filesystem ignore sync option, then why it works differently with and 
> without).

IMHO the old behaviour was that it synchronized the files and only upon 
unmount the FAT table.

> Most suprising is that on gentoo we use hald, by default it uses "sync" 
> option, as in my case. Whe developers made such big change and don't inform 

I think all major distros so far use sync.

> anyone about this. Yes , there are some info but only in bugzillas reports by 
> users who spotted it.

Yes there is not many info about this problem. When I encountered the 
problem I lost many hours looking for the cause and solution of the problem.

> So where will by default it will work flawless...

I doubt that it will be changed in the near future :(.

--
Miroslav Flídr



-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] usb storage transfer is very slow
  2005-08-30 13:21     ` Miroslav Flídr
@ 2005-08-30 20:11       ` Michal Kurgan
  0 siblings, 0 replies; 10+ messages in thread
From: Michal Kurgan @ 2005-08-30 20:11 UTC (permalink / raw
  To: gentoo-user

On Tuesday 30 of August 2005 15:21, Miroslav Flídr wrote:
> Michal Kurgan napsal(a):
> > Exactly this is the problem... so sync every sector.
> > I have one question, how this work earlier? With sync i know when files
> > where copied in realtime, not after the umount command (there is info
> > that fat filesystem ignore sync option, then why it works differently
> > with and without).
>
> IMHO the old behaviour was that it synchronized the files and only upon
> unmount the FAT table.

Then why i saw difference?
But better not to try know too much...

> > So where will by default it will work flawless...
>
> I doubt that it will be changed in the near future :(.

I hope not.

> --
> Miroslav Flídr
-- 
Michal Kurgan
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-08-30 20:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-29 15:11 [gentoo-user] usb storage transfer is very slow Michal Kurgan
2005-08-29 18:14 ` Neil Bothwick
2005-08-29 19:30   ` Michal Kurgan
2005-08-29 20:02 ` Alvin A ONeal Jr
2005-08-29 21:03   ` Michal Kurgan
2005-08-30  0:07     ` Neil Bothwick
2005-08-30  6:11 ` Miroslav Flídr
2005-08-30 11:49   ` Michal Kurgan
2005-08-30 13:21     ` Miroslav Flídr
2005-08-30 20:11       ` Michal Kurgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox