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

Hal Rosenstock halr at voltaire.com
Tue May 9 09:40:09 PDT 2006


On Tue, 2006-05-09 at 12:29, Roland Dreier wrote:
>     Leonid>      we need a possibility to reset the port counters in
>     Leonid> /sys/class/infiniband/mthca0/ports/1/counters/.
> 
> 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?

In fact, there already is one which can do this (perfquery).

-- Hal

> 
>  - R.
> _______________________________________________
> openib-general mailing list
> openib-general at openib.org
> http://openib.org/mailman/listinfo/openib-general
> 
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general




More information about the general mailing list