Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Nov 2006 04:32:52 +0100
From:      Pawel Worach <pawel.worach@gmail.com>
To:        Joe Marcus Clarke <marcus@FreeBSD.org>
Cc:        Andre Oppermann <andre@FreeBSD.org>, current@FreeBSD.org
Subject:   Re: sendfile data corruption
Message-ID:  <45554464.3010200@gmail.com>
In-Reply-To: <1163215249.2826.9.camel@shumai.marcuscom.com>
References:  <200611021653.kA2GrRWx008044@repoman.freebsd.org>	 <455530E0.5090000@gmail.com> <1163215249.2826.9.camel@shumai.marcuscom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Joe Marcus Clarke wrote:
> 
> Looks to me like there's some unnecessary calculations happening to get
> the xfsize.  Does the following patch help?
> 
> http://www.marcuscom.com/downloads/uipc_syscalls.c.diff
> 

Jumped the gun a bit there, worked well for small files but failed on 
bigger ones.

0>root@zero /usr/local/www/data# md5 sh
MD5 (sh) = e090ae9fc697b6ec84165af920034dc4
0>root@zero /usr/local/www/data# fetch -o - http://127.0.0.1/sh | md5
-                                             100% of  109 kB   57 MBps
e090ae9fc697b6ec84165af920034dc4

0>root@zero /usr/local/www/data# md5 pkg.tar
MD5 (pkg.tar) = 4acc148ebde3f491141950cf902b2d49
0>root@zero /usr/local/www/data# fetch -o - http://127.0.0.1/pkg.tar | md5
-                                             100% of  362 MB   67 MBps
98018da64b1fd111beaef8d990438604

ps. This is now back on latest -current with Joe's patch.

-- 
Pawel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45554464.3010200>