lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 6 May 2008 02:43:24 +0200 (CEST)
From:	Krzysztof Oledzki <olel@....pl>
To:	Michael Chan <mchan@...adcom.com>
cc:	Ben Liblit <liblit@....org>, David Miller <davem@...emloft.net>,
	akpm@...ux-foundation.org, netdev <netdev@...r.kernel.org>,
	bugme-daemon@...zilla.kernel.org, jesse.brandeburg@...el.com,
	john.ronciak@...el.com
Subject: Re: [Bugme-new] [Bug 10600] New: e1000 updates rx_bytes infrequently



On Mon, 5 May 2008, Michael Chan wrote:

> On Mon, 2008-05-05 at 18:55 -0500, Ben Liblit wrote:
>> Perhaps userspace needs a way to tweak the update frequency?  Or perhaps
>> the driver needs a way to tell userspace what update frequency it should
>> expect?  Without some kind of coordination, we have the present silly
>> situation: userspace network activity monitors are checking rx_bytes
>> more frequently than could possibly be useful.
>>
>> Do different Ethernet drivers update rx_bytes at the same rate?  Or is
>> this completely ad hoc?
>
> "ethtool -C eth0 stats-block-usecs" can be used to control statistics
> update frequency on most tg3 and bnx2 devices.  The default is 1 second
> on these devices.

Hm... strange - I tested it on 2.6.23.17 with:
03:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 12)

Setting both:
  # ethtool -C eth0 stats-block-usecs 50
and:
  # ethtool -C eth0 stats-block-usecs 5000000
gives exactly the same situation - statistics update frequency is still ~1s.

# ethtool -c eth1 |grep stats-block-usecs
stats-block-usecs: 999936

Best regards,

 				Krzysztof Olędzki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ