[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Implementing working set tracker in xen
Thank you a lot Tim.Your Method which consist of using shadow page table help me. However when I use the method shadow_blow_tables() I don't think it makes all page unavailable. because the the number of page fault (I get it from sh_page_fault) does not seem to increase. when shadow_blow_tables() is called this code is executed: for_each_vcpu(d, v) for ( i = 0 ; i < 4 ; i++ ) if ( !pagetable_is_null(v->arch.shadow_table[i]) ) shadow_unhook_mappings(v,pagetable_get_mfn(v->arch.shadow_table[i]), 0); I wonder about the '4' in the for loop. does it means that there is only 4 shadow page table per-vcpu? Thank you On Thu, 19 Mar 2015 16:34:46 +0000, Tim Deegan wrote: Hi, Ah, no -- for PV guests you can't use the mem_event interface. :( And the log-dirty code isn't quite what you want. But you could, e.g., turn on shadow pagetables mode and track when frames are accessed in the sh_page_fault() path. shadow_blow_tables() will thenmake all pages unavailable again. If you want to make only some pagesunavailable, you'll have to think of something cleverer. :) Cheers, Tim. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |