Re: [HEADS-UP] mbuma is in the tree

From: Gleb Smirnoff <glebius_at_cell.sick.ru>
Date: Thu, 3 Jun 2004 13:46:26 +0400
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> 
S> You probably meant you wanted to use a UMA zone.  m_tag's can already be 

Exactly.

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.
GLEBIUS-RIPN GLEB-RIPE
Received on Thu Jun 03 2004 - 00:46:52 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:55 UTC