A quick google hasn't been very helpful ... are there any guides to tuning OpenBSD kernel in 4.x for optimum performance on routers?

We're starting to see some bizarre behaviour and memory issues on some of our busier border routers

Things such as

(note the minus 59% usage)

[EMAIL PROTECTED] netstat -m
9637 mbufs in use:
        9557 mbufs allocated to data
        74 mbufs allocated to packet headers
        6 mbufs allocated to socket names and addresses
9546/15752/32768 mbuf clusters in use (current/peak/max)
34148 Kbytes allocated to network (-59% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines
[EMAIL PROTECTED] netstat -m
7336 mbufs in use:
        7256 mbufs allocated to data
        74 mbufs allocated to packet headers
        6 mbufs allocated to socket names and addresses
7242/15752/32768 mbuf clusters in use (current/peak/max)
34036 Kbytes allocated to network (47% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines

and also things like this appear in dmesg

WARNING: mclpool limit reached; increase kern.maxclusters

(which we've done)

These boxes tend to have 3 or 4 full copies of the routing table as well as 150-200 peering sessions with an average of 20 prefixes on each

[EMAIL PROTECTED] bgpctl s r me
RDE memory statistics
    217634 IPv4 network entries using 6.6M of memory
         1 IPv6 network entries using 44B of memory
   1951183 prefix entries using 59.5M of memory
    363941 BGP path attribute entries using 26.4M of memory
    118297 BGP AS-PATH attribute entries using 3.5M of memory,
           and holding 363941 references
     12390 BGP attributes entries using 290K of memory
           and holding 408122 references
     12389 BGP attributes using 444K of memory
RIB using 96.8M of memory

[EMAIL PROTECTED] bgpctl s r me
RDE memory statistics
    217589 IPv4 network entries using 6.6M of memory
       671 IPv6 network entries using 28.8K of memory
    672388 prefix entries using 20.5M of memory
    128149 BGP path attribute entries using 9.3M of memory
     48874 BGP AS-PATH attribute entries using 1.4M of memory,
           and holding 128149 references
      4066 BGP attributes entries using 95.3K of memory
           and holding 126566 references
      4065 BGP attributes using 25.0K of memory
RIB using 38.0M of memory

--
Jon Morby
fido.net - the internet made simple!

Reply via email to