Subject: Netbsd as default-free router
To: None <>
From: Michael Richardson <>
List: tech-net
Date: 08/21/2002 16:29:02
Stupid question... how can I find out how much memory is in use for the
routing table(s)?

With a full dump, (110k routes), I get a crash with 64Mb of memory.
I am rebuilding with NMBCLUSTERS=2048 now, but want to verify what is up.
With 27K routes for prefixes larger than /21 only, it seems stable.
{ ip prefix-list slash19 seq 10 deny ge 21 }

netstat -m shows:

bud# netstat -m
464 mbufs in use:
        402 mbufs allocated to data
        32 mbufs allocated to ancillary data
        13 mbufs allocated to packet headers
        17 mbufs allocated to socket names and addresses
327/384 mapped pages in use
916 Kbytes allocated to network (84% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines

which shows just under 1Mb for networking, which could be reasonable for 27K
routes. Is there a way to get more detail?

]       ON HUMILITY: to err is human. To moo, bovine.           |  firewalls  [
]   Michael Richardson, Sandelman Software Works, Ottawa, ON    |net architect[
] |device driver[
] panic("Just another Debian GNU/Linux using, kernel hacking, security guy"); [