<div dir="ltr">Hi,<br><div class="gmail_quote"><div dir="ltr"><div><br></div><div>I ran following command,</div><div><br></div><div><p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">./x86_64-softmmu/qemu-system-x86_64 -k en-us --show-cursor  --enable-kvm -smp 2  -m 1024 -hda  /var/opt/kvm/img/ubuntu14.04.img   -drive if=none,id=drive1,cache=none,format=raw,aio=native,file=cvbd://<a href="http://127.0.0.1:6380/win7.img?block_size=4096" target="_blank">127.0.0.1:6380/win7.img?block_size=4096</a> -device virtio-blk,drive=drive1   -vnc :0</p><div><br></div><div>perf out shoed me 14.31% send_full_color_rect.isra.12. Following is the output of </div><div><br></div><div><p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)"><span style="color:#c33720"> 14.31%</span>  qemu-system-x86  libz.so.1.2.8            [.] 0x0000000000002ae7                                                                                 ◆</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">   - 0x7f6660d67ae7                                                                                                                                          ▒</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">   + 0x7f6660d68968                                                                                                                                          ▒</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">   + deflate                                                                                                                                                 ▒</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">   - tight_compress_data                                                                                                                                     ▒</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">      - 14.31% send_full_color_rect.isra.12                                                                                                                  ▒</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">           send_sub_rect                                                                                                                                     ▒</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;background-color:rgb(191,191,191)">         - tight_send_framebuffer_update                                                                                                                     <span style="color:#ffffff;background-color:#000000">▒</span></p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">              14.23% vnc_worker_thread_loop                                                                                                                  ▒</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">            - 0.08% tight_send_framebuffer_update                                                                                                            ▒</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">               - 0.05% tight_send_framebuffer_update                                                                                                         ▒</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">                  - tight_send_framebuffer_update                                                                                                            ▒</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">                       0.03% vnc_worker_thread_loop                                                                                                          ▒</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">                     - 0.01% tight_send_framebuffer_update                                                                                                   ▒</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">                          vnc_worker_thread_loop                                                                                                             ▒</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">                 0.03% vnc_worker_thread_loop                                                                                                                ▒</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">      - 0.00% send_sub_rect                                                                                                                                  ▒</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">           tight_send_framebuffer_update                                                                                                                     ▒</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">           vnc_worker_thread_loop                                                                                                                            ▒</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">+ <span style="color:#34bd26">   4.68%</span>  qemu-system-x86  libz.so.1.2.8            [.] 0x0000000000002ac0                                                                                 ▒</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">+ <span style="color:#34bd26">   3.65%</span>  qemu-system-x86  libz.so.1.2.8            [.] 0x0000000000002ae1                                                                                 ▒</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">+ <span style="color:#34bd26">   3.56%</span>  qemu-system-x86  libz.so.1.2.8            [.] 0x0000000000002ad0                                                                                 ▒</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">+ <span style="color:#34bd26">   2.71%</span>  qemu-system-x86  libz.so.1.2.8            [.] 0x0000000000002ac7                                                                                 ▒</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">+ <span style="color:#34bd26">   2.31%</span>  qemu-system-x86  qemu-system-x86_64       [.] vnc_refresh_server_surface                                                                         ▒</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">- <span style="color:#34bd26">   1.90%</span>  qemu-system-x86  [kernel.kallsyms]        [k] vcpu_enter_guest    </p></div><br>
</div><div><br></div><div>Following are the commands that I ran,</div><div><br></div><div><p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">root@Machine3:~# perf record --call-graph dwarf -p 4101</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">^C[ perf record: Woken up 2141 times to write data ]</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">[ perf record: Captured and wrote 536.328 MB perf.data (~23432515 samples) ]</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0);min-height:16px"><br></p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">root@Machine3:~# perf report -g graph --no-children</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">root@Machine3:~# uname -a</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">Linux Machine3 3.16.0-46-generic #62~14.04.1-Ubuntu SMP Tue Aug 11 16:27:16 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">root@Machine3:~# egrep -c &#39;(vmx|svm)&#39; /proc/cpuinfo</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">4</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">root@Machine3:~# kvm-ok </p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">INFO: /dev/kvm exists</p>
<p style="margin:0px;font-size:14px;font-family:Menlo;color:rgb(255,255,255);background-color:rgb(0,0,0)">KVM acceleration can be used</p></div><div><br></div><div>Any reason why its taking so much time.<br></div><div><br></div><div>Thanks,</div><div>Darshan</div><div><br></div></div>
</div><br>
</div>