From owner-freebsd-hackers Mon Jan 22 13: 9: 6 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from rjlhome.sco.com (unknown [207.65.180.181]) by hub.freebsd.org (Postfix) with ESMTP id 5DA5C37B6A4 for ; Mon, 22 Jan 2001 13:08:48 -0800 (PST) Received: by rjlhome.sco.com (8.9.3/SCO5) id PAA12491; Mon, 22 Jan 2001 15:14:30 -0600 (CST) Date: Mon, 22 Jan 2001 15:14:30 -0600 From: Robert Lipe To: Alfred Perlstein Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: contigmalloc, M_WAITOK, & leaks. Message-ID: <20010122151430.R10504@rjlhome.sco.com> References: <20010122110642.B10504@rjlhome.sco.com> <20010122100524.D7240@fw.wintelcom.net> <20010122124539.F10504@rjlhome.sco.com> <20010122105227.E7240@fw.wintelcom.net> <20010122132647.I10504@rjlhome.sco.com> <20010122121033.A26076@fw.wintelcom.net> <20010122145550.O10504@rjlhome.sco.com> <20010122125444.C26076@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <20010122125444.C26076@fw.wintelcom.net>; from bright@wintelcom.net on Mon, Jan 22, 2001 at 12:54:44PM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > there's a problem because there's no busdma for mbufs (well > > > actually there is but it fails on really small unaligned blocks > > > which basically breaks it for mbufs). > > > > Can you tell me more about this hazard? I can't control the > > alignment that's asked for by the driver, but I can certainly fudge > > the size and alignment of the request by the time it gets to this > > interface. Just tell me the rules. :-) > > I don't know, Bill Paul explained that the normal busdma stuff is > pretty broken for chunks too small. Basically, disks work, network > cards won't because mbufs are too small. Ouch. That's a problem. Of course, one of the goals of UDI is to provide a consistent API into this sort of stuff. We don't distinguish at the driver level between disk buffers and network buffers. Ideally, the underlying DMA code really wouldn't know (or have to care) what type any of this is. 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. RJL To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message