From owner-freebsd-questions Tue Nov 10 13:07:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA15018 for freebsd-questions-outgoing; Tue, 10 Nov 1998 13:07:48 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from root.com (root.com [198.145.90.17]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA15012 for ; Tue, 10 Nov 1998 13:07:46 -0800 (PST) (envelope-from root@root.com) Received: from root.com (localhost [127.0.0.1]) by root.com (8.8.8/8.8.5) with ESMTP id NAA05939; Tue, 10 Nov 1998 13:08:53 -0800 (PST) Message-Id: <199811102108.NAA05939@root.com> To: "SnowFox" cc: questions@FreeBSD.ORG Subject: Re: Slow ed revisited - D-Link DE-220P & if_ed.c multibuffering In-reply-to: Your message of "Tue, 10 Nov 1998 14:19:15 CST." <001a01be0ce7$66047760$7c000080@newtoy.com> From: David Greenman Reply-To: dg@root.com Date: Tue, 10 Nov 1998 13:08:53 -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >I wrote about 120-130k/s transfer rates with a D-Link DE-220P NE2000 >compatible card - cable wiggling and all didn't seem to help, so I went >spelunking in the code today. (*Huge hugs for open source - I learned how >network cards work today... this if fun!*) =) > >Okay, if_ed.c detects the card as an NE2000 compatible and assigns it a 16k >buffer. This much is nice. Unfortunately, ed_probe_Novell_generic defaults >to creating two transmission buffers, and this is what's slowing me down. >Hard-coding "sc->txb_cnt = 1" gets me upper 900k/s rates. (Bonus points for >anyone who can tell me why? I'd gone into the code assuming I was on an 8k >buffer witch-hunt, but the specs on D-Link's page say 16k.) The only effect this should have is that the board will no longer be able to send out back-to-back packets - all of the packets will have a small amount of delay between them. This really sounds like a problem with the receiver not being able to accept packets fast enough. -DG David Greenman Co-founder/Principal Architect, The FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message