On 5/14/2010 1:19 PM, Peter Tribble wrote:
I had a quick look at this and that doesn't look too easy. The snag is that the perl module deep in its core takes the hrtime_t, divides it by 10^9 and converts it to a float. It's not just a display tweak. So my next option is to quickly write something that largely emulates kstat -p (with the kstat type added and the IO statistic times in the underlying nanoseconds). This has the advantage that the tools I'm using to read it don't need to be modified, and doing it in C is much quicker that the perl implementation (so the measurement is less likely to perturb the system).
Cool. I hadn't responded before, as I hadn't had time to properly think about the consequences, but I'm glad to hear you have a new plan of attack that seems to keep things cleaner. The speed improvement is an added (and I think important) bonus.
Rainer -- Mind the Gap Web: http://www.dragonhearth.com Blog: http://chaos.dragonhearth.com _______________________________________________ observability-discuss mailing list observability-discuss@opensolaris.org