linux-numa.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* migrate already accessed memory allocations.
@ 2010-12-05 23:37 Christos Margiolas
  2010-12-05 23:51 ` Andi Kleen
  0 siblings, 1 reply; 4+ messages in thread
From: Christos Margiolas @ 2010-12-05 23:37 UTC (permalink / raw)
  To: linux-numa

Hello,

How can I move already allocated and accessed memory to a different
node? I know how to do it, if the memory pages are not faulted, but in
my code I want to transfer enough megabytes of data to an other node
for processing them locally.


Thanks
Christos

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: migrate already accessed memory allocations.
  2010-12-05 23:37 migrate already accessed memory allocations Christos Margiolas
@ 2010-12-05 23:51 ` Andi Kleen
  2010-12-06  0:42   ` Christos Margiolas
  0 siblings, 1 reply; 4+ messages in thread
From: Andi Kleen @ 2010-12-05 23:51 UTC (permalink / raw)
  To: Christos Margiolas; +Cc: linux-numa

On Mon, Dec 06, 2010 at 12:37:32AM +0100, Christos Margiolas wrote:
> Hello,
> 
> How can I move already allocated and accessed memory to a different
> node? I know how to do it, if the memory pages are not faulted, but in
> my code I want to transfer enough megabytes of data to an other node
> for processing them locally.

With migrate_pages()

-Andi

-- 
ak@linux.intel.com -- Speaking for myself only.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: migrate already accessed memory allocations.
  2010-12-05 23:51 ` Andi Kleen
@ 2010-12-06  0:42   ` Christos Margiolas
  2010-12-06  8:48     ` Andi Kleen
  0 siblings, 1 reply; 4+ messages in thread
From: Christos Margiolas @ 2010-12-06  0:42 UTC (permalink / raw)
  To: Andi Kleen; +Cc: linux-numa

This is actually for migrating all the allocations of a node. If I
want to migrate only some pages and not all?
This is actually my problem.

Christos

On Mon, Dec 6, 2010 at 12:51 AM, Andi Kleen <andi@firstfloor.org> wrote:
> On Mon, Dec 06, 2010 at 12:37:32AM +0100, Christos Margiolas wrote:
>> Hello,
>>
>> How can I move already allocated and accessed memory to a different
>> node? I know how to do it, if the memory pages are not faulted, but in
>> my code I want to transfer enough megabytes of data to an other node
>> for processing them locally.
>
> With migrate_pages()
>
> -Andi
>
> --
> ak@linux.intel.com -- Speaking for myself only.
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: migrate already accessed memory allocations.
  2010-12-06  0:42   ` Christos Margiolas
@ 2010-12-06  8:48     ` Andi Kleen
  0 siblings, 0 replies; 4+ messages in thread
From: Andi Kleen @ 2010-12-06  8:48 UTC (permalink / raw)
  To: Christos Margiolas; +Cc: Andi Kleen, linux-numa

On Mon, Dec 06, 2010 at 01:42:06AM +0100, Christos Margiolas wrote:
> This is actually for migrating all the allocations of a node. If I
> want to migrate only some pages and not all?
> This is actually my problem.

That's move_pages() in tree, or some out of tree alternatives.

-Andi

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-12-06  8:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-05 23:37 migrate already accessed memory allocations Christos Margiolas
2010-12-05 23:51 ` Andi Kleen
2010-12-06  0:42   ` Christos Margiolas
2010-12-06  8:48     ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).