From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1DvYcE-0004QB-4V for garchives@archives.gentoo.org; Thu, 21 Jul 2005 10:49:22 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j6LAlNTb004747; Thu, 21 Jul 2005 10:47:23 GMT Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j6LAlMP2020412 for ; Thu, 21 Jul 2005 10:47:23 GMT Received: (qmail invoked by alias); 21 Jul 2005 10:47:38 -0000 Received: from p54824115.dip.t-dialin.net (EHLO desktux.sierra.lan) [84.130.65.21] by mail.gmx.net (mp007) with SMTP; 21 Jul 2005 12:47:38 +0200 X-Authenticated: #2843394 Subject: Re: [gentoo-user-de] langsames USB From: Matthias Nimscholz To: gentoo-user-de@lists.gentoo.org In-Reply-To: <42DBACED.5030406@atomix.de> References: <1121602329.10964.2.camel@p54B68165.dip0.t-ipconnect.de> <20050718115713.4ce04ded.hilse@web.de> <1121683910.11070.6.camel@p54B6AC23.dip0.t-ipconnect.de> <20050718140826.4cad9b4a.hilse@web.de> <1121692701.11070.19.camel@p54B6AC23.dip0.t-ipconnect.de> <42DBACED.5030406@atomix.de> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-f4J/ZB5IYvaTJjWVWqU8" Date: Thu, 21 Jul 2005 12:47:37 +0200 Message-Id: <1121942857.12631.8.camel@desktux.sierra.lan> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user-de@gentoo.org Reply-to: gentoo-user-de@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 X-Y-GMX-Trusted: 0 X-Archives-Salt: 9f462bc3-1b7f-4a91-ad60-b70a7f832ce1 X-Archives-Hash: d695e69b61cf01f81cb9a356f2ceb877 --=-f4J/ZB5IYvaTJjWVWqU8 Content-Type: multipart/alternative; boundary="=-mdZ4l+3jyHINrquxUmK+" --=-mdZ4l+3jyHINrquxUmK+ Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am Montag, den 18.07.2005, 15:21 +0200 schrieb Jens Gassmann: > Mit der Kernelversion 2.6.12-r4 habe ich das Problem auch, die -r5=20 > konnte ich nicht nicht testen, Guten Tag zusammen, vor kurzem bin ich mit meinem USB-Stick ebenfalls ausgebremst worden. Im Gentoo-Forum beschuldigten einige aber nicht den Kernel, sondern HAL. http://forums.gentoo.org/viewtopic-t-356789-highlight-slow+usb.html Bei mir was das des Pudels Kern (statt 5h f=FCr 600MB nur noch wenige Minuten) Gr=FC=DFe Matthias Zitat: USB 2.0 will slow down extremely when writing to an (USB) device with vfat if you mount it with the "sync"-option. Unfortunately HAL exactly did this if the device was smaller than 2 GB. So I had to edit the file /usr/share/hal/fdi/90defaultpolicy/storage-policy.fdi and made this changes:=20 =20 =20 =20 =20 false=20 true=20 =20 =20 =20 false=20 true=20 =20 =20 Code: =20 =20 =20 =20 =20 false=20 true=20 =20 =20 =20 false=20 true=20 =20 =20 =20 Now I can transfer with much higher speeds (~ 4 MB/s). The only thing is that it takes a while to umount the device. --=-mdZ4l+3jyHINrquxUmK+ Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Am Montag, den 18.07.2005, 15:21 +0200 schrieb Jens Gassmann:
Mit der Kernelversion 2.6.12-r4 habe ich das Proble=
m auch, die -r5 
konnte ich nicht nicht testen,

Guten Tag zusammen,

vor kurzem bin ich mit meinem USB-Stick ebenfalls ausgebremst worden.
Im Gentoo-Forum beschuldigten einige aber nicht den Kernel, sondern HAL.
http://forums.gentoo.org/viewtopic-t-356789-highlight-slow+usb.html

Bei mir was das des Pudels Kern (statt 5h für 600MB nur noch wenige Mi= nuten)

Grüße

Matthias

Zitat:
USB 2.0 will slow down extremely when writing to an (USB) device with vfat if you mount it with the "sync"-option. Unfo= rtunately HAL exactly did this if the device was smaller than 2 GB. So I ha= d to edit the file /usr/share/hal/fdi/90defaultpolicy/storage-policy.fdi an= d made this changes:

<!-- Use noatime and sync options for all hotpluggable or removable volu= mes smaller than 2GB -->
          <match key=3D"volume.size" = compare_lt=3D"2147483648">
            <matc= h key=3D"@block.storage_device:storage.hotpluggable" bool=3D"= ;true">
                     = ;                     &nb= sp;                 <!-- Was tru= e before -->
              <merge key=3D"volu= me.policy.mount_option.sync" type=3D"bool">false</merg= e>
              <merge key=3D"volu= me.policy.mount_option.noatime" type=3D"bool">true</me= rge>
            </match>
            <match key=3D"@block.stor= age_device:storage.removable" bool=3D"true">
                     = ;                     &nb= sp;                 <!-- Was tru= e before -->
              <merge key=3D"volu= me.policy.mount_option.sync" type=3D"bool">false</merg= e>
              <merge key=3D"volu= me.policy.mount_option.noatime" type=3D"bool">true</me= rge>
            </match>
          </match>
Code:

          <!-- Use noatime = and sync options for all hotpluggable or removable
               volumes smaller than= 2GB -->
          <match key=3D"volume.size" = compare_lt=3D"2147483648">
            <match key=3D"@block.stor= age_device:storage.hotpluggable" bool=3D"true">
                     = ;                     &nb= sp;                 <!-- Was tru= e before -->
              <merge key=3D"volu= me.policy.mount_option.sync" type=3D"bool">false</merg= e>
              <merge key=3D"volu= me.policy.mount_option.noatime" type=3D"bool">true</me= rge>
            </match>
            <match key=3D"@block.stor= age_device:storage.removable" bool=3D"true">
                     = ;                     &nb= sp;                 <!-- Was tru= e before -->
              <merge key=3D"volu= me.policy.mount_option.sync" type=3D"bool">false</merg= e>
              <merge key=3D"volu= me.policy.mount_option.noatime" type=3D"bool">true</me= rge>
            </match>
          </match>



Now I can transfer with much higher speeds (~ 4 MB/s). The only thing is th= at it takes a while to umount the device. --=-mdZ4l+3jyHINrquxUmK+-- --=-f4J/ZB5IYvaTJjWVWqU8 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBC331J/rd0g890beYRAi/2AJ9BBfrxehc6PKj0NeXPcy8HqdzLKACaAgy+ AW/fbOIoYZS1C3YEA82WLIc= =QZ2H -----END PGP SIGNATURE----- --=-f4J/ZB5IYvaTJjWVWqU8-- -- gentoo-user-de@gentoo.org mailing list