On Fri, Jul 12, 2019 at 05:11:25PM +0800, 王贇 wrote: > > > On 2019/7/12 下午3:58, Peter Zijlstra wrote: > [snip] > >>> > >>> Then our task t1 should be accounted to B (as you do), but also to A and > >>> R. > >> > >> I get the point but not quite sure about this... > >> > >> Not like pages there are no hierarchical limitation on locality, also tasks > > > > You can use cpusets to affect that. > > Could you please give more detail on this? Documentation/cgroup-v1/cpusets.txt Look for mems_allowed.