From owner-freebsd-hackers Thu Mar 25 19: 9:12 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from sumatra.americantv.com (sumatra.americantv.com [207.170.17.37]) by hub.freebsd.org (Postfix) with ESMTP id 55A9015027 for ; Thu, 25 Mar 1999 19:09:09 -0800 (PST) (envelope-from jlemon@americantv.com) Received: from right.PCS (right.PCS [148.105.10.31]) by sumatra.americantv.com (8.8.5/8.8.5) with ESMTP id VAA22694; Thu, 25 Mar 1999 21:08:42 -0600 (CST) Received: (from jlemon@localhost) by right.PCS (8.6.13/8.6.4) id VAA08191; Thu, 25 Mar 1999 21:08:11 -0600 Message-ID: <19990325210810.58396@right.PCS> Date: Thu, 25 Mar 1999 21:08:10 -0600 From: Jonathan Lemon To: dg@root.com Cc: dillon@apollo.backplane.com, freebsd-hackers@FreeBSD.ORG Subject: Re: 3.1-STABLE dies on 40+ connects References: <199903260017.SAA13252@free.pcs> <199903260038.QAA29722@implode.root.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.61.1 In-Reply-To: <199903260038.QAA29722@implode.root.com>; from David Greenman on Mar 03, 1999 at 04:38:24PM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mar 03, 1999 at 04:38:24PM -0800, David Greenman wrote: > >Can someone give a short explanation (or a pointer to the relevant code) > >as to exactly when a NMBCLUSTER comes into play, instead of using a long > >mbuf chain? > > mbufs and mbuf clusters are allocated from the same VM map (chunk of kernel > virtual address space). It's the space in the VM map that is actually running > out, so allocating one type of buffer over another isn't a solution. So that would explain why I see the peak value for NMBCLUSTERS exceeding the max; the system allocated more, and then ran out of space in the vm map. But what I was really asking was at what point does the system decide to put data in a cluster as opposed to putting it into a normal mbuf and then tacking it onto the mbuf chain? As I understand it, the NIC DMA's data directly into mbufs on it's receive ring; are these then passed to ether_input. Are the buffers that the NIC uses always clusters? -- Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message