nr_local_pages and local_pages
Hi Andrea !
I spent some time reading the balance_classzone code, but there are still
some stuff I can't get. The main ones are the meaning
and use of the
following fields in the task structure :
- nr_local_pages
- local_pages
What are they for ? What do they mean ?
Thanks in advance for your answers.
Regards,
Samuel.
___________________________________________________________
Un nouveau Nokia Game commence.
Allez sur http://fr.yahoo.com/nokiagame avant le 3 novembre pour participer à cette aventure tous médias.
Quoted 21 lines · Ortiz Samuel
Hi Andrea !
I spent some time reading the
balance_classzonecode, but there are stillsome stuff I can't get. The main ones are the meaning
and use of thefollowing fields in the task structure :
Quoted 7 lines
-
nr_local_pages-
local_pagesWhat are they for ? What do they mean ?
we're balancing memory synchronously because we need to recycle some memory for ourself in order to succeed the allocation. Now if we succeed in freeing some page we keep this page for ourself while we free the next pages. So we work for ourself and not for somebody else. With the "goto rebalance" this isn't required anymore to avoid failing allocations, but still it should be good to provide better fariness, to avoid somebody stuck freeing memory hard, and all other tasks eating the free ram that such innocent task is producing in a starved loop.
Andrea