cvs commit: src/sys/net route.c

Mathieu Arnold mat at FreeBSD.org
Wed Aug 11 11:56:04 PDT 2004


+-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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 479 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20040811/8c5ceae5/attachment.bin


More information about the cvs-src mailing list