[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SNMP High Capacity Counters
- To: Hartmut Brandt <hartmut_(_dot_)_brandt_(_at_)_dlr_(_dot_)_de>
- Subject: Re: SNMP High Capacity Counters
- From: Eugene Grosbein <eugen_(_at_)_kuzbass_(_dot_)_ru>
- Date: Sun, 19 Oct 2008 21:22:20 +0800
- Cc: net_(_at_)_freebsd_(_dot_)_org
On Sun, Oct 19, 2008 at 01:17:13PM +0200, Hartmut Brandt wrote:
> The problem is not the CPU horsepower. The problem is that you update
> these counters on each incoming packet. No problem for desktops, but if
> you want to route several 100kps this may hurt. I have no idea, how IPFW
> does it. Perhaps it just declares the variables as 64-bit and if the
> value is wrong because of a race condition, then it is just wrong. With
> SNMP I would not like to have wrong counters - people use these counters
> for accounting purposes.
IPFW defines its counters as u_int64_t and uses mtx_lock/mtx_unlock
while updating. Basically, this means lots of locking for every packet
for IPFW-enables system. I do not say we need 64 bit stats in kernel
by default. Just optionally, for those that have no problem with pps
but likes to have 64 bit ifHC*'s.
Eugene Grosbein
_______________________________________________
freebsd-net_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe_(_at_)_freebsd_(_dot_)_org"
Visit your host, monkey.org