Re: Swallowed mbufs and number of available mbufs
Re: Swallowed mbufs and number of available mbufs
- Subject: Re: Swallowed mbufs and number of available mbufs
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Fri, 04 May 2012 13:40:37 +0100
On 4 May 2012, at 13:21, Jean Suisse wrote:
> I was wondering how swallowed mbufs are handled. Do they still live as mbufs, and thus contribute to exhaust the number of total available mbufs to the system ?
Yes.
> Basically, when swallowing mbufs only to reinject them later, should I worry about the number of mbufs I currently have in store ?
Yes. It's important that your KEXT has a finite limit to the total number of mbufs it swallows, otherwise you run the risk of running the kernel out of them.
This is true for any memory you allocate in the kernel. So allocating memory and copying the mbuf data to that memory is not a solution to this problem (-:
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden