From owner-freebsd-hackers Tue Apr 23 10:44: 1 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 64BE137B41D for ; Tue, 23 Apr 2002 10:43:47 -0700 (PDT) Received: from pool0547.cvx22-bradley.dialup.earthlink.net ([209.179.200.37] helo=mindspring.com) by gull.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 1704KN-0000iz-00; Tue, 23 Apr 2002 10:43:43 -0700 Message-ID: <3CC59D33.DCF84730@mindspring.com> Date: Tue, 23 Apr 2002 10:43:15 -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: Danny Braniss , 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: > With Danny's tftpd I could get 16-17 Mbps with one machine (this is what > the client says) and around 4 Mbps per client at a concurrency of 24 > machines. > That's about 90-96 Mbps. > > I will try do more benchmarks with an accurate method, once I could figure > out what should I use to measure the outgoing traffic to specific IP > addresses (a /24 subnet)... The main thing you will see is that the mmap'ed file pages will be LRU'ed out. Unfortunately, there is not one instance per client. You might do well to madvise() the file, as well, based on the expectation of having multiple sequential transfers of the same data. This assumes that you use the same boot image for each machine, which is advisable (IMO). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message