Thread (2 messages) 2 messages, 2 authors, 2012-08-24

How to understand lowmem_reserve in a zone?

From: Parmenides <hidden>
Date: 2012-08-18 13:06:57

Hi,

    I have a question about the reseved page frames in a zone. The
physical memory is splitted into some node, which is  further divied
into some zone. For each zone, the kernel try to reserve some page
frames to statisfy requests on low memory condition. There is a
lowmem_reserve[] in a zone descriptor, its defined like:

     struct zone {
                    ....
                    unsigned long lowmem_reserve[MAX_NR_ZONES];
                    ...
     };

It is obvious that lowmem_reserve[] contains MAX_NR_ZONES elements.
But, I think just a interger is enough to record the number of  a
zone's reserved page frames. Why do we have to use a
array?Furthermore, lowmem_reserve[] merely stand for the amount. How
does the kernel mark a page frame to be reserved?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help