On Tue, Apr 22, 2008 at 12:20:38AM +0400, Igor Sysoev wrote: > Finally I have tested your second (without debug stuff) patch in > production environment (~45K in/out packets) on FreeBSD 7.0-STABLE. > I think it should be commited. > > I use my usual static settings in /etc/sysctl.conf: > > dev.bge.0.dyncoal_max_intr_freq=0 > # > dev.bge.0.rx_coal_ticks=500 > dev.bge.0.tx_coal_ticks=10000 > dev.bge.0.rx_max_coal_bds=64 > dev.bge.0.tx_max_coal_bds=128 > # apply the above parameters > dev.bge.0.program_coal=0 > > and have about only 1700-1900 interrupts per second. > > The only issue was at boot time: > > dev.bge.0.dyncoal_max_intr_freq: 10000 -> 0 > dev.bge.0.rx_coal_ticks: 0 -> 500 > dev.bge.0.tx_coal_ticks: 1000000 -> 10000 > dev.bge.0.rx_max_coal_bds: 128 -> 64 > dev.bge.0.tx_max_coal_bds: 384 -> 128 > ... > bge0: flags =8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 > options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM> > ... > Local package initialization: > ... > dev.bge.0.rx_coal_ticks: 150 -> 500 > > When disabling dyncoal_max_intr_freq at bge UPing resets rx_coal_ticks to > 150.
I has to use dev.bge.0.program_coal=1 in /etc/sysctl.conf, otherwise /etc/rc.d/sysctl does not call it at all. -- Igor Sysoev http://sysoev.ru/en/ _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"