Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Apr 2002 16:42:32 +0200 (CEST)
From:      Attila Nagy <bra@fsn.hu>
To:        Danny Braniss <danny@cs.huji.ac.il>
Cc:        hackers@freebsd.org
Subject:   Re: sendfile() in tftpd? 
Message-ID:  <Pine.LNX.4.44.0204231615170.24266-100000@scribble.fsn.hu>
In-Reply-To: <E1700b8-00008i-00@cs.huji.ac.il>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,

> i've had this modified tftpd for some time now,
> 	o - it's single threaded - runs as daemon and does not fork new children
Basically, I don't have any problems with the inetd startup. It can be
rate limited, etc.

> 	o - it caches files
How? Doesn't leaving this job to the OS a smarter idea?

> 	o - knows about some of the newer tftp stuff - mainly blocksize.
I think it's implemented in FreeBSD's tftpd too. (I can get 750 MB images
with TFTP easily).

My impression about this stuff:
compiled and started on an up-to-date FreeBSD STABLE BOX
(AthlonXP 1600+, 512MB DDR, two Intel PRO/100 with FEC)
The lab consists of 733 MHz Celerons with Intel PRO/100 and 128MB RAM.
The switch is a HP4000M.
With the FreeBSD tftpd I could only get around 40 Mbps out of this box,
the CPU usage was 100%. One client could fetch the stuff with an average
speed of 14-15 Mbps. I could stay at this speed with 4-5 machines,
fetching the images, after this count the bandwidth usage decreased per
machine.

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)...

BTW, FreeBSD's tftpd doesn't drop connections once it built up, while
there are some problems with Danny's implementation in this area, but I am
sure that this will be solved very soon.

--------[ Free Software ISOs - ftp://ftp.fsn.hu/pub/CDROM-Images/ ]-------
Attila Nagy					e-mail: Attila.Nagy@fsn.hu
Free Software Network (FSN.HU)		  phone @work: +361 210 1415 (194)
						cell.: +3630 306 6758



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.44.0204231615170.24266-100000>