[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b1a3aebf-e699-23ce-b7b8-06b6155f3dbe@linux.alibaba.com>
Date: Tue, 23 Apr 2019 17:33:25 +0800
From: 王贇 <yun.wang@...ux.alibaba.com>
To: Peter Zijlstra <peterz@...radead.org>
Cc: hannes@...xchg.org, mhocko@...nel.org, vdavydov.dev@...il.com,
Ingo Molnar <mingo@...hat.com>, linux-kernel@...r.kernel.org,
linux-mm@...ck.org
Subject: Re: [RFC PATCH 1/5] numa: introduce per-cgroup numa balancing
locality, statistic
On 2019/4/23 下午4:47, Peter Zijlstra wrote:
> On Mon, Apr 22, 2019 at 10:11:24AM +0800, 王贇 wrote:
>> + p->numa_faults_locality[mem_node == numa_node_id() ? 4 : 3] += pages;
>
> Possibly: 3 + !!(mem_node = numa_node_id()), generates better code.
Sounds good~ will apply in next version.
Regards,
Michael Wang
>
Powered by blists - more mailing lists