All of lore.kernel.org
 help / color / mirror / Atom feed
* about the funtion call memory_type_changed()
@ 2015-01-16 10:29 Li, Liang Z
  2015-01-16 10:46 ` Andrew Cooper
  0 siblings, 1 reply; 15+ messages in thread
From: Li, Liang Z @ 2015-01-16 10:29 UTC (permalink / raw)
  To: Jan Beulich, xen-devel@lists.xen.org
  Cc: Zhang, Yang Z, keir@xen.org, Tian, Kevin, Tim Deegan, Dong, Eddie

Hi Jan,

I found the restore process of the live migration is quit long, so I try to find out what's going on.
By debugging, I found the most time consuming process is restore the VM's MTRR MSR,
The process is done in the function hvm_load_mtrr_msr(), it will call the
memory_type_changed(), which eventually call the time consuming function
flush_all().

All this is caused by adding the memory_type_changed in your patch, here is the link
http://lists.xen.org/archives/html/xen-devel/2014-03/msg03792.html,

I am not sure if it's necessary to call flush_all, even it's necessary,  call the function
 hvm_load_mtrr_msr one time will cause dozens call of flush_all, and each call of the
 flush_all function will consume about 8 milliseconds, in my test environment, the VM
 has 4 VCPUs, the hvm_load_mtrr_msr() will be called four times, and totally consumes
 about 500 milliseconds. Obviously, there are too many flush_all calls.

 I think something should be done to solve this issue, do you think so?

Liang

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

end of thread, other threads:[~2015-01-23  6:11 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-16 10:29 about the funtion call memory_type_changed() Li, Liang Z
2015-01-16 10:46 ` Andrew Cooper
2015-01-16 11:54   ` Jan Beulich
2015-01-16 11:59     ` Andrew Cooper
2015-01-21 10:15     ` Li, Liang Z
2015-01-21 10:31       ` Jan Beulich
2015-01-21 11:14         ` Li, Liang Z
2015-01-21 11:21           ` Jan Beulich
2015-01-22  4:28             ` Li, Liang Z
2015-01-22  5:07               ` Tian, Kevin
2015-01-22  5:15         ` Tian, Kevin
2015-01-22  7:44           ` Zhang, Yang Z
2015-01-22  9:13             ` Jan Beulich
2015-01-23  5:55               ` Li, Liang Z
2015-01-23  6:11                 ` Tian, Kevin

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.