Re: [PATCH v9 0/7] Make cpuid <-> nodeid mapping persistent

2016-07-26 Thread Dou Liyang
Hi, RJ 在 2016年07月26日 19:53, Rafael J. Wysocki 写道: On Tuesday, July 26, 2016 11:59:38 AM Dou Liyang wrote: 在 2016年07月26日 07:20, Andrew Morton 写道: On Mon, 25 Jul 2016 16:35:42 +0800 Dou Liyang wrote: [Problem] cpuid <-> nodeid mapping is firstly established at

Re: [PATCH v9 0/7] Make cpuid <-> nodeid mapping persistent

2016-07-26 Thread Dou Liyang
Hi, RJ 在 2016年07月26日 19:53, Rafael J. Wysocki 写道: On Tuesday, July 26, 2016 11:59:38 AM Dou Liyang wrote: 在 2016年07月26日 07:20, Andrew Morton 写道: On Mon, 25 Jul 2016 16:35:42 +0800 Dou Liyang wrote: [Problem] cpuid <-> nodeid mapping is firstly established at boot time. And workqueue

Re: [PATCH v9 0/7] Make cpuid <-> nodeid mapping persistent

2016-07-26 Thread Rafael J. Wysocki
On Tuesday, July 26, 2016 11:59:38 AM Dou Liyang wrote: > > 在 2016年07月26日 07:20, Andrew Morton 写道: > > On Mon, 25 Jul 2016 16:35:42 +0800 Dou Liyang > > wrote: > > > >> [Problem] > >> > >> cpuid <-> nodeid mapping is firstly established at boot time. And > >>

Re: [PATCH v9 0/7] Make cpuid <-> nodeid mapping persistent

2016-07-26 Thread Rafael J. Wysocki
On Tuesday, July 26, 2016 11:59:38 AM Dou Liyang wrote: > > 在 2016年07月26日 07:20, Andrew Morton 写道: > > On Mon, 25 Jul 2016 16:35:42 +0800 Dou Liyang > > wrote: > > > >> [Problem] > >> > >> cpuid <-> nodeid mapping is firstly established at boot time. And > >> workqueue caches > >> the mapping

Re: [PATCH v9 0/7] Make cpuid <-> nodeid mapping persistent

2016-07-25 Thread Dou Liyang
在 2016年07月26日 07:20, Andrew Morton 写道: On Mon, 25 Jul 2016 16:35:42 +0800 Dou Liyang wrote: [Problem] cpuid <-> nodeid mapping is firstly established at boot time. And workqueue caches the mapping in wq_numa_possible_cpumask in wq_numa_init() at boot time. When

Re: [PATCH v9 0/7] Make cpuid <-> nodeid mapping persistent

2016-07-25 Thread Dou Liyang
在 2016年07月26日 07:20, Andrew Morton 写道: On Mon, 25 Jul 2016 16:35:42 +0800 Dou Liyang wrote: [Problem] cpuid <-> nodeid mapping is firstly established at boot time. And workqueue caches the mapping in wq_numa_possible_cpumask in wq_numa_init() at boot time. When doing node online/offline,

Re: [PATCH v9 0/7] Make cpuid <-> nodeid mapping persistent

2016-07-25 Thread Tejun Heo
Hello, On Mon, Jul 25, 2016 at 05:25:49PM -0700, Andrew Morton wrote: > > Yeah, that was one of the early approaches. The issue isn't limited > > to wq. Any memory allocation can have similar issues of underlying > > node association changing and we don't have any synchronization > > mechanism

Re: [PATCH v9 0/7] Make cpuid <-> nodeid mapping persistent

2016-07-25 Thread Tejun Heo
Hello, On Mon, Jul 25, 2016 at 05:25:49PM -0700, Andrew Morton wrote: > > Yeah, that was one of the early approaches. The issue isn't limited > > to wq. Any memory allocation can have similar issues of underlying > > node association changing and we don't have any synchronization > > mechanism

Re: [PATCH v9 0/7] Make cpuid <-> nodeid mapping persistent

2016-07-25 Thread Tejun Heo
Hello, Andrew. On Mon, Jul 25, 2016 at 04:20:22PM -0700, Andrew Morton wrote: > > When a pool workqueue is initialized, if its cpumask belongs to a node, its > > pool->node will be mapped to that node. And memory used by this workqueue > > will > > also be allocated on that node. > > Plan B is

Re: [PATCH v9 0/7] Make cpuid <-> nodeid mapping persistent

2016-07-25 Thread Tejun Heo
Hello, Andrew. On Mon, Jul 25, 2016 at 04:20:22PM -0700, Andrew Morton wrote: > > When a pool workqueue is initialized, if its cpumask belongs to a node, its > > pool->node will be mapped to that node. And memory used by this workqueue > > will > > also be allocated on that node. > > Plan B is

Re: [PATCH v9 0/7] Make cpuid <-> nodeid mapping persistent

2016-07-25 Thread Andrew Morton
On Mon, 25 Jul 2016 20:11:51 -0400 Tejun Heo wrote: > Hello, Andrew. > > On Mon, Jul 25, 2016 at 04:20:22PM -0700, Andrew Morton wrote: > > > When a pool workqueue is initialized, if its cpumask belongs to a node, > > > its > > > pool->node will be mapped to that node. And

Re: [PATCH v9 0/7] Make cpuid <-> nodeid mapping persistent

2016-07-25 Thread Andrew Morton
On Mon, 25 Jul 2016 20:11:51 -0400 Tejun Heo wrote: > Hello, Andrew. > > On Mon, Jul 25, 2016 at 04:20:22PM -0700, Andrew Morton wrote: > > > When a pool workqueue is initialized, if its cpumask belongs to a node, > > > its > > > pool->node will be mapped to that node. And memory used by this

Re: [PATCH v9 0/7] Make cpuid <-> nodeid mapping persistent

2016-07-25 Thread Andrew Morton
On Mon, 25 Jul 2016 16:35:42 +0800 Dou Liyang wrote: > [Problem] > > cpuid <-> nodeid mapping is firstly established at boot time. And workqueue > caches > the mapping in wq_numa_possible_cpumask in wq_numa_init() at boot time. > > When doing node online/offline,

Re: [PATCH v9 0/7] Make cpuid <-> nodeid mapping persistent

2016-07-25 Thread Andrew Morton
On Mon, 25 Jul 2016 16:35:42 +0800 Dou Liyang wrote: > [Problem] > > cpuid <-> nodeid mapping is firstly established at boot time. And workqueue > caches > the mapping in wq_numa_possible_cpumask in wq_numa_init() at boot time. > > When doing node online/offline, cpuid <-> nodeid mapping is