|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Why is 'emulate' as good as writable PT's?
Ian Pratt wrote: I was wondering, perhaps we are not just triggering writable pagetables when we shouldn't, but maybe we are flushing them back too early. I added some xen perf counters to get an idea of why we are flushing back wtpt's (run on SDET again):Are these numbers taken on a uniprocessor guest (or dom0?) Yes.
OK line 6: We seem to call cleanup_writable_pagetables unconditionally here, and if either of the active or inactive pages are used, they get flushed back. Do we always need to do this?What's the op? is it a TLB flush, invplg, or cr3 load? I don't know, but I'll find out. I think I can do that. I'll just use something similar to the EIP logging Xen has for finding out what triggered the wtpt flushes.line 8: Also call cleanup_writable_pagetables unconditionally here. Do the wtpt's always need this to happen? Is is possible the update_va_mapping call is for an address space which does not affect the wtpt?It's interesting to understand what the interaction is here. I'd like toknowline 10: Not seeing many flushes here, so I guess it's not an issue. Sorry if these questions seem odd. There's a good chance I am not "getting it" :)This is useful work. It's been on our todo list to re-profile this on newer kernels. Once upon a time we had it quite nicely tuned... Could you find out all the kernel EIPs that are triggering writeable pagetables with any frequency and list them for us. It might be good to turn everything into using update mmuop and then just turn on direct writes just for the fork case which is where we know need it. Thanks, Andrew _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |