From owner-freebsd-net Fri Jul 20 11:18:19 2001 Delivered-To: freebsd-net@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id A350837B406 for ; Fri, 20 Jul 2001 11:18:14 -0700 (PDT) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org (InterJet.elischer.org [192.168.1.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id NAA05453; Fri, 20 Jul 2001 13:11:31 -0700 (PDT) Date: Fri, 20 Jul 2001 13:11:30 -0700 (PDT) From: Julian Elischer To: raviprasad20@netscape.net Cc: freebsd-net@freebsd.org Subject: Re: why mbuf? In-Reply-To: <7F8F8796.33735BFF.9513E96F@netscape.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Do you mean why did the original BSD people choose the methos used in the mbuf code in 1982 (or whenever)? 1/ copying data is a waste of time 2/ incoming packets are of unpredictable size but tend to be either full-size or small with few in between. 3/ memory was expensive and slow On Fri, 20 Jul 2001 raviprasad20@netscape.net wrote: > Hi, > > My question is why did you choose mbuf? > is it because you are writing the code in unix systems? > Is it because mbufs allow us to avoid coping as much as possible? > > I feel that a linear buffer might have saved some of the mbuf > modifications. > > regards > ravi prasad > > > > __________________________________________________________________ > Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ > > Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message