public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Could we do immediate pte zaps in vunmap?
@ 2010-11-26  8:10 Jeremy Fitzhardinge
  2010-11-27 10:36 ` Nick Piggin
  0 siblings, 1 reply; 9+ messages in thread
From: Jeremy Fitzhardinge @ 2010-11-26  8:10 UTC (permalink / raw)
  To: Nick Piggin; +Cc: Xen-devel@lists.xensource.com, Linux Kernel Mailing List

What if vm_unmap_ram() and co. immediately zeroed out the ptes, but
lazily deferred the tlb flushes?  It seems to me there's no benefit in
batching up the pte clearing since that can't be amortized like the tlb
flush.

I think that would solve the problem we have with the interactions
between lazy unmap and Xen.  The issue is having stray pte entries
around (because Xen keeps track of those as part of its page-type
mechanism), but stale tlb entries are no problem.

Thanks,
    J

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

end of thread, other threads:[~2010-12-01  8:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-26  8:10 Could we do immediate pte zaps in vunmap? Jeremy Fitzhardinge
2010-11-27 10:36 ` Nick Piggin
2010-11-29 20:32   ` [PATCH RFC] vmalloc: eagerly clear ptes on vunmap Jeremy Fitzhardinge
2010-11-30 12:42     ` Nick Piggin
2010-11-30 17:45       ` Jeremy Fitzhardinge
2010-12-01  0:29     ` Andrew Morton
2010-12-01  3:09       ` Jeremy Fitzhardinge
2010-12-01  3:23         ` Andrew Morton
2010-12-01  8:16           ` Jeremy Fitzhardinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox