This Question is Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (5 pts)
15,326 Views 3 Replies Last post: Apr 24, 2009 3:17 AM by heysairam RSS
antmolloy Enthusiast 13 posts since
Mar 27, 2008
Currently Being Moderated

Mar 27, 2008 11:02 AM

Using the 'perf' API in Perl

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.

Tags: perl, interfaces, performance, perl, interfaces, performance
ravir NetApp Employee Master 197 posts since
Mar 6, 2008
Currently Being Moderated
Mar 27, 2008 12:53 PM in response to: antmolloy
Re: Using the 'perf' API in Perl

 

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

 

 

Attachments:
heysairam   1 posts since
Apr 24, 2009
Currently Being Moderated
May 8, 2009 12:32 PM in response to: antmolloy
Re: Using the 'perf' API in Perl

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++.

More Like This

  • Retrieving data ...

Bookmarked By (0)