From owner-freebsd-questions@FreeBSD.ORG Thu Nov 6 10:58:07 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD27616A4CE for ; Thu, 6 Nov 2003 10:58:07 -0800 (PST) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E09343FFB for ; Thu, 6 Nov 2003 10:58:06 -0800 (PST) (envelope-from cswiger@mac.com) Received: from mac.com (smtpin07-en2 [10.13.10.152]) by smtpout.mac.com (8.12.6/MantshX 2.0) with ESMTP id hA6J2Abo026999; Thu, 6 Nov 2003 11:02:10 -0800 (PST) Received: from [10.1.1.193] (dpvc-68-161-244-25.ny325.east.verizon.net [68.161.244.25]) (authenticated bits=0)hA6Iw4pa026069; Thu, 6 Nov 2003 10:58:04 -0800 (PST) In-Reply-To: <3.0.5.32.20031106092614.01465da8@10.0.0.15> References: <3.0.5.32.20031106092614.01465da8@10.0.0.15> Mime-Version: 1.0 (Apple Message framework v606) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <264C8786-108B-11D8-AD24-003065ABFD92@mac.com> Content-Transfer-Encoding: 7bit From: Charles Swiger Date: Thu, 6 Nov 2003 13:58:03 -0500 To: "Jack L. Stone" X-Mailer: Apple Mail (2.606) cc: freebsd Subject: Re: lan bandwidth issue X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Nov 2003 18:58:07 -0000 On Nov 6, 2003, at 10:26 AM, Jack L. Stone wrote: > This "price advice" then implies that if Realtek simply raised their > prices, the card would be just fine...?? No. The price advice implies that a NIC that is worth $5 is probably not as good as a NIC which is worth $50. If Realtek raised their prices, their cards would become overpriced "cheapo" NICs rather than cheap "cheapo" NICs. :-) > One should not just go by "expensive", but do some research not just > based > on that "easy" benchmark. The "cheapo" measurement is very misleading > considering some cards may just be "on sale" and are fine cards. ...or > just > because they use the rlx driver.... Speaking of which, /usr/src/sys/pci/rl.c provides some very specific technical details as to the design flaws with this chipset family: /* * The RealTek 8139 PCI NIC redefines the meaning of 'low end.' This is * probably the worst PCI ethernet controller ever made, with the possible * exception of the FEAST chip made by SMC. The 8139 supports bus-master * DMA, but it has a terrible interface that nullifies any performance * gains that bus-master DMA usually offers. * * For transmission, the chip offers a series of four TX descriptor * registers. Each transmit frame must be in a contiguous buffer, aligned * on a longword (32-bit) boundary. This means we almost always have to * do mbuf copies in order to transmit a frame, except in the unlikely * case where a) the packet fits into a single mbuf, and b) the packet * is 32-bit aligned within the mbuf's data area. The presence of only * four descriptor registers means that we can never have more than four * packets queued for transmission at any one time. * * Reception is not much better. The driver has to allocate a single large * buffer area (up to 64K in size) into which the chip will DMA received * frames. Because we don't know where within this region received packets * will begin or end, we have no choice but to copy data from the buffer * area into mbufs in order to pass the packets up to the higher protocol * levels. * * It's impossible given this rotten design to really achieve decent * performance at 100Mbps, unless you happen to have a 400Mhz PII or * some equally overmuscled CPU to drive it. -- -Chuck