aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/compaction-times.py
diff options
context:
space:
mode:
authorJason Wang <[email protected]>2019-05-17 04:29:49 +0000
committerMichael S. Tsirkin <[email protected]>2019-05-27 15:08:22 +0000
commite82b9b0727ff6d665fff2d326162b460dded554d (patch)
treec88a7558ef9b90b1de6415a9cf99bb0206b71fad /tools/perf/scripts/python/compaction-times.py
parentvirtio: Fix indentation of VIRTIO_MMIO (diff)
downloadkernel-e82b9b0727ff6d665fff2d326162b460dded554d.tar.gz
kernel-e82b9b0727ff6d665fff2d326162b460dded554d.zip
vhost: introduce vhost_exceeds_weight()
We used to have vhost_exceeds_weight() for vhost-net to: - prevent vhost kthread from hogging the cpu - balance the time spent between TX and RX This function could be useful for vsock and scsi as well. So move it to vhost.c. Device must specify a weight which counts the number of requests, or it can also specific a byte_weight which counts the number of bytes that has been processed. Signed-off-by: Jason Wang <[email protected]> Reviewed-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions