[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4D643E1B.7050507@linux.intel.com>
Date: Tue, 22 Feb 2011 14:52:11 -0800
From: Andi Kleen <ak@...ux.intel.com>
To: David Rientjes <rientjes@...gle.com>
CC: Andi Kleen <andi@...stfloor.org>,
Andrew Morton <akpm@...ux-foundation.org>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org,
Andrea Arcangeli <aarcange@...hat.com>, lwoodman@...hat.com
Subject: Re: [PATCH 6/8] Add __GFP_OTHER_NODE flag
> You could make the same argument for anything using kmalloc_node() since
> preferred_zone may very well not be on the allocating cpu's node.
You're right. It is not always, that is why I defined a new flag. In the
cases where the flag
is passed it is.
> So you
> either define NUMA_LOCAL to account for when a cpu allocates memory local
> to itself (as it's name implies) or you define it to account for when
> memory comes from the preferred_zone's node as determined by the zonelist.
That's already numa_hit as you say.
I just don't think "local to some random kernel daemon that means
nothing to the user"
is a useful definition for local_hit.
When I defined the counter I intended it to be local to the user
process. It always was like
that too, just THP changed the rules.
-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists