Lines Matching +full:active +full:- +full:interval +full:- +full:ms
7 This is a drgn script to monitor the blk-iocost cgroup controller.
8 See the comment at the top of block/blk-iocost.c for more details.
28 parser.add_argument('--cgroup', action='append', metavar='REGEX',
30 parser.add_argument('--interval', '-i', metavar='SECONDS', type=float, default=1,
31 help='Monitoring interval in seconds (0 exits immediately '
33 parser.add_argument('--json', action='store_true',
70 return blkcg.css.cgroup.kn.name.string_().decode('utf-8')
130 f'per={self.period_ms}ms ' \
140 return f'{"":25} active {"weight":>9} {"hweight%":>13} {"inflt%":>6} ' \
150 self.active = iocg.active.value_() / WEIGHT_ONE
161 self.inflight_pct = (vtime - vdone) * 100 / period_vtime
166 ioc.period_us.value_()) if self.active else 0
167 self.wait_ms = (iocg.stat.wait_us.value_() -
180 'weight_active' : self.active,
193 out = f'{path[-28:]:28} ' \
195 f'{round(self.inuse):5}/{round(self.active):5} ' \
207 interval = args.interval variable
231 if devname == blkg.q.mq_kobj.parent.name.string_().decode('utf-8'):
243 if interval == 0:
277 time.sleep(interval)