Re: Questions about page table implementation



On Mar 31, 12:59 am, "Tilak" <megk...@xxxxxxxxx> wrote:
My questions relate to the linux page table implementation, which I
am
perusing at the moment.

Firstly, I am confused about the definition of a 'page frame' - does
it mean a 4Kb page or another concept? What is a page frame number?
How did they come up with the size of a page as 4Kb?
A page frame is a struct page, AFAIK. A 4KB page is a 'hardware' page.
A page to the CPU is a unit of management, it serves for page fault,
or protection aspect.
A page frame number is the index of the struct page in the system
mem_map, which is an array of struct page.

[snip]
Each physical page
frame is represented by a struct page, and all the structs are kept in
a global
mem map array
[/snip]

The above snip is from Mel's book, P15.

.



Relevant Pages