All of lore.kernel.org
 help / color / mirror / Atom feed
* Why are the pages not migrated to current cpuset after 'memory_migrate' is set true
@ 2008-12-16  5:11 Miao Xie
  2008-12-16  6:26 ` Daisuke Nishimura
  2008-12-16  8:25 ` Paul Menage
  0 siblings, 2 replies; 3+ messages in thread
From: Miao Xie @ 2008-12-16  5:11 UTC (permalink / raw)
  To: Paul Menage; +Cc: Linux-Kernel

Hi, Paul

I found the pages that task had allocated to it on nodes in its previous cpuset
were not migrated to the tasks' current cpuset after 'memory_migrate' was set
true. It looks strange for users. Why are the pages not migrated to current
cpuset after 'memory_migrate' is set true?

Step I did
1, allocate pages on cpuset (mems is 0, memory_migrate is 0)
2, change cpuset's mems (mems: 0 -> 1)
3, change cpuset's memory_migrate(memory_migrate: 0 -> 1) 
 
Regards
Miao Xie


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

* Re: Why are the pages not migrated to current cpuset after 'memory_migrate' is set true
  2008-12-16  5:11 Why are the pages not migrated to current cpuset after 'memory_migrate' is set true Miao Xie
@ 2008-12-16  6:26 ` Daisuke Nishimura
  2008-12-16  8:25 ` Paul Menage
  1 sibling, 0 replies; 3+ messages in thread
From: Daisuke Nishimura @ 2008-12-16  6:26 UTC (permalink / raw)
  To: miaox; +Cc: nishimura, Paul Menage, Linux-Kernel

Hi.

On Tue, 16 Dec 2008 13:11:57 +0800, Miao Xie <miaox@cn.fujitsu.com> wrote:
> Hi, Paul
> 
> I found the pages that task had allocated to it on nodes in its previous cpuset
> were not migrated to the tasks' current cpuset after 'memory_migrate' was set
> true. It looks strange for users. Why are the pages not migrated to current
> cpuset after 'memory_migrate' is set true?
> 
I don't know the reason of current behavior, but

> Step I did
> 1, allocate pages on cpuset (mems is 0, memory_migrate is 0)
> 2, change cpuset's mems (mems: 0 -> 1)
> 3, change cpuset's memory_migrate(memory_migrate: 0 -> 1) 
>  
from/to which node kernel should migrate pages in general ?

Should kernel remember previous value of "mems" ? What if we change "mems"
several times before setting memory_migrate ON ?

IMHO, current behavior is not so strange. All users have to do is
set memory_migrate ON *before* changing "mems" or attaching task
if they want to migrate pages.


Thanks,
Daisuke Nishimura.

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

* Re: Why are the pages not migrated to current cpuset after  'memory_migrate' is set true
  2008-12-16  5:11 Why are the pages not migrated to current cpuset after 'memory_migrate' is set true Miao Xie
  2008-12-16  6:26 ` Daisuke Nishimura
@ 2008-12-16  8:25 ` Paul Menage
  1 sibling, 0 replies; 3+ messages in thread
From: Paul Menage @ 2008-12-16  8:25 UTC (permalink / raw)
  To: miaox; +Cc: Linux-Kernel

On Mon, Dec 15, 2008 at 9:11 PM, Miao Xie <miaox@cn.fujitsu.com> wrote:
> I found the pages that task had allocated to it on nodes in its previous cpuset
> were not migrated to the tasks' current cpuset after 'memory_migrate' was set
> true. It looks strange for users. Why are the pages not migrated to current
> cpuset after 'memory_migrate' is set true?
>
> Step I did
> 1, allocate pages on cpuset (mems is 0, memory_migrate is 0)
> 2, change cpuset's mems (mems: 0 -> 1)
> 3, change cpuset's memory_migrate(memory_migrate: 0 -> 1)

As Daisuke says, migration only occurs when the mems file is changed
*after* memory_migrate has been set to 1.

Paul

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

end of thread, other threads:[~2008-12-16  8:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-16  5:11 Why are the pages not migrated to current cpuset after 'memory_migrate' is set true Miao Xie
2008-12-16  6:26 ` Daisuke Nishimura
2008-12-16  8:25 ` Paul Menage

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.