Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Aug 2004 20:55:50 +0200
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        Andre Oppermann <andre@freebsd.org>, src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/net route.c
Message-ID:  <D19E43867882B980FE064F35@[192.168.1.51]>
In-Reply-To: <411A5805.215C72FB@freebsd.org>
References:  <200408111726.i7BHQuPC078939@repoman.freebsd.org> <411A5805.215C72FB@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--==========F239D07F80CD438A9825==========
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

+-Le 11/08/2004 19:31 +0200, Andre Oppermann a dit :
| 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 ;-)

Looks like border routeurs will have more free ram in the future :-)

-- 
Mathieu Arnold
--==========F239D07F80CD438A9825==========
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iQEVAwUBQRpruFvROjYJ63c1AQK8LQf9GT+sGbt6thYBs2pZbboS9YIFR75lnrjm
TttcKRDMHRZAzxmwNyJS/prnw4hZk79GUfv8f5P7+zu39a7pSAhlJqAKpxm4cm8E
J1t4k8pAsdSPnavqJjZoLpk7sgJATQkr66h2h7O3/xRqnCXxDwmaBcESByZVDJg1
zBpcO10bKFyJjRqJOYrAG7/qajEH6dYV0OKv3xdeU5/CcqoagRjhGxxsq39p8CB2
ZMbZ747stQYxS0jGFgRWLJteMBZjMiuhrehaRduE4uNB3p2t6+H9Siggqs4k6p+v
kcbpeOowEcM4UPi0OOSNUph6cG2JqgrN0emSvOURI21N2Ar/XHgzlA==
=JlhF
-----END PGP SIGNATURE-----

--==========F239D07F80CD438A9825==========--



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