lkml.org 
[lkml]   [2001]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: nr_local_pages and local_pages
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/

\
 
 \ /
  Last update: 2005-03-22 13:08    [W:0.036 / U:1.728 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site