All of lore.kernel.org
 help / color / mirror / Atom feed
* gettimeofday() vsyscall for kvm-clock?
@ 2012-05-21 20:26 Andrew Theurer
  2012-05-21 20:36 ` Marcelo Tosatti
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Theurer @ 2012-05-21 20:26 UTC (permalink / raw)
  To: kvm; +Cc: Marcelo Tosatti

Wondering if a user-space gettimofday() for kvm-clock has been 
considered before.  I am seeing a pretty large difference in performance 
between tsc and kvm-clock.  I have to assume at least some of this is 
due to the mode switch for kvm-clock.  Here are the results:

(this is a 16 vCPU VM on a 16 thread 2S Nehalem-EP host, looped 
gettimeofday() calls on all vCPUs)

tsc:		.0645 usec per call
kvm-clock: 	.4222 usec per call (6.54x)


-Andrew Theurer


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

end of thread, other threads:[~2012-05-21 22:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-21 20:26 gettimeofday() vsyscall for kvm-clock? Andrew Theurer
2012-05-21 20:36 ` Marcelo Tosatti
2012-05-21 22:13   ` Andrew Theurer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.