From owner-freebsd-current@FreeBSD.ORG Fri May 16 14:07:06 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 A78CF37B401 for ; Fri, 16 May 2003 14:07:06 -0700 (PDT) Received: from web41308.mail.yahoo.com (web41308.mail.yahoo.com [66.218.93.57]) by mx1.FreeBSD.org (Postfix) with SMTP id 5463243F3F for ; Fri, 16 May 2003 14:07:06 -0700 (PDT) (envelope-from baby_p_nut@yahoo.com) Message-ID: <20030516210706.49543.qmail@web41308.mail.yahoo.com> Received: from [198.80.171.28] by web41308.mail.yahoo.com via HTTP; Fri, 16 May 2003 14:07:06 PDT Date: Fri, 16 May 2003 14:07:06 -0700 (PDT) From: Baby Peanut To: current@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: 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 21:07:07 -0000 What FTP client is being used? There are some really bad FTP clients out there. I just saw one today that does a PSH every 8KB and then wait for ACK from server. Since the delay for the ACK is 0.2 sec and: 0.2 sec * 5 = 1 sec 8KB * 5 = 40KB transfer went out at 40KB/sec. What a loss. --- peter wrote: > > > -----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 > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com