[openib-general][RFC][PATCH] core/sysfs.c: ability to reset port counters

Leonid Arsh leonida at voltaire.com
Wed May 10 01:32:34 PDT 2006


On 5/9/06, Roland Dreier <rdreier at cisco.com> wrote:
 > Why do you need this possibility?  Having counters reset locally is
> going to confuse any performance manager running on the fabric that
> might be reading the counters remotely.
>
> Is it really a must for this to be done by writing to sysfs?  Couldn't
> a trivial userspace app send a MAD locally to reset them?

We need it for diagnostic purposes.
The capability to reset counters locally on hosts helped us much in
large network/cluster diagnostics. Often, in case of fabric problems,
we can only access the counters locally.

A user space application is an option too, although I think it's nice
to have a 'built in' kernel feature.



More information about the general mailing list