public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* idle load
@ 2008-03-28 23:41 Antoine Martin
  2008-03-29 20:42 ` Dor Laor
  0 siblings, 1 reply; 3+ messages in thread
From: Antoine Martin @ 2008-03-28 23:41 UTC (permalink / raw)
  To: kvm-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

Guests seem to be doing a lot of timer related polling, is there any way
to reduce that (which would reduce load on the host):

select(0, [], NULL, NULL, {0, 0})       = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {1046993, 598906624}) = 0
clock_gettime(CLOCK_MONOTONIC, {1046993, 598955741}) = 0
clock_gettime(CLOCK_MONOTONIC, {1046993, 599002421}) = 0
clock_gettime(CLOCK_MONOTONIC, {1046993, 599048737}) = 0
timer_gettime(0x2, {it_interval={0, 0}, it_value={0, 0}}) = 0
timer_settime(0x2, 0, {it_interval={0, 0}, it_value={0, 11000000}},
NULL) = 0
select(4, [0 3], [], [], {0, 0})        = 0 (Timeout)
select(0, [], NULL, NULL, {0, 0})       = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {1046993, 599305034}) = 0
clock_gettime(CLOCK_MONOTONIC, {1046993, 599352080}) = 0
clock_gettime(CLOCK_MONOTONIC, {1046993, 599442433}) = 0
clock_gettime(CLOCK_MONOTONIC, {1046993, 599490141}) = 0
clock_gettime(CLOCK_MONOTONIC, {1046993, 599536708}) = 0
timer_gettime(0x2, {it_interval={0, 0}, it_value={0, 10572102}}) = 0
clock_gettime(CLOCK_MONOTONIC, {1046993, 599650500}) = 0
clock_gettime(CLOCK_MONOTONIC, {1046993, 599697967}) = 0
clock_gettime(CLOCK_MONOTONIC, {1046993, 599744129}) = 0
timer_gettime(0x2, {it_interval={0, 0}, it_value={0, 10364877}}) = 0
clock_gettime(CLOCK_MONOTONIC, {1046993, 599850495}) = 0
clock_gettime(CLOCK_MONOTONIC, {1046993, 599898120}) = 0
clock_gettime(CLOCK_MONOTONIC, {1046993, 599944263}) = 0
timer_gettime(0x2, {it_interval={0, 0}, it_value={0, 10164841}}) = 0
timer_settime(0x2, 0, {it_interval={0, 0}, it_value={0, 558000}}, NULL) = 0
clock_gettime(CLOCK_MONOTONIC, {1046993, 600340673}) = 0
clock_gettime(CLOCK_MONOTONIC, {1046993, 600389516}) = 0
clock_gettime(CLOCK_MONOTONIC, {1046993, 600436196}) = 0
timer_gettime(0x2, {it_interval={0, 0}, it_value={0, 126861}}) = 0
clock_gettime(CLOCK_MONOTONIC, {1046993, 600542537}) = 0
clock_gettime(CLOCK_MONOTONIC, {1046993, 600590172}) = 0
- --- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0)                         = 0
clock_gettime(CLOCK_MONOTONIC, {1046993, 600727594}) = 0
timer_gettime(0x2, {it_interval={0, 0}, it_value={0, 0}}) = 0
timer_settime(0x2, 0, {it_interval={0, 0}, it_value={0, 10000000}},
NULL) = 0
select(4, [0 3], [], [], {0, 0})        = 0 (Timeout)
select(0, [], NULL, NULL, {0, 0})       = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {1046993, 600978104}) = 0
clock_gettime(CLOCK_MONOTONIC, {1046993, 601024560}) = 0
clock_gettime(CLOCK_MONOTONIC, {1046993, 601070676}) = 0
clock_gettime(CLOCK_MONOTONIC, {1046993, 601117316}) = 0
timer_gettime(0x2, {it_interval={0, 0}, it_value={0, 9665212}}) = 0
timer_settime(0x2, 0, {it_interval={0, 0}, it_value={0, 9000000}}, NULL) = 0
select(4, [0 3], [], [], {0, 10000})    = 0 (Timeout)
select(0, [], NULL, NULL, {0, 0})       = 0 (Timeout)


Cheers
Antoine
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREKAAYFAkftgjgACgkQGK2zHPGK1rt2XwCeJa8Z2dt/D8jxQCpTeRZRXfOU
fqEAn25oLryZoMbZxli2RepgoC9pSK9M
=5StJ
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

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

* Re: idle load
  2008-03-28 23:41 idle load Antoine Martin
@ 2008-03-29 20:42 ` Dor Laor
  2008-04-05  8:57   ` Antoine Martin
  0 siblings, 1 reply; 3+ messages in thread
From: Dor Laor @ 2008-03-29 20:42 UTC (permalink / raw)
  To: Antoine Martin; +Cc: kvm-devel


On Fri, 2008-03-28 at 23:41 +0000, Antoine Martin wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> 
> Hi,
> 
> Guests seem to be doing a lot of timer related polling, is there any way
> to reduce that (which would reduce load on the host):
> 

It's weird we don't see any ioctl in the middle, are you sure kvm
modules are loaded?
Please provide host&guest os + qemu cmdline.

Except that output of "sudo strace -c -tt -p `pgrep qemu` & sleep 10 ;
sudo pkill strace " will help.

Another thing to do is run with -clock=[unix|rtc]

HTH,
Dor

> select(0, [], NULL, NULL, {0, 0})       = 0 (Timeout)
> clock_gettime(CLOCK_MONOTONIC, {1046993, 598906624}) = 0
> clock_gettime(CLOCK_MONOTONIC, {1046993, 598955741}) = 0
> clock_gettime(CLOCK_MONOTONIC, {1046993, 599002421}) = 0
> clock_gettime(CLOCK_MONOTONIC, {1046993, 599048737}) = 0
> timer_gettime(0x2, {it_interval={0, 0}, it_value={0, 0}}) = 0
> timer_settime(0x2, 0, {it_interval={0, 0}, it_value={0, 11000000}},
> NULL) = 0
> select(4, [0 3], [], [], {0, 0})        = 0 (Timeout)
> select(0, [], NULL, NULL, {0, 0})       = 0 (Timeout)
> clock_gettime(CLOCK_MONOTONIC, {1046993, 599305034}) = 0
> clock_gettime(CLOCK_MONOTONIC, {1046993, 599352080}) = 0
> clock_gettime(CLOCK_MONOTONIC, {1046993, 599442433}) = 0
> clock_gettime(CLOCK_MONOTONIC, {1046993, 599490141}) = 0
> clock_gettime(CLOCK_MONOTONIC, {1046993, 599536708}) = 0
> timer_gettime(0x2, {it_interval={0, 0}, it_value={0, 10572102}}) = 0
> clock_gettime(CLOCK_MONOTONIC, {1046993, 599650500}) = 0
> clock_gettime(CLOCK_MONOTONIC, {1046993, 599697967}) = 0
> clock_gettime(CLOCK_MONOTONIC, {1046993, 599744129}) = 0
> timer_gettime(0x2, {it_interval={0, 0}, it_value={0, 10364877}}) = 0
> clock_gettime(CLOCK_MONOTONIC, {1046993, 599850495}) = 0
> clock_gettime(CLOCK_MONOTONIC, {1046993, 599898120}) = 0
> clock_gettime(CLOCK_MONOTONIC, {1046993, 599944263}) = 0
> timer_gettime(0x2, {it_interval={0, 0}, it_value={0, 10164841}}) = 0
> timer_settime(0x2, 0, {it_interval={0, 0}, it_value={0, 558000}}, NULL) = 0
> clock_gettime(CLOCK_MONOTONIC, {1046993, 600340673}) = 0
> clock_gettime(CLOCK_MONOTONIC, {1046993, 600389516}) = 0
> clock_gettime(CLOCK_MONOTONIC, {1046993, 600436196}) = 0
> timer_gettime(0x2, {it_interval={0, 0}, it_value={0, 126861}}) = 0
> clock_gettime(CLOCK_MONOTONIC, {1046993, 600542537}) = 0
> clock_gettime(CLOCK_MONOTONIC, {1046993, 600590172}) = 0
> - --- SIGALRM (Alarm clock) @ 0 (0) ---
> rt_sigreturn(0)                         = 0
> clock_gettime(CLOCK_MONOTONIC, {1046993, 600727594}) = 0
> timer_gettime(0x2, {it_interval={0, 0}, it_value={0, 0}}) = 0
> timer_settime(0x2, 0, {it_interval={0, 0}, it_value={0, 10000000}},
> NULL) = 0
> select(4, [0 3], [], [], {0, 0})        = 0 (Timeout)
> select(0, [], NULL, NULL, {0, 0})       = 0 (Timeout)
> clock_gettime(CLOCK_MONOTONIC, {1046993, 600978104}) = 0
> clock_gettime(CLOCK_MONOTONIC, {1046993, 601024560}) = 0
> clock_gettime(CLOCK_MONOTONIC, {1046993, 601070676}) = 0
> clock_gettime(CLOCK_MONOTONIC, {1046993, 601117316}) = 0
> timer_gettime(0x2, {it_interval={0, 0}, it_value={0, 9665212}}) = 0
> timer_settime(0x2, 0, {it_interval={0, 0}, it_value={0, 9000000}}, NULL) = 0
> select(4, [0 3], [], [], {0, 10000})    = 0 (Timeout)
> select(0, [], NULL, NULL, {0, 0})       = 0 (Timeout)
> 
> 
> Cheers
> Antoine
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iEYEAREKAAYFAkftgjgACgkQGK2zHPGK1rt2XwCeJa8Z2dt/D8jxQCpTeRZRXfOU
> fqEAn25oLryZoMbZxli2RepgoC9pSK9M
> =5StJ
> -----END PGP SIGNATURE-----
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> kvm-devel mailing list
> kvm-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/kvm-devel


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

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

* Re: idle load
  2008-03-29 20:42 ` Dor Laor
@ 2008-04-05  8:57   ` Antoine Martin
  0 siblings, 0 replies; 3+ messages in thread
From: Antoine Martin @ 2008-04-05  8:57 UTC (permalink / raw)
  To: dor.laor; +Cc: kvm-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Dor Laor wrote:
| On Fri, 2008-03-28 at 23:41 +0000, Antoine Martin wrote:
| Hi,
|
| Guests seem to be doing a lot of timer related polling, is there any way
| to reduce that (which would reduce load on the host):
|
|
|> It's weird we don't see any ioctl in the middle, are you sure kvm
|> modules are loaded?
Ooops, the guest I traced was started before loading them...
Here is one that got started after (sorry for the line noise):

select(5, [0 4], [], [], {0, 0})        = 0 (Timeout)
select(0, [], NULL, NULL, {0, 0})       = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {1685112, 356558791}) = 0
ioctl(5, 0x4008ae61, 0x7fff4f1caff0)    = 0
ioctl(5, 0x4008ae61, 0x7fff4f1caff0)    = 0
ioctl(5, 0x4008ae61, 0x7fff4f1caff0)    = 0
ioctl(5, 0x4008ae61, 0x7fff4f1caff0)    = 0
clock_gettime(CLOCK_MONOTONIC, {1685112, 356664879}) = 0
clock_gettime(CLOCK_MONOTONIC, {1685112, 356683016}) = 0
clock_gettime(CLOCK_MONOTONIC, {1685112, 356703393}) = 0
timer_gettime(0x1, {it_interval={0, 0}, it_value={0, 0}}) = 0
timer_settime(0x1, 0, {it_interval={0, 0}, it_value={0, 19000000}},
NULL) = 0
ioctl(6, 0xae80, 0)                     = 0
ioctl(6, 0xae80, 0)                     = 0
clock_gettime(CLOCK_MONOTONIC, {1685112, 356829961}) = 0
ioctl(5, 0x4008ae61, 0x7fff4f1cb160)    = 0
clock_gettime(CLOCK_MONOTONIC, {1685112, 356866505}) = 0
clock_gettime(CLOCK_MONOTONIC, {1685112, 356886845}) = 0
timer_gettime(0x1, {it_interval={0, 0}, it_value={0, 18844990}}) = 0
ioctl(6, 0xae80, 0)                     = 0
clock_gettime(CLOCK_MONOTONIC, {1685112, 356959171}) = 0
ioctl(6, 0xae80, 0)                     = 0
ioctl(6, 0xae80, 0)                     = 0
clock_gettime(CLOCK_MONOTONIC, {1685112, 357036644}) = 0
ioctl(5, 0x4008ae61, 0x7fff4f1cb160)    = 0
clock_gettime(CLOCK_MONOTONIC, {1685112, 357072651}) = 0
clock_gettime(CLOCK_MONOTONIC, {1685112, 357092946}) = 0
timer_gettime(0x1, {it_interval={0, 0}, it_value={0, 18639127}}) = 0
timer_settime(0x1, 0, {it_interval={0, 0}, it_value={0, 9158000}}, NULL) = 0
ioctl(6, 0xae80, 0)                     = 0
ioctl(6, 0xae80, 0)                     = 0
clock_gettime(CLOCK_MONOTONIC, {1685112, 357235274}) = 0
ioctl(5, 0x4008ae61, 0x7fff4f1cb160)    = 0
clock_gettime(CLOCK_MONOTONIC, {1685112, 357271483}) = 0
clock_gettime(CLOCK_MONOTONIC, {1685112, 357293651}) = 0
timer_gettime(0x1, {it_interval={0, 0}, it_value={0, 8985696}}) = 0
ioctl(6, 0xae80, 0)                     = 0
ioctl(6, 0xae80, 0)                     = 0
clock_gettime(CLOCK_MONOTONIC, {1685112, 357386790}) = 0
ioctl(5, 0x4008ae61, 0x7fff4f1cb160)    = 0
clock_gettime(CLOCK_MONOTONIC, {1685112, 357422880}) = 0
clock_gettime(CLOCK_MONOTONIC, {1685112, 357442799}) = 0

|
|> Another thing to do is run with -clock=[unix|rtc]

What about -clock dynticks?
Isn't that going to reduce unnecessary calls?

Cheers
Antoine
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREKAAYFAkf3PvIACgkQGK2zHPGK1rtVfgCcDqdt8zWS//HEUPHdVf9I+2t9
650AnjLM9HOOqyk/Rqsev4vQmXII37jr
=1f+t
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

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

end of thread, other threads:[~2008-04-05  8:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-28 23:41 idle load Antoine Martin
2008-03-29 20:42 ` Dor Laor
2008-04-05  8:57   ` Antoine Martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox