Skip to contentSkip to conversation

nr_local_pages and local_pages

DISCUSSION Ortiz Samuel 2 participants 2 messages Oct 12, 2001

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw
Quoted 21 lines · Ortiz Samuel

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 :

Quoted 7 lines

- nr_local_pages

- local_pages

What 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