Re: nr_local_pages and local_pages

Andrea Arcangeli (andrea@suse.de)
Sat, 13 Oct 2001 00:55:26 +0200


On Sat, Oct 13, 2001 at 12:45:27AM +0200, Ortiz Samuel wrote:
> 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 ?

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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/