From owner-freebsd-hackers Tue Apr 23 3:53:46 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from gull.prod.itd.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by hub.freebsd.org (Postfix) with ESMTP id 2B2F337B405 for ; Tue, 23 Apr 2002 03:53:42 -0700 (PDT) Received: from pool0061.cvx21-bradley.dialup.earthlink.net ([209.179.192.61] helo=mindspring.com) by gull.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 16zxvX-0005Kd-00; Tue, 23 Apr 2002 03:53:40 -0700 Message-ID: <3CC53D18.577A9A67@mindspring.com> Date: Tue, 23 Apr 2002 03:53:12 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Attila Nagy Cc: hackers@freebsd.org Subject: Re: sendfile() in tftpd? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Attila Nagy wrote: > Would it be possible to use sendfile in tftpd? > With an Athlon XP 1600+ I could only get ~40 Mbps out from the machine > with 0% idle CPU time (large file transfers from many machines, getting > the same file). Only if all file transfers were binary, or all ASCII files were stored on the host with line termination, instead of . That's the same reason sendfile() is stupid for POP3, IMAP4, and SMTP servers... -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message