Hi.

 I am seeing way too many errors on my dc0 external interface and I have
tried everything I can think of.

Running 4.0 on a p500+128mb ram as an internet gateway/donkey/torrent box.

# netstat -m
458 mbufs in use:
        233 mbufs allocated to data
        218 mbufs allocated to packet headers
        7 mbufs allocated to socket names and addresses
154/256/65536 mbuf clusters in use (current/peak/max)
676 Kbytes allocated to network (62% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines

# netstat -i  (local int's snipped)
Name    Mtu   Network     Address              Ipkts Ierrs    Opkts Oerrs Colls
rl0     1500  <Link>      00:0a:cd:0a:58:8c    23150     0    30820     0     0
rl0     1500  10.0.0/24   10.0.0.1             23150     0    30820     0     0
rl0     1500  fe80::%rl0/ fe80::20a:cdff:fe    23150     0    30820     0     0
dc0     1500  <Link>      00:90:cc:52:66:78  2229558 56984  2103323     0     0
dc0     1500  fe80::%dc0/ fe80::290:ccff:fe  2229558 56984  2103323     0     0
tun0    1454  <Link>                         2173284     0  2094741     0 20404
tun0    1454  xyz-336 xyz-336.net  2173284     0  2094741     0 20404
#

rl is local network  dc external iface

And I also see some queuing on the Send-Q when doing a netstat -an (max 64k)

sysctl mods are as follows:

net.inet.ip.forwarding=1        # 1=Permit forwarding (routing) of IPv4 packets
#random guesses for performance
kern.somaxconn=8192
net.inet.tcp.recvspace=65535
net.inet.udp.recvspace=65535
net.inet.tcp.sendspace=65535
net.inet.udp.sendspace=65535
kern.maxclusters=65535
kern.maxproc=4096
kern.maxfiles=8192
net.inet.ip.maxqueue=2048
net.bpf.bufsize=2097152
net.bpf.maxbufsize=4194304


load averages:  1.11,  1.24,  1.20
27 processes:  26 idle, 1 on processor
CPU states:  0.9% user,  7.3% nice,  3.2% system,  0.8% interrupt, 87.8% idle
Memory: Real: 54M/78M act/tot  Free: 41M  Swap: 0K/0K used/tot


As mentioned above running rel 4.0 on a p500+128mb ram
as an internet gateway/donkey/torrent box with unmodified kernel

Googling on Ierrs tells me I'm running out of network kernel
bufs but certainly doesn't look that way from netstat -m.



Can anyone suggest what could be the problem? A 4.0 bug?
Additional sysctl line needed?

Moe

Reply via email to