RE: Q: Stopped VM still using host cpu CPU ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Avi,

> > > > so, setup with
> > > > 	opcontrol --deinit; modprobe oprofile timer=1; opcontrol
--start
> > > >
> >
> > > Use 'opreport -l'.  Make sure your qemu isn't stripped.

All VM's are in paused state:

top - 22:08:15 up 2 days, 12:18,  8 users,  load average: 0.12, 0.19,
0.14
Tasks: 185 total,   1 running, 182 sleeping,   2 stopped,   0 zombie
Cpu(s):  0.5%us,  1.7%sy,  0.0%ni, 97.8%id,  0.0%wa,  0.0%hi,  0.0%si,
0.0%st
Mem:   8196468k total,  4166468k used,  4030000k free,    76044k buffers
Swap: 39780320k total,    70232k used, 39710088k free,   475876k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND

 9587 root      20   0 1145m 1.0g 1944 S  6.6 13.1   0:28.78
qemu-system-x86

 9525 root      20   0 1143m 1.0g 1900 S  6.3 13.1   0:27.26
qemu-system-x86

 9305 root      20   0 1143m 1.0g 1900 S  5.0 13.1   0:22.86
qemu-system-x86


**** opreport -l  --symbols | less
CPU: CPU with timer interrupt, speed 0 MHz (estimated)
Profiling through timer interrupt
samples  %        image name               app name
symbol name
418814   98.5250  no-vmlinux               no-vmlinux               (no
symbols)
1228      0.2889  qemu-system-x86_64       qemu-system-x86_64
main_loop_wait
888       0.2089  libpthread-2.8.so        libpthread-2.8.so
__read_nocancel
...

**** opreport -l
/opt/kvm-86-vnc-patch.oprofile/usr/bin/qemu-system-x86_64 --symbols |
less

CPU: CPU with timer interrupt, speed 0 MHz (estimated)
Profiling through timer interrupt
samples  %        image name               symbol name
1036     52.2441  qemu-system-x86_64       main_loop_wait
155       7.8164  qemu-system-x86_64       dynticks_rearm_timer
85        4.2864  [vdso] (tgid:9525 range:0x7fff565fe000-0x7fff565ff000)
(no symbols)
77        3.8830  qemu-system-x86_64       qemu_get_clock
63        3.1770  qemu-system-x86_64       .plt
59        2.9753  qemu-system-x86_64       host_alarm_handler
57        2.8744  qemu-system-x86_64       qemu_shutdown_requested
51        2.5719  [vdso] (tgid:9305 range:0x7fff3d9ff000-0x7fff3da00000)
(no symbols)
49        2.4710  qemu-system-x86_64       sigfd_handler
47        2.3701  qemu-system-x86_64       tap_can_send
41        2.0676  [vdso] (tgid:9587 range:0x7ffffabfe000-0x7ffffabff000)
(no symbols)
38        1.9163  qemu-system-x86_64       kvm_mutex_lock
36        1.8154  qemu-system-x86_64       kvm_main_loop
31        1.5633  qemu-system-x86_64       get_clock
29        1.4624  qemu-system-x86_64       qemu_bh_poll
24        1.2103  qemu-system-x86_64       io_thread_wakeup
23        1.1599  qemu-system-x86_64       qemu_event_read
19        0.9581  qemu-system-x86_64       qemu_powerdown_requested
18        0.9077  qemu-system-x86_64       kvm_mutex_unlock
12        0.6051  qemu-system-x86_64       qemu_kvm_notify_work
12        0.6051  qemu-system-x86_64       qemu_reset_requested
11        0.5547  qemu-system-x86_64       e1000_can_receive
6         0.3026  qemu-system-x86_64       slirp_is_inited
3         0.1513  qemu-system-x86_64       qemu_notify_event
1         0.0504  qemu-system-x86_64       qemu_set_fd_handler2


I do not understand, why only ~1036 kvm-samples produces a load of (in
sum) 18% ...

I'm not able to convert vmlinuz to vmlinux (for profiling the kernel
...) on my old FC9 - sorry.
Because I cannot update my old fc9, I will move to CentOS later - and
hopefully
get the kernel profiling running.

May these oprofile-information will help you to track down the problem -
if not,
I try to came back soon with kernel-profiling information on CentOS.

regards
Danny


--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux