* leave_mm() and lazy TLB mode
@ 2006-10-28 17:23 Dong Feng
2006-10-29 0:18 ` Dong Feng
0 siblings, 1 reply; 2+ messages in thread
From: Dong Feng @ 2006-10-28 17:23 UTC (permalink / raw)
To: linux-kernel
There are several places where some comments say leave_mm() disables
TLB flush on CPUs in lazy TLB mode.
My question may be silly, ...
leave_mm() change the value of CR3 register. In my understanding, that
causes TLB flush. Does this contradict with the definition of lazy TLB
mode?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: leave_mm() and lazy TLB mode
2006-10-28 17:23 leave_mm() and lazy TLB mode Dong Feng
@ 2006-10-29 0:18 ` Dong Feng
0 siblings, 0 replies; 2+ messages in thread
From: Dong Feng @ 2006-10-29 0:18 UTC (permalink / raw)
To: linux-kernel
I read source code more and now I understand that the effect of
leave_mm() is not only
1. bypassing the invocation to local_flush_tlb(), but also
2. prevent the curent CPU from receiving any more INVALIDATE_TLB_VECTOR IPI.
Some material makes me understand the lazy TLB mode this way, that is,
a CPU's TLB will not be flushed since it enters lazy TLB mode till it
return to normal TLB mode.
But according to the source code, it seems that a CPU still has to
undergo at most one time TLB flush, that is, the flush caused by
loading CR3 with swapper_pg_dir.
Could any one confirm whether my original understanding and my
corrective understanding is correct? Thank you very much.
2006/10/29, Dong Feng <middle.fengdong@gmail.com>:
> There are several places where some comments say leave_mm() disables
> TLB flush on CPUs in lazy TLB mode.
>
> My question may be silly, ...
>
> leave_mm() change the value of CR3 register. In my understanding, that
> causes TLB flush. Does this contradict with the definition of lazy TLB
> mode?
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-10-29 0:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-28 17:23 leave_mm() and lazy TLB mode Dong Feng
2006-10-29 0:18 ` Dong Feng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®