login
Header Space

 
 

mem_map array

May 8, 2008 - 8:10am
Submitted by Anonymous on May 8, 2008 - 8:10am.
Linux

please tell me whether my understanding is correct.
the purpose of
mem_map array is to refer to the struct page data structure which is always associated with a page frame.
so when, MMU translates PGD->PMD->PTE, still there is a need to access struct page for certain permissions and so on....
so there is a need to access strct page and whcih can be accessed by giving physical address and converting it into fame no and then indexing into mem_map array.
and reverse can also be done to get physical address of a page from struct_page address.

please somebody clarify whether my understanding is correct ???

Do you know about Mel

May 8, 2008 - 11:45am

Do you know about Mel Gorman's "Understanding the Linux® Virtual Memory Manager"? Version in pdf is available.

"""
Physical addresses are translated to struct pages by treating them as an index into the mem_map array.
"""
page 43 (in pdf 61).
____

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
speck-geostationary