Re: [gentoo-user] usb storage transfer is very slow
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
Re: [gentoo-user] usb storage transfer is very slow
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
Re: [gentoo-user] usb storage transfer is very slow
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
[gentoo-user] usb storage transfer is very slow
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
Re: [gentoo-user] usb storage transfer is very slow
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. pgpvt1nXNcCLB.pgp Description: PGP signature
Re: [gentoo-user] usb storage transfer is very slow
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
Re: [gentoo-user] usb storage transfer is very slow
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! begin:vcard fn:Alvin A ONeal Jr n:ONeal;Alvin adr;dom:;;34 Fletcher Lane;Shelburne;VT;05482 email;internet:[EMAIL PROTECTED] 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
Re: [gentoo-user] usb storage transfer is very slow
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
Re: [gentoo-user] usb storage transfer is very slow
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. pgpo2t8kL6oUr.pgp Description: PGP signature