* PTE --> 2 values??
@ 2003-11-24 4:50 John Smith
2003-11-24 6:03 ` William Lee Irwin III
0 siblings, 1 reply; 2+ messages in thread
From: John Smith @ 2003-11-24 4:50 UTC (permalink / raw)
To: linux-kernel
I saw that Linux is using a 3 level page tables, pgd, pmd and pte. The value
in the pte can refer to an actual page in memory OR an address on the swap
device. How does the kernel distinguish the two values such that if the
value is refering to an swap device address, it will not lookup the address
in memory ??
John.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PTE --> 2 values??
2003-11-24 4:50 PTE --> 2 values?? John Smith
@ 2003-11-24 6:03 ` William Lee Irwin III
0 siblings, 0 replies; 2+ messages in thread
From: William Lee Irwin III @ 2003-11-24 6:03 UTC (permalink / raw)
To: John Smith; +Cc: linux-kernel
On Sun, Nov 23, 2003 at 11:50:15PM -0500, John Smith wrote:
> I saw that Linux is using a 3 level page tables, pgd, pmd and pte. The value
> in the pte can refer to an actual page in memory OR an address on the swap
> device. How does the kernel distinguish the two values such that if the
> value is refering to an swap device address, it will not lookup the address
> in memory ??
There is a present bit. All other bits are available to the OS when the
present bit says "not present". On many machines, Linux' 3-level tree is
a pure software construct, and the processor is informed of translations
in other ways (e.g. inverted pagetables, direct TLB insertion).
-- wli
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-11-24 6:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-24 4:50 PTE --> 2 values?? John Smith
2003-11-24 6:03 ` William Lee Irwin III
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.