Hi Eric,
The SMI Specification offers several different ways to obtain performance data from very fine grain control or in bulk which is what you appear to want if I have read your post correctly.
the method you describe below is the most chatty way that you can get the data and would explain why it's taking so long for you to complete your task.
Here is the first option that meets all your needs i believe:
Issue a EnumerateInstanceNames call for the class CIM_StatisticsCollection, you will get back one instance for each array known to the provider.
Built with EMC SMI-S Provider: V4.6.2
Namespace: root/emc
repeat count: 1
(localhost:5988) ? ein
Class: CIM_StatisticsCollection
++++ Testing EnumerationInstanceNames: CIM_StatisticsCollection ++++
Instance 0:
Symm_QueryStatisticsCollection.InstanceID="SYMMETRIX+000195600142"
Instance 1:
Symm_QueryStatisticsCollection.InstanceID="SYMMETRIX+000198700061"
for each of these instances you can then issue a GetInstance call and it will return the stats data for each instance that supports stats for that array in a very compact and easily parsed format.
Only the stats for the array will be returned.
this property tells you the time the sample was taken:
<PROPERTY NAME="TimeLastSampled" TYPE="datetime">
<VALUE>20140215170007.543000-300</VALUE>
</PROPERTY>
</INSTANCE>
this property tells you the sample interval.
PROPERTY NAME="SampleInterval" TYPE="datetime">
<VALUE>00000000001500.000000:000</VALUE>
You can use a propertylist on the getinstance call to return just the TimeLastSampledProperty, when this value changes compared to the last time you got the data you know you have a new set of data you can return.
By doing it this way you do not waste time and server side resources pulling back the data over and over again that has not changed since the last time you obtained it.
Personally I prefer the GetStatisticsCollectionMethod as you can tailor the stats that you want returned or use the default manifest to return the data.
Finally I encourage/urge you to join the SNIA SMILAB programs as it's the most reliable way to get the info you need.
You also have the opportunity to meet and talk with an extremely knowledgeable and cooperative group of storage engineers from the storage companies that have implemented smi-s compliant providers during the snia smilab plugfests.
/Rich