kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Q: Stopped VM still using host cpu CPU ?
@ 2009-10-01 10:32 Daniel Schwager
  2009-10-01 11:47 ` Daniel Schwager
       [not found] ` <4AC8B6D9.7070003@redhat.com>
  0 siblings, 2 replies; 9+ messages in thread
From: Daniel Schwager @ 2009-10-01 10:32 UTC (permalink / raw)
  To: kvm; +Cc: Daniel Schwager

Hi,

we are running some stopped (sending "stop" via kvm-monitor socket) 
vm's on our system. My intention was to pause (stop) the vm's and
unpause (cont) them on demand (very fast, without time delay, within 2
seconds ..).

After 'stop'ing, the vm's still using CPU-load, like the "top" will
tell:

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

25983 root      20   0  495m 407m 1876 R  8.9  2.5 228:09.15
qemu-system-x86                                          
25523 root      20   0  495m 2040 1868 S  7.9  0.0   2700:16
qemu-system-x86                                          
19738 root      20   0 1139m  40m 1876 R  7.3  0.3   2501:57
qemu-system-x86                                          
32521 root      20   0  495m 407m 1876 S  6.9  2.5 136:23.23
qemu-system-x86                                          
21773 root      20   0  495m 407m 1876 S  5.6  2.5 575:01.44
qemu-system-x86                                          
 6720 root      20   0 2168m 2.0g 1876 R  4.6 12.9 524:55.70
qemu-system-x86                                          
 6819 root      20   0 2168m 2.0g 1876 S  4.6 12.9 489:24.24
qemu-system-x86                                          
12752 root      20   0  495m 407m 1876 S  4.6  2.5   0:44.57
qemu-system-x86                                          
22803 root      20   0 1139m 211m 1868 S  4.0  1.3   1217:21
qemu-system-x86                                          
27083 root      20   0 1139m 1.0g 1868 S  4.0  6.5 121:58.05
qemu-system-x86                                          
21970 root      20   0  495m 407m 1876 S  3.6  2.5 434:48.36
qemu-system-x86                                          
 3649 root      20   0  496m 394m 1908 S  3.3  2.5  39:41.61
qemu-system-x86                                          
19919 root      20   0  559m 402m 1880 S  3.3  2.5 469:57.14
qemu-system-x86                                          
24461 root      20   0  495m 2048 1876 S  3.3  0.0   1081:41
qemu-system-x86                                          
24619 root      20   0  688m 536m 1880 S  3.0  3.3 293:15.38
qemu-system-x86                                          
24776 root      20   0  495m 407m 1856 S  3.0  2.5  92:08.95
qemu-system-x86                                          
...

So, how can I prevent the paused/stopped VM's to use my CPU from
the hostsystem ? Is there a way to handle this ?

Sure, stop+migrating the vm to filesystem will solve my problem - but
restart
(migrate back from filesystem to RAM) takes a lot (>30 seconds) of time.


best regards 

Danny


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-10-22 13:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-01 10:32 Q: Stopped VM still using host cpu CPU ? Daniel Schwager
2009-10-01 11:47 ` Daniel Schwager
     [not found] ` <4AC8B6D9.7070003@redhat.com>
     [not found]   ` <EB31672367A401439CD5A4A10889D57B02118226@exchange.dtnet.de>
     [not found]     ` <4AC8C018.6050302@redhat.com>
2009-10-16 21:35       ` Daniel Schwager
2009-10-18  6:59         ` Avi Kivity
2009-10-18 18:29           ` Daniel Schwager
2009-10-18 18:47             ` Daniel Schwager
2009-10-18 21:57               ` Avi Kivity
2009-10-21 20:29               ` Daniel Schwager
2009-10-22 13:29                 ` Avi Kivity

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).