qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: kalyan tata <manjulakalyan.tech@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Performance Profiling 2 VMs
Date: Tue, 1 Mar 2016 16:06:16 -0800	[thread overview]
Message-ID: <CA+RW8bQFRj6FjNr7WhFpkdFkyT5ATQHiukKEE0KqDD-gA2QhJw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1649 bytes --]

Hi All,

I am new to qemu development.
Sorry If this is not the correct forum for this question, it would be great
if you could direct me to correct forum.

I am seeing very low virtio network throughput on an older (2.6.18) linux
guest  vs another newer guest (3.10) both running on the same host. (same
config 2 vcpus, no multi Q etc.)  I see very high CPU usage on the 2.6.18
guest at very low network throughput and want to profile to find
bottleneck.

I tried to use "perf kvm" but the analysis  shows overhead as  max .25 %
where as top in VM shows 100% cpu. (I used following as a guide
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html-single/Virtualization_Tuning_and_Optimization_Guide/index.html#sect-Virtualization_Tuning_Optimization_Guide-Monitoring_Tools-perf_kvm
)

     0.25%  :5235    [uhci_hcd]        [g] 0xffffffff80182236
     0.24%  :5235    [uhci_hcd]        [g] 0xffffffff8018226a
     0.23%  :5235    [virtio_ring]     [g] vring_new_virtqueue
     0.20%  :5236    [uhci_hcd]        [g] 0xffffffff80182236
     0.18%  :5236    [uhci_hcd]        [g] 0xffffffff8018226a
     0.18%  :5235    [uhci_hcd]        [g] 0xffffffff8016f385
     0.14%  :5236    [uhci_hcd]        [g] 0xffffffff802fbe0f
     0.14%  :5235    [uhci_hcd]        [g] 0xffffffff8001161a
     0.14%  :5235    [virtio_ring]     [g] virtqueue_is_broken


My basic question is - Is there a way I can profile the older version of
linux guest so i can see the bottleneck (where the guest is spending CPU
cycles) My aim is to see if i can patch the older version in the critical
path with improvements made in newer version

Thanks
Kal

[-- Attachment #2: Type: text/html, Size: 2275 bytes --]

             reply	other threads:[~2016-03-02  0:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-02  0:06 kalyan tata [this message]
2016-03-02 11:28 ` [Qemu-devel] Performance Profiling 2 VMs Stefan Hajnoczi
2016-03-03  5:32   ` kalyan tata
2016-03-09 16:15     ` Stefan Hajnoczi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+RW8bQFRj6FjNr7WhFpkdFkyT5ATQHiukKEE0KqDD-gA2QhJw@mail.gmail.com \
    --to=manjulakalyan.tech@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).