On Thu, Mar 13, 2008 at 01:23:23AM +0200, Izik Eidus wrote: > Marcelo Tosatti wrote: > >On Wed, Mar 12, 2008 at 08:13:41PM +0200, Izik Eidus wrote: > > > >>this patch simply register the mmu cache with the shrinker. > >> > > > >Hi Izik, > > > Hello Marcelo, > > >Nice. > > > >I think you want some sort of aging mechanism here. > > well it is long time in the todo list to do some kind of lru for the > shadow mmu pages > right now it "recycle" pages in a random way... > > >Walk through all > >translations of a shadow page clearing the referenced bit of all > >mappings it holds (and moving pages with any accessed translation to the > >head of the list). > > > ok, i think i will just add a function named "sort_accessed_mmu_pages", > that will just put to the top of the list the pages pointed by the ptes > that werent accessed > and used it when i shrink, and when pages get recycled > > this what you meant right?
By "top" I suppose you mean "end". So yes, right. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel