def parse_iostat(self): """ Parse output of get_iostat(). Returned structure is a dictionary of dictionaries: {device: {'rs': value, 'ws': value, 'krs': value, 'kws': value, 'wait': value, 'actv': value, 'svc_t': value, 'w': value, 'b': value} } rs (r/s) - reads per second ws (w/s) - writes per second krs (kr/s) - kilobytes read per second kws (kw/s) - kilobytes write per second wait - average number of transactions waiting for service (queue length) actv - average number of transactions actively being serviced (removed from the queue but not yet completed) svc_t - average response time of transactions, in milliseconds w - percent of time there are transactions waiting for service (queue not-empty) b - percent of time the disk is busy (transactions in progress) """ fields = ("rs", "ws", "krs", "kws", "wait", "actv", "svc_t", "w", "b") return utils.parser_iostat(self.get_iostat(), fields)
def parse_iostat(self): """ Parse output of get_iostat(). Returned structure is a dictionary of dictionaries: {device: {'tps': value, 'kbrs': value, 'kbws': value, 'kbr': value, 'kbw': value, 'avgrq-sz': value, 'avgqu-sz': value, 'await': value, 'svctm': value} } tps - transfers per second kbrs (kB_read/s) - amount of data read from the device expressed in kilobytes per second kbws (kB_wrtn/s) - amount of data written to the device expressed in kilobytes per second kbr (kB_read) - total number of kilobytes read kbw (kB_read) - total number of kilobytes written avgrq-sz - The average size (in sectors) of the requests that were issued to the device. avgqu-sz - The average queue length of the requests that were issued to the device. await - The average time (in milliseconds) for I/O requests issued to the device to be served. This includes the time spent by the requests in queue and the time spent servicing them. svctm - The average service time (in milliseconds) for I/O requests that were issued to the device. """ fields = ("tps", "kbrs", "kbws", "kbr", "kbw", "avgrq-sz", "avgqu-sz", "await", "svctm") return utils.parser_iostat(self.get_iostat(), fields)
def parse_iostat(self): """ Parse output of get_iostat(). Returned structure is a dictionary of dictionaries. {device: {'rs': value, 'ws': value, 'krs': value, 'kws': value, 'wait': value, 'svc_t': value, 'b': value} } rs (r/s) - read operations per second ws (w/s) - write operations per second krs (kr/s) - kilobytes read per second kws (kw/s) - kilobytes write per second wait - transactions queue length svc_t - average duration of transactions, in milliseconds b (%b) - % of time the device had one or more outstanding transactions """ fields = ("rs", "ws", "krs", "kws", "wait", "svc_t", "b") return utils.parser_iostat(self.get_iostat(), fields)