gerard / ext4fuse

EXT4 implementation for FUSE
GNU General Public License v2.0
895 stars 109 forks source link

Slow performance with Ext4 FS with external USB drive - FreeBSD 10.3-RELEASE i386 #37

Open lazarus477 opened 8 years ago

lazarus477 commented 8 years ago

Greetings!

Here is my issue

OS: FreeBSD 10.3-RELEASE Architecture: i386 Kernel: generic / not custom ext4fuse: Version: ext4fuse-0.1.3 ext4fuse source: Binary: pkg install fusefs-ext4fuse-0.1.3,1 Filesystem being mounted (src): Linux EXT4 Host filesystem (dest): ZFS Actual transfer speed attained: 1.28MB/s

Here is the performance of the USB device when bypasing ext4fuse:

dd if=/dev/da0 of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes transferred in 34.719595 secs (30926105 bytes/sec)

Device da0 is the USB storage device in question.

For me the current workaround will have to be to copy over a networked connection.

Note! Copying files from this drive over a networked connection gives expected performance. So far tried on a 100 Mbit link and that gives 10 MB/s transfer speed between this disk enclosure and the destination host described above.

Just wanted to report the issue,

Here follows output from dmesg produced while connecting the USB device:

ugen4.2: <Generic> at usbus4
umass0: <Generic External, class 0/0, rev 2.00/2.12, addr 2> on usbus4
umass0:  SCSI over Bulk-Only; quirks = 0x4000
umass0:7:0:-1: Attached to scbus7
da0 at umass-sim0 bus 0 scbus7 target 0 lun 0
da0: <Generic External 2.12> Fixed Direct Access SPC-2 SCSI device
da0: Serial Number 4C3630484451504720202020
da0: 40.000MB/s transfers
da0: 286188MB (586114704 512 byte sectors)
da0: quirks=0x2<NO_6_BYTE>
fuse-freebsd: version 0.4.4, FUSE ABI 7.8
ugen4.2: <Generic> at usbus4 (disconnected)
umass0: at uhub3, port 5, addr 2 (disconnected)
da0 at umass-sim0 bus 0 scbus7 target 0 lun 0
da0: <Generic External 2.12> s/n 4C3630484451504720202020 detached
(da0:umass-sim0:0:0:0): Periph destroyed
petr-fischer commented 8 years ago

+1, same on my FreeBSD 10.3

bwmarrin commented 7 years ago

Well, I just googled this issue and.. found this :)

Same story, FreeBSD 11.0-RELEASE-p2 with ext4fuse. Connecting to a USB 3.0 external caddy with a WD RE 1tb drive that should do around 80-100MB/s. I'm reading data off and only getting around 3MB/s

If other data would be useful, let me know. Happy to help test.