From owner-freebsd-current@FreeBSD.ORG Thu May 15 14:45:33 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 A19AC37B401 for ; Thu, 15 May 2003 14:45:33 -0700 (PDT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1290943F75 for ; Thu, 15 May 2003 14:45:33 -0700 (PDT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.9/8.12.3) with ESMTP id h4FLjUUO023489; Thu, 15 May 2003 14:45:30 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.9/8.12.3/Submit) id h4FLjUJo023487; Thu, 15 May 2003 14:45:30 -0700 Date: Thu, 15 May 2003 14:45:29 -0700 From: Brooks Davis To: peter Message-ID: <20030515214529.GA15963@Odin.AC.HMC.Edu> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu cc: current@freebsd.org Subject: Re: 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: Thu, 15 May 2003 21:45:33 -0000 --jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 --=20 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 --jI8keyz6grp/JLjh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+xAp5XY6L6fI4GtQRAp67AJ4/4OFB2L+p88bs6S41JO1Tl+tGOACfQtmG QzoViy3EvLIeYABFPmiTkoI= =8qc9 -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh--