Does every process have its own page table?
Asked Answered
D

2

54

Does every process have its own page table or does it simply add it's page entries into one big page table?

Dogleg answered 7/12, 2010 at 20:35 Comment(1)
By the way if you get to learning about the translation lookaside buffer, it will be less confusing if you know that the translation lookaside buffer is reloaded for the current process when there is a context switch.Terti
I
67

Yes every process has its own pagetables. They might be shared with the parent process(copy on write) or with other processes(shared memory). But in general every process has its own.

Illicit answered 7/12, 2010 at 20:40 Comment(2)
How would system handle having a considerable number of processes running (which is not unusual) since all the page tables would need to be in kernel memory assuming kernel space usually doesn't exceed 1GB ?Rowe
@Rowe believe the page table of each process is in process's user space. why do you think all page tables should be in the kernel memory? The global page frame structure, which is a huge array is in kernel space. For process's, I don't think so.Ruthenious
W
6

Yes, unless you use an inverted page table see this answer. Because an inverted page table is global, each entry must also contain which process it belongs to.

Wharve answered 9/9, 2014 at 4:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.