Re: [PATCH v2 4/4] numa: introduce numa cling feature

2019-07-08 Thread 王贇
On 2019/7/8 下午4:07, Hillf Danton wrote: > > On Mon, 8 Jul 2019 10:25:27 +0800 Michael Wang wrote: >> /* Attempt to migrate a task to a CPU on the preferred node. */ >> static void numa_migrate_preferred(struct task_struct *p) >> { >> +bool failed, target; >> unsigned long interval = HZ; >

[PATCH v2 4/4] numa: introduce numa cling feature

2019-07-07 Thread 王贇
Although we paid so many effort to settle down task on a particular node, there are still chances for a task to leave it's preferred node, that is by wakeup, numa swap migrations or load balance. When we are using cpu cgroup in share way, since all the workloads see all the cpus, it could be reall