[ofa-general] madrpc_init and reseting performance counters

Hal Rosenstock hrosenstock at xsigo.com
Thu Apr 10 07:32:50 PDT 2008


Joel,

On Thu, 2008-04-10 at 14:27 +0000, Joel Shibata wrote:
> I'm attempting to query the performance counters on each IB
> device/port and then reset these counters.  To do so I'm using
> madrpc_init to initialize each port on every poll.  Doing so produces
> the following warning/panic:
> 
> ibwarn: [19949] umad_init: can't read ABI version
> from /sys/class/infiniband_mad/abi_version (Too many open files): is
> ib_umad module loaded?
> ibpanic: [19949] madrpc_init: can't init UMAD library: (Too many open
> files)
> 
> I've verified that libibumad rpms are installed.  Only calling
> madrpc_init at the front end of my polling only allows me to reset the
> port that was initialized last.  Does anyone have some insight into
> how I gather/reset each port without having to call madrpc_init each
> time I poll that port?

There's already a tool which does what you are describing at a high
level: perfquery -R and also scripts for the entire subnet:
ibclearcounters or ibclearerrors (if you just want to clear the error
counters).

-- Hal

> Joel Shibata
> Software Developer
> Lamprey Networks
> 
> 
> _______________________________________________
> general mailing list
> general at lists.openfabrics.org
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
> 
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general




More information about the general mailing list