UNSOLVED

Ed_R1

updated

17 years ago

E

Ed_R1

53 Posts

0

1577

March 10th, 2010 02:00

Reading BTP files in a script

I've started doing a bit of performance work recently, and am increasingly starting to... well, shall we say get a bit frustrated with some of the limitations of performance manager - it's fine when looking at individual LUNs and disks, but it starts to get quite difficult to work with when starting to look at correlating different things.

So I'm thinking about how to best do something like - given a hostname, graphing key metrics for the volumes in use on that host.

Given a LUN number, doing the same with the physical drives that LUN covers.

Given a disk number, will trend all the LUNs on that disk.

That kind of thing.

Has anyone experience of doing this?

  • rawstorage

    4 Apprentice

    •

    423 Posts

    634

    1

    Posted March 11th, 2010 01:00

    Ed,

    have you look at Symmetrix Performance Analyzer (SPA)?  I've been using the latest version (V2.0) quite a bit recently, the diagnostic views in this are excellent, you can easily filter by Array, Storage group, Device group and look at all the key indicators for performance.  It also does real time metrics which can be useful for monitoring.

    It's very intuitive to use. Have a look at the ScreenShots I've shown.

    I have drilled into the array, Storage group (Which ties to my host), and Device  to get device statistics for single lun or back end devices that make up your disk. I know this doesn't address any of your issues with ECC performance but it might be something worth looking at.

    2 Attachments

  • Ed_R1

    53 Posts

    634

    0

    Posted March 11th, 2010 01:00

    I haven't run into that one, no.

    I'll take a look and see what I can come up with.

    Mostly I think I'm trying to be lazy when it comes to performance troubleshooting, by doing automatic analysis to try and pick out top 'culprits'. Easier said than done, I know

  • Ed_R1

    53 Posts

    634

    0

    Posted March 11th, 2010 02:00

    I am now trying to figure out how to get SPA available for use. Looks like it's licensed, what I'm less sure of is whether it's one of these products that we licensed in a big bundle, but I never really realised existed before. With any luck I won't have to bang my head against a brick wall to arrange a license. We shall see yet.

    Otherwise I'll continue with my cunning plan to try and dismantle a .btp file, and see if I can't reverse engineer it, and come up with something interesting.

    I mean, I really quite enjoy doing performance analysis, but there's been a few times I've been wishing I could batch up some of the correlation tasks, and automate them.

  • rawstorage

    4 Apprentice

    •

    423 Posts

    634

    1

    Posted March 11th, 2010 02:00

    The latest version is licensed on an electronic license so you will need to supply some info about the machine you intend to install on.

  • rawstorage

    4 Apprentice

    •

    423 Posts

    634

    0

    Posted March 11th, 2010 02:00

    Laziness is a quality to be admiried Ed.  Especially if it can lead to automating such a task.   Definatley have a look at SPA, I'm very impressed at the ease of it.  I think this will be invaluable in root causing performance issues.

    I'm not in sales by the way   I've just been using it a lot recently and found it very useful.

  • seancummins

    2 Intern

    •

    226 Posts

    634

    1

    Posted March 11th, 2010 05:00

    I would second Paul's recommendation of SPA.

    For existing .btp files, you may want to check out pmcli.exe, which is included in Performance Manager -- it will let you convert .btp files into .csv format.  By default, it should be in C:\ECC\Client\Performance Manager\pmcli.exe.

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    634

    0

    Posted March 11th, 2010 09:00

    Ed ..SPA is tiered license.

  • Ed_R1

    53 Posts

    634

    0

    Posted March 12th, 2010 01:00

    Yeah, so I've found. Seems like it's not one we've available, and we probably won't have for the next few months, due to all sorts of stuff.

    So I'll press on with scripting in the meantime - a CSV extract is useful, as it means I can parse it in perl.

    I'm thinking I'll start off simple-ish, by simply trying to select data based on object relationships - things like identifying which LUNS are causing seek activity, and just correlating disk activity to the workload of the hypers on that disk.

    I've already knocked together a script that will show me when a meta 'wraps' on a disk set, which ... has been revealing (there's more than I'd thought) but I'd love to take that script and link in to the performance stats to identify if it's causing a performance problem yet. If anyone's interested in that, I can post it.

    If that works out well, I'm thinking I'll try and 'trend match' - see if I can backtrack a upswing in response time, and link it back to the other key metrics which might be causing it, to see if any have also spiked.

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    634

    0

    Posted March 14th, 2010 18:00

    be careful Ed, you might get hired by EMC to work on their next v-Analytics app . I would love to see what you come up with ..

  • Ed_R1

    53 Posts

    49

    0

    Posted March 16th, 2010 03:00

    I've been starting at stats too long, so I'm no longer sure if I'm not barking mad or not. What I'm trying to do now, is ... process every metric in the BTP file, looking for an 'anomaly'.

    I'm doing this by smoothing each metric using a moving average, and comparing how big a diverence this has from the actual statistic.

    The idea being that a sudden change in e.g. response time, will 'show up' where a normal day's variance won't.

    Having established that though, also do the same thing with all the other metrics out there. Print out a list of the largest anomaly on each data set - with some crude filtering to remove unintersting samples, and sort in order of time - size of anomaly, and when it started/ended.

    The idea being that the 'largest' deviation from the pattern is most likely to be be correlated between the metrics that underpin it.

    With my current data set, I know what the problem was, and when it started, but it is currently (in amongst the 'noise') showing that I have a whole bunch of devices 'flagging' anomalies on sampled average write/read times at 'data point 81' (20:30) for 10 samples.

    Concurrently I have 3 disks with average busy queues for a similar number of samples (11)

    acc queue depth 640 (and 320) on one of the FAs for a similar duration.

    Now in this case, I know what the root cause was, and so can backtrack the device that 'did it' and see the linked changes in the FA throughtput that shows me what happened.

    However it does give me quite a nice way of linking up all the LUNs that are doing the same thing at once, which would let me quickly check things like disk groups, FA presentation, that kind of thing.

    Some more refinement needed I think, but it's at least starting out in the right general direction.