On Fri, 03/21 17:41, Jason Wang wrote:
> This patch adds simple python to display vhost satistics of vhost, the codes
> were based on kvm_stat script from qemu. As work function has been recored,
> filters could be used to distinguish which kinds of work are being executed or
> queued:
> 
> vhost statistics
> 
>  vhost_virtio_update_used_idx               1215215       0
>  vhost_virtio_get_vq_desc                   1215215       0
>  vhost_work_queue_wakeup                     986808       0
>  vhost_virtio_signal                         811601       0
>  vhost_net_tx                                611457       0
>  vhost_net_rx                                603758       0
>  vhost_net_tx(datacopy)                      601903       0
>  vhost_work_queue_wakeup(rx_net)             565081       0
>  vhost_virtio_signal(rx)                     461603       0
>  vhost_work_queue_wakeup(tx_kick)            421718       0
>  vhost_virtio_update_avail_event             417346       0
>  vhost_virtio_signal(tx)                     349998       0
>  vhost_work_queue_coalesce                    39384       0
>  vhost_work_queue_coalesce(rx_net)            38677       0
>  vhost_net_tx(zerocopy)                        9554       0
>  vhost_work_queue_coalesce(tx_kick)             707       0
>  vhost_work_queue_wakeup(rx_kick)                 9       0
> 
> Signed-off-by: Jason Wang <jasow...@redhat.com>
> ---
>  tools/virtio/vhost_stat | 375 
> ++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 375 insertions(+)
>  create mode 100755 tools/virtio/vhost_stat
> 
> diff --git a/tools/virtio/vhost_stat b/tools/virtio/vhost_stat
> new file mode 100755
> index 0000000..398fd4a
> --- /dev/null
> +++ b/tools/virtio/vhost_stat
> @@ -0,0 +1,375 @@
> +#!/usr/bin/python
> +#
> +# top-like utility for displaying vhost statistics
> +#
> +# Copyright 2012 Red Hat, Inc.

Should it be 2014?

Fam

<snip>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to