Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Aug 2004 19:55:07 +0200
From:      Andre Oppermann <andre@freebsd.org>
To:        Wilko Bulte <wb@freebie.xs4all.nl>
Cc:        cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/net route.c
Message-ID:  <411A5D7B.4756CA0B@freebsd.org>
References:  <200408111726.i7BHQuPC078939@repoman.freebsd.org> <411A5805.215C72FB@freebsd.org> <20040811174045.GA74993@freebie.xs4all.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
Wilko Bulte wrote:
> 
> On Wed, Aug 11, 2004 at 07:31:49PM +0200, Andre Oppermann wrote..
> > Andre Oppermann wrote:
> > >
> > > andre       2004-08-11 17:26:56 UTC
> > >
> > >   FreeBSD src repository
> > >
> > >   Modified files:
> > >     sys/net              route.c
> > >   Log:
> > >   Convert the routing table to use an UMA zone for rtentries.  The zone is
> > >   called "rtentry".
> > >
> > >   This saves a considerable amount of kernel memory.  R_Zmalloc previously
> > >   used 256 byte blocks (plus kmalloc overhead) whereas UMA only needs 132
> > >   bytes.
> > >
> > >   Idea from:      OpenBSD
> > >
> > >   Revision  Changes    Path
> > >   1.106     +10 -4     src/sys/net/route.c
> >
> > With this I was able to dump approx. 1.2 million routes into the kernel
> > until I ran out of kmap_mem space.  Pretty neat ;-)
> 
> 1.2 million...
> 
> <argh..> ;-)

With only 209M kmem_size!  8-)

-- 
Andre



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?411A5D7B.4756CA0B>