[HEADS-UP] mbuma is in the tree

Gleb Smirnoff glebius at cell.sick.ru
Thu Jun 3 09:46:52 GMT 2004

On Wed, Jun 02, 2004 at 10:56:52AM -0700, Sam Leffler wrote:
S> >   are you going to convert mbuf tag allocator to UMA? Now
S> > tags are allocated with malloc(). AFAIK, tags are used heavily in pf,
S> > and forthcoming ALTQ. Moving to UMA should affect their performance
S> > positively.
S> You probably meant you wanted to use a UMA zone.  m_tag's can already be 


What about using its own UMA zone for each m_tag consumer: pf, ALTQ, divert,
vlan? Each module allocates its zone on startup, and later a reference to
this zone is passed to m_tag_alloc().

S> allocated using this mechanism.  I did it once for vlan tags but botched it 
S> (didn't handle module references properly) so backed it. But there's no 
S> reason someone cannot redo it or convert other heavily used fixed size tags 
S> to use a zone.

Have you saved your efforts? May I look at them?

Totus tuus, Glebius.

More information about the freebsd-current mailing list