From owner-freebsd-current@FreeBSD.ORG Fri May 16 01:45:23 2003 Return-Path: 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 E261B37B409 for ; Fri, 16 May 2003 01:45:22 -0700 (PDT) Received: from smtp2.fre.skanova.net (smtp2.fre.skanova.net [195.67.227.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id E545743F85 for ; Fri, 16 May 2003 01:45:20 -0700 (PDT) (envelope-from petertf@telia.com) Received: from foo (h6n1fls21o1048.telia.com [217.211.130.6]) by smtp2.fre.skanova.net (8.12.9/8.12.9) with SMTP id h4G8jJUS022234 for ; Fri, 16 May 2003 10:45:19 +0200 (CEST) From: "peter" To: Date: Fri, 16 May 2003 10:45:16 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal Subject: VB: asymetrisk transfer of files through ftp X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 16 May 2003 08:45:24 -0000 -----Ursprungligt meddelande----- Fran: peter [mailto:petertf@telia.com] Skickat: den 16 maj 2003 00:07 Till: Brooks Davis Amne: SV: asymetrisk transfer of files through ftp I see, i tried this on FreeBsd 4.7-release and got a transfer rate say, around 30 MByte/s with both put and get (ftp via loopback interface), but in 5.0-current i got 7Mbytes/s with put and 15 Mbyte/s with get. Any diffrens between ftpd in FreeBsd 4.7-Release compared to 5.0-current. /peter -----Ursprungligt meddelande----- Fran: Brooks Davis [mailto:brooks@one-eyed-alien.net] Skickat: den 15 maj 2003 23:45 Till: peter Kopia: current@freebsd.org Amne: Re: asymetrisk transfer of files through ftp On Thu, May 15, 2003 at 11:37:07PM +0200, peter wrote: > When you are trying to transfer large file with ftp (ftpd started with > inetd), you got a higher transfer rate when you do a ftp get compared to an > ftp put. I try with ftp localhost same result. > Is this a bug ? I believe FreeBSD's ftpd uses sendfile to answer gets which has lower overhead then the usual while(read(file)){ write(socket); } code. This might account for the difference. -- Brooks -- Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4