From owner-freebsd-current@FreeBSD.ORG Sat Nov 11 03:33:05 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A7D516A407 for ; Sat, 11 Nov 2006 03:33:05 +0000 (UTC) (envelope-from pawel.worach@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id 452FB43D46 for ; Sat, 11 Nov 2006 03:32:55 +0000 (GMT) (envelope-from pawel.worach@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so630620uge for ; Fri, 10 Nov 2006 19:32:55 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=HPRBJnMA2hME5G6chps5aP3KWUBkosBTtrg6j4LQxcU14ce/YAz1acOIMsvhCMARYU7ISHS4O79Mkt/UroAgNIQvWaUzWzJo+uPcy6M5ORqnS+dYvuAweZwqOxGe9Few9gA2G2a7xkicSn+jqSPamsHJ2YCIFzpqRQWEhfQ39J8= Received: by 10.67.22.2 with SMTP id z2mr4421257ugi.1163215974766; Fri, 10 Nov 2006 19:32:54 -0800 (PST) Received: from ?192.168.1.200? ( [80.217.194.157]) by mx.google.com with ESMTP id x33sm2902063ugc.2006.11.10.19.32.53; Fri, 10 Nov 2006 19:32:54 -0800 (PST) Message-ID: <45554464.3010200@gmail.com> Date: Sat, 11 Nov 2006 04:32:52 +0100 From: Pawel Worach User-Agent: Thunderbird 1.5.0.7 (X11/20061109) MIME-Version: 1.0 To: Joe Marcus Clarke References: <200611021653.kA2GrRWx008044@repoman.freebsd.org> <455530E0.5090000@gmail.com> <1163215249.2826.9.camel@shumai.marcuscom.com> In-Reply-To: <1163215249.2826.9.camel@shumai.marcuscom.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Andre Oppermann , current@FreeBSD.org Subject: Re: sendfile data corruption X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Nov 2006 03:33:05 -0000 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