From owner-freebsd-hackers Mon Jan 22 13:19: 4 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.dis.org (mass.dis.org [216.240.45.41]) by hub.freebsd.org (Postfix) with ESMTP id CE62B37B401 for ; Mon, 22 Jan 2001 13:18:44 -0800 (PST) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.1/8.11.1) with ESMTP id f0MLY1001413; Mon, 22 Jan 2001 13:34:01 -0800 (PST) (envelope-from msmith@mass.dis.org) Message-Id: <200101222134.f0MLY1001413@mass.dis.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Robert Lipe Cc: Alfred Perlstein , freebsd-hackers@FreeBSD.ORG Subject: Re: contigmalloc, M_WAITOK, & leaks. In-reply-to: Your message of "Mon, 22 Jan 2001 15:14:30 CST." <20010122151430.R10504@rjlhome.sco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 22 Jan 2001 13:34:01 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > If busdma is "pretty broken" for network-sized requests, I may just > avoid it for now, implement the contigmalloc cache, and move on to more > interesting problems. It's broken for network-sized requests because it uses contigmalloc. 8) The cache approach will work equally well for either interface; the busdma interface is "more correct". At some point, some changes in the busdma interface will make it possible for you to throw out a lot of code related to doing s/g for network drivers. For now, to work around the network interface problem you can just defragment outbound packets into a single buffer; this is the 'extra copy' tradeoff you mentioned. Once busdma is fixed, that can go away. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message