> > So, what you want is something like a
> > MGETHCL(m, how, type)
> > MHCLFREE(m)
> > interface which first looks in a combined freelist before the individual
> > mbuf and cluster freelists. I think it's a good idea.
>
> I would prefer to see an interface that just grabs both a cluster and
> an mbuf from their respective per-CPU caches (in -CURRENT) while only
> grabbing the lock once, if at all this is that important to you. [*]
What would this interface look like?
It seems to me having a grouped allocate and free interface allows for a
variety of implementations: either the -stable sample implementation Luigi
posted, a uma-based one in -current, or a modification of the -current
mbuf allocator. The gains from each implementation may vary, but is
no worse than doing the two allocations separately and returning them
as a group.
Jeffrey
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message