Date: Sun, 7 Jan 2018 18:03:28 -0600 From: Jon Brawn <jon@brawn.org> To: blubee blubeeme <gurenchan@gmail.com> Cc: Warner Losh <imp@bsdimp.com>, "O'Connor, Daniel" <darius@dons.net.au>, gljennjohn@gmail.com, FreeBSD current <freebsd-current@freebsd.org> Subject: Re: USB stack Message-ID: <6ADAB19C-3EC6-476D-9B89-3B29EF9EC087@brawn.org> In-Reply-To: <D9F7EB72-71CF-463F-B4AE-C3EFCB453721@brawn.org> References: <CALM2mEmZFP9dGOivJknrCaaa-K1cSxNTTEV%2B8XCMpoZp-xcbqQ@mail.gmail.com> <1FD1FE97-D25C-4BAC-A3E0-F22509FB0C2B@dons.net.au> <CALM2mE=7cKcPzJ=-bVvmHez2inrAqJsuMaW%2BUZZtXesB3pzDtQ@mail.gmail.com> <6A4FF1B9-D98B-4E73-9E3E-E951749E0C21@dons.net.au> <20180104092349.2821f9f9@ernst.home> <18F01F2F-8907-4CF8-A80A-B6B5C16593B7@dons.net.au> <CALM2mE=uFK0BVqxFcrU_K%2BN%2BwYnu9VTewACeNqPTGYFEv93g4g@mail.gmail.com> <CANCZdfqna3dy-29g_fB3-aw71Hps2ph_%2BNMBUW9z7nhMBVztjg@mail.gmail.com> <CALM2mEmgn4FmBLtW4SaGEEqoF6AsFR_y1PUMTZ80_2GpDx1SdQ@mail.gmail.com> <D9F7EB72-71CF-463F-B4AE-C3EFCB453721@brawn.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_1A958660-2232-437F-B619-349CEB870BAF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jan 7, 2018, at 5:44 PM, Jon Brawn <jon@brawn.org> wrote: >=20 >=20 >> On Jan 6, 2018, at 10:18 PM, blubee blubeeme <gurenchan@gmail.com> = wrote: >>=20 >> On Sun, Jan 7, 2018 at 12:11 PM, Warner Losh <imp@bsdimp.com> wrote: >>=20 >>>=20 >>>=20 >>> On Sat, Jan 6, 2018 at 8:56 PM, blubee blubeeme = <gurenchan@gmail.com> >>> wrote: >>>=20 >>>> I ask does FreeBSD usb stack actually implements USB spec 2.0 or = greater >>>> and the topic gets derailed...? >>>>=20 >>>=20 >>> Yes, it does. >>>=20 >>>=20 >>>> Are you guys saying that 7-8MB/s is USB speeds? >>>>=20 >>>=20 >>> I've gotten up to 24MB/s for maybe a decade. That's not possible = with USB >>> 1.x. More recently, I've maxed out the writes on a USB stick at = about >>> 75MB/s (the fastest it will do), which isn't possible with USB = 2.0... I've >>> not tried USB3 with an SSD that can do more.... >>>=20 >>> Warner >>>=20 >>>=20 >>>> On Thu, Jan 4, 2018 at 6:44 PM, O'Connor, Daniel = <darius@dons.net.au> >>>> wrote: >>>>=20 >>>>>=20 >>>>>=20 >>>>>> On 4 Jan 2018, at 09:23, Gary Jennejohn <gljennjohn@gmail.com> = wrote: >>>>>>> What is an "LG v30"? >>>>>>>=20 >>>>>> It's a smartphone from LG and only supports USB2 speed. The = reported >>>>>> transfer rate is no big surprise. >>>>>=20 >>>>> OK thanks. >>>>>=20 >>>>> -- >>>>> Daniel O'Connor >>>>> "The nice thing about standards is that there >>>>> are so many of them to choose from." >>>>> -- Andrew Tanenbaum >>>>> GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F = CE8C >>>>>=20 >>>>>=20 >>>> _______________________________________________ >>>> freebsd-current@freebsd.org mailing list >>>> https://lists.freebsd.org/mailman/listinfo/freebsd-current >>>> To unsubscribe, send any mail to = "freebsd-current-unsubscribe@freebsd.org >>>> " >>>>=20 >>>=20 >>> I just connected a Transcend StorageJet 1TB hdd not a mobile phone >> ------------------------------------------------------------------- >> Jan 7 11:56:56 blubee kernel: umass0 on uhub0 >> Jan 7 11:56:56 blubee kernel: umass0: <StoreJet Transcend StoreJet >> Transcend, class 0/0, rev 3.00/80.00, addr 4> on usbus0 >> Jan 7 11:56:56 blubee kernel: umass0: SCSI over Bulk-Only; quirks =3D= 0x0100 >> Jan 7 11:56:56 blubee kernel: umass0:3:0: Attached to scbus3 >> Jan 7 11:56:56 blubee kernel: da0 at umass-sim0 bus 0 scbus3 target = 0 lun 0 >> Jan 7 11:56:56 blubee kernel: da0: <StoreJet Transcend 0> Fixed = Direct >> Access SPC-4 SCSI device >> Jan 7 11:56:56 blubee kernel: da0: Serial Number W9328YZN >> Jan 7 11:56:56 blubee kernel: da0: 400.000MB/s transfers >> Jan 7 11:56:56 blubee kernel: da0: 953869MB (1953525168 512 byte = sectors) >> Jan 7 11:56:56 blubee kernel: da0: quirks=3D0x2<NO_6_BYTE> >> Jan 7 12:06:08 blubee kernel: lock order reversal: >> Jan 7 12:06:08 blubee kernel: 1st 0xfffffe07c26336c0 bufwait = (bufwait) @ >> /usr/src/sys/vm/vm_pager.c:374 >> Jan 7 12:06:08 blubee kernel: 2nd 0xfffff80148c425f0 zfs (zfs) @ >> /usr/src/sys/dev/md/md.c:952 >> Jan 7 12:06:08 blubee kernel: stack backtrace: >> Jan 7 12:06:08 blubee kernel: #0 0xffffffff80acfa03 at >> witness_debugger+0x73 >> Jan 7 12:06:08 blubee kernel: #1 0xffffffff80acf882 at >> witness_checkorder+0xe02 >> Jan 7 12:06:08 blubee kernel: #2 0xffffffff80a41b8e at >> lockmgr_lock_fast_path+0x1ae >> Jan 7 12:06:08 blubee kernel: #3 0xffffffff81094309 at = VOP_LOCK1_APV+0xd9 >> Jan 7 12:06:08 blubee kernel: #4 0xffffffff80b4ac36 at _vn_lock+0x66 >> Jan 7 12:06:08 blubee kernel: #5 0xffffffff80611d32 at = mdstart_vnode+0x442 >> Jan 7 12:06:08 blubee kernel: #6 0xffffffff806102ce at = md_kthread+0x1fe >> Jan 7 12:06:08 blubee kernel: #7 0xffffffff80a2d654 at = fork_exit+0x84 >> Jan 7 12:06:08 blubee kernel: #8 0xffffffff80ef5e0e at = fork_trampoline+0xe >> Jan 7 12:06:15 blubee kernel: lock order reversal: >> Jan 7 12:06:15 blubee kernel: 1st 0xfffffe07c41d5dc0 bufwait = (bufwait) @ >> /usr/src/sys/kern/vfs_bio.c:3562 >> Jan 7 12:06:15 blubee kernel: 2nd 0xfffff8002bb31a00 dirhash = (dirhash) @ >> /usr/src/sys/ufs/ufs/ufs_dirhash.c:281 >> Jan 7 12:06:15 blubee kernel: stack backtrace: >> Jan 7 12:06:15 blubee kernel: #0 0xffffffff80acfa03 at >> witness_debugger+0x73 >> Jan 7 12:06:15 blubee kernel: #1 0xffffffff80acf882 at >> witness_checkorder+0xe02 >> Jan 7 12:06:15 blubee kernel: #2 0xffffffff80a748a8 at = _sx_xlock+0x68 >> Jan 7 12:06:15 blubee kernel: #3 0xffffffff80d6a28d at = ufsdirhash_add+0x3d >> Jan 7 12:06:15 blubee kernel: #4 0xffffffff80d6d119 at = ufs_direnter+0x459 >> Jan 7 12:06:15 blubee kernel: #5 0xffffffff80d76313 at = ufs_makeinode+0x613 >> Jan 7 12:06:15 blubee kernel: #6 0xffffffff80d71ff4 at = ufs_create+0x34 >> Jan 7 12:06:15 blubee kernel: #7 0xffffffff810919e3 at = VOP_CREATE_APV+0xd3 >> Jan 7 12:06:15 blubee kernel: #8 0xffffffff80b4a53d at = vn_open_cred+0x2ad >> Jan 7 12:06:15 blubee kernel: #9 0xffffffff80b42e92 at = kern_openat+0x212 >> Jan 7 12:06:15 blubee kernel: #10 0xffffffff80f16d2b at = amd64_syscall+0x79b >> Jan 7 12:06:15 blubee kernel: #11 0xffffffff80ef5b7b at = Xfast_syscall+0xfb >>=20 >>=20 >> Is the slow transfers user error? >=20 > Wotcha! >=20 > I don=E2=80=99t see any read or write performance figures anywhere? = Also, is this CURRENT? If so, aren=E2=80=99t all the debug / warning = features that are turned on by default in CURRENT at the moment going to = have an effect on throughput? Especially if you=E2=80=99re writing = through a filesystem where directory and file accesses will each require = a lock to be taken, if only for a short while? If you want to get closer = to the true USB speed of the device, stop mounting it and copying files = to the filesystem, but instead just dd data onto and off of the device = directly, and measure how fast that goes. Remember to backup your data = from the card first=E2=80=A6 >=20 > Jon. >=20 >=20 Also, is the SD card physically inside the phone, and you are using a = USB cord to connect the phone to the FreeBSD computer by any chance? Jon --Apple-Mail=_1A958660-2232-437F-B619-349CEB870BAF Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIILEzCCBSUw ggQNoAMCAQICECQcc6QQWc3Um5HgAnmjhBYwDQYJKoZIhvcNAQELBQAwgZcxCzAJBgNVBAYTAkdC MRswGQYDVQQIExJHcmVhdGVyIE1hbmNoZXN0ZXIxEDAOBgNVBAcTB1NhbGZvcmQxGjAYBgNVBAoT EUNPTU9ETyBDQSBMaW1pdGVkMT0wOwYDVQQDEzRDT01PRE8gUlNBIENsaWVudCBBdXRoZW50aWNh dGlvbiBhbmQgU2VjdXJlIEVtYWlsIENBMB4XDTE3MTAyODAwMDAwMFoXDTE4MTAyODIzNTk1OVow HjEcMBoGCSqGSIb3DQEJARYNam9uQGJyYXduLm9yZzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC AQoCggEBALEscuT73gkjXEfkaQU3QXOOIDFilHr9RV/FKPk+ZO3wyXpoChqRW+anE+kKBLSCsmoX 6HnhAmcq3j9umj5jIYwpD84m26XbWQK+uo42GZ3cAF12VvO0g/toUvI+nJcxiD39APWowPKQ4Nae 4FN4hLOcwd2zyF3LiJgq4aXXcBQxl2s1JRCb7STFl5qpp73JVbFp1MkABmESyzI6KE0LLH3hHICU d2m+Omg6L8T+RgsTEKmgTvw1hYD04ms9ttji/viI8LtR3V9p9DDGH0iSCF56kPo4WfsbfGVBs1km tw8uvB6OVNGiD0q05kR/GI4jGiMLa4UhlCC0VsYfx7ZyGEUCAwEAAaOCAeMwggHfMB8GA1UdIwQY MBaAFIKvbIz4xf6WYXzoHz0rcUhexIvAMB0GA1UdDgQWBBRYtBFf7BnRYLxKWDc5DiI35q5WVzAO BgNVHQ8BAf8EBAMCBa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YJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xODAx MDgwMDAzMjlaMCMGCSqGSIb3DQEJBDEWBBQdnmBV7WyET6lWwg/4xDulLW6P5zCBvQYJKwYBBAGC NxAEMYGvMIGsMIGXMQswCQYDVQQGEwJHQjEbMBkGA1UECBMSR3JlYXRlciBNYW5jaGVzdGVyMRAw DgYDVQQHEwdTYWxmb3JkMRowGAYDVQQKExFDT01PRE8gQ0EgTGltaXRlZDE9MDsGA1UEAxM0Q09N T0RPIFJTQSBDbGllbnQgQXV0aGVudGljYXRpb24gYW5kIFNlY3VyZSBFbWFpbCBDQQIQJBxzpBBZ zdSbkeACeaOEFjCBvwYLKoZIhvcNAQkQAgsxga+ggawwgZcxCzAJBgNVBAYTAkdCMRswGQYDVQQI ExJHcmVhdGVyIE1hbmNoZXN0ZXIxEDAOBgNVBAcTB1NhbGZvcmQxGjAYBgNVBAoTEUNPTU9ETyBD QSBMaW1pdGVkMT0wOwYDVQQDEzRDT01PRE8gUlNBIENsaWVudCBBdXRoZW50aWNhdGlvbiBhbmQg U2VjdXJlIEVtYWlsIENBAhAkHHOkEFnN1JuR4AJ5o4QWMA0GCSqGSIb3DQEBAQUABIIBAJF22fkk g5F3zPXg+d+u4O7kkyx2hicbOx2ZlRJJeYBPmxwHvPQo5K2SE8HZ2oqqfnp5UmirJBvqqjEk/D2G UMZWRty+Daui5XcYvox4iNqTgjwIP6IzN/zRbtx2xXFh3sObCE+Fnqa+poRIg8Kt9L6ip3cV7YpL T1aec+gH+RA2RyhHHaea0iqW6u27FFwIq7Atibu6/qIm4bLITd0q7yaa83ws9rT/8UlkqFbSJDPQ /J/FCPe4Ecokweq5bkzVikRHclOLrzkJf0Pb/0Qul7Kp+em/SD+oBfYBrljP7BmR+68QnXn8htDE 8DqhW1GumYc6X8wV/yVi0fTfvoZ5LxIAAAAAAAA= --Apple-Mail=_1A958660-2232-437F-B619-349CEB870BAF--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6ADAB19C-3EC6-476D-9B89-3B29EF9EC087>