Date: Thu, 15 May 2003 14:45:29 -0700 From: Brooks Davis <brooks@one-eyed-alien.net> To: peter <petertf@telia.com> Cc: current@freebsd.org Subject: Re: asymetrisk transfer of files through ftp Message-ID: <20030515214529.GA15963@Odin.AC.HMC.Edu> In-Reply-To: <IPENLIIDLIEIHGGDNIHBMEDNCAAA.petertf@telia.com> References: <IPENLIIDLIEIHGGDNIHBMEDNCAAA.petertf@telia.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030515214529.GA15963>