Hi,
I've been trying to use the 'perf' API to retrieve performance data from a filer, but I'm struggling to get it to do what I want.
Specifically, I'm trying to use 'perf-object-get-instances' call to return the value of particular counters for particular instances of an object, e.g. the value of 'avg_latency' for the volume 'vol0'.
I understand that I need to create my own input elements for specifying the counter and instance, but I can't get it to work! I'm using the Perl version of the API.
Any help will be gratefully received...
Regards,
James.
Hi,
I am attaching a sample code in Perl which provides you some insights into the use of the Perf APIs. This sample code is also included in the latest version of SDK 3.0 which is available for download now at: http://communities.netapp.com/docs/DOC-1110
regards
mrpr
That's exactly what I needed - thanks for the help!
James.
I would love to see you demonstrate even just one example where this is the case. The gain of _only_ 11.75x of your "C" over Perl in the case you describe is because you used XS for the implementation and not pure C with XS to just glue the two together. For big arrays you'll find it's faster to transcribe online hold em poker tournament the Perl array into a C array of floats, and to do the work in pure C. Perl is usually about two orders of magnitude (100x) slower than C or decently coded C++.