8.1-STABLE: zfs and sendfile: problem still exists

Andriy Gapon avg at icyb.net.ua
Fri Oct 29 12:35:05 UTC 2010


on 28/10/2010 08:57 Alexander Zagrebin said the following:
> Hi!
> 
> I've noticed that ZFS on 8.1-STABLE still has problems with sendfile.

Which svn revision, just in case?

> When accessing a file at first time the transfer speed is too low, but
> on following attempts the transfer speed is normal.
> 
> How to repeat:
> 
> $ dd if=/dev/random of=/tmp/test bs=1m count=100
> 100+0 records in
> 100+0 records out
> 104857600 bytes transferred in 5.933945 secs (17670807 bytes/sec)
> $ sudo env LC_ALL=C /usr/libexec/ftpd -D
> 
> The first attempt to fetch file:
> 
> $ fetch -o /dev/null ftp://localhost/tmp/test
> /dev/null                                       1% of  100 MB  118 kBps
> 14m07s^C
> fetch: transfer interrupted
> 
> The transfer rate is too low (approx. 120 kBps), but any subsequent attempts
> are success:
> 
> $ fetch -o /dev/null ftp://localhost/tmp/test
> /dev/null                                     100% of  100 MB   42 MBps
> $ fetch -o /dev/null ftp://localhost/tmp/test
> /dev/null                                     100% of  100 MB   47 MBps

Can you do an experiment with the same structure but sendfile excluded?

-- 
Andriy Gapon


More information about the freebsd-stable mailing list