* INVLPG Instruction
@ 2011-11-13 0:59 Xin Tong
2011-11-13 2:37 ` Arjan van de Ven
0 siblings, 1 reply; 2+ messages in thread
From: Xin Tong @ 2011-11-13 0:59 UTC (permalink / raw)
To: linux-kernel
Hello
When a process has a page fault and Linux swaps out a page ( no more
free page ) from another process and give it to the page-faulting
process. Typically a INVLPG is used to invalidate entries in the TLB.
I would like to know whether INVLPG is global ( i.e. across all cores
)? How does the process which Linux stole the page from get informed (
how is its tlb invalidated) ?
Thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: INVLPG Instruction
2011-11-13 0:59 INVLPG Instruction Xin Tong
@ 2011-11-13 2:37 ` Arjan van de Ven
0 siblings, 0 replies; 2+ messages in thread
From: Arjan van de Ven @ 2011-11-13 2:37 UTC (permalink / raw)
To: Xin Tong; +Cc: linux-kernel
On Sat, 12 Nov 2011 19:59:44 -0500
Xin Tong <xerox.time.tech@gmail.com> wrote:
> Hello
>
> When a process has a page fault and Linux swaps out a page ( no more
> free page ) from another process and give it to the page-faulting
> process. Typically a INVLPG is used to invalidate entries in the TLB.
> I would like to know whether INVLPG is global ( i.e. across all cores
> )? How does the process which Linux stole the page from get informed (
> how is its tlb invalidated) ?
invlpg is not "global" in the way you mean it (nor in the sense of
"global pte's").
The kernel will do an IPI to the processors that have a possibility to
have this page in the TLB and do a local flush there.
--
Arjan van de Ven Intel Open Source Technology Centre
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-13 2:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-13 0:59 INVLPG Instruction Xin Tong
2011-11-13 2:37 ` Arjan van de Ven
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®