[lkml]   [2002]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC] Page table sharing

On Tue, 19 Feb 2002, Daniel Phillips wrote:
> >
> > At that point you might as well make the TLB shootdown global (ie you keep
> > track of a mask of CPU's whose TLB's you want to kill, and any pmd that
> > has count > 1 just makes that mask be "all CPU's").
> How do we know when to do the global tlb flush?

See above.

Basically, the algorithm is:

invalidate_cpu_mask = 0;

.. for each page swapped out ..

pte = ptep_get_and_clear(ptep);
mask = mm->cpu_vm_mask;
if (page_count(pmd_page) > 1)
mask = ~0UL;
invalidate_cpu_mask |= mask;

and then at the end you just do

for_each_page_saved() {

(yeah, yeah, add cache coherency etc).


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:24    [W:0.086 / U:0.004 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site