[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <201807311112492239674@zte.com.cn>
Date: Tue, 31 Jul 2018 11:12:49 +0800 (CST)
From: <cheng.lin130@....com.cn>
To: <peterz@...radead.org>
Cc: <mingo@...hat.com>, <linux-kernel@...r.kernel.org>,
<jiang.biao2@....com.cn>, <zhong.weidong@....com.cn>,
<tan.hu@....com.cn>
Subject: 答复: Re: [PATCH v2] sched/numa: do not balance tasks onto isolated cpus
>On Thu, Jul 26, 2018 at 04:19:08PM +0800, Cheng Lin wrote:
>> - if (!cpumask_test_cpu(arg.dst_cpu, &arg.src_task->cpus_allowed))
>> + if ((!cpumask_test_cpu(arg.dst_cpu, &arg.src_task->cpus_allowed))
>> + || !housekeeping_test_cpu(arg.dst_cpu, HK_FLAG_DOMAIN))
>> goto out;
>
>You did not read the comment I provided last time. Using isolcpus (and
>thus it's renamed houskeeping thing) is the wrong thing to do. Load
>balancing should be limited to it's root domain.
"isolcpus" is "[Deprecated - use cpusets instead]" in the lastest kernel(4.18).
Before 4.15, the option "isolcpus" is "the preferred way to isolate CPUs".
Although it is "Deprecated", but we also can use it in the lastest kernel.
And now a large number of “isolcpus” are using in the old way. Whether NUMA-balancing
should consider the “isolcpus” for forward compatibility? Or in some branches?
<div class="zcontentRow"><p>>On Thu, Jul 26, 2018 at 04:19:08PM +0800, Cheng Lin wrote:<br></p><div><div class="zhistoryRow" style="display:block"><div id="zwriteHistoryContainer"><div class="control-group zhistoryPanel"><div class="zhistoryContent">>> - if (!cpumask_test_cpu(arg.dst_cpu, &arg.src_task->cpus_allowed))<br>>> + if ((!cpumask_test_cpu(arg.dst_cpu, &arg.src_task->cpus_allowed))<br>>> + || !housekeeping_test_cpu(arg.dst_cpu, HK_FLAG_DOMAIN))<br>>> goto out;<br>><br>>You did not read the comment I provided last time. Using isolcpus (and<br>>thus it's renamed houskeeping thing) is the wrong thing to do. Load<br>>balancing should be limited to it's root domain.</div></div></div></div></div><p style="line-height: 21px; white-space: normal;"><br></p><p style="line-height: 21px; white-space: normal;">"isolcpus" is "[Deprecated - use cpusets instead]" in the lastest kernel(4.18).</p><p style="line-height: 21px; white-space: normal;">Before 4.15, the option "isolcpus" is "the preferred way to isolate CPUs". </p><p style="line-height: 21px; white-space: normal;"><br></p><p style="line-height: 21px; white-space: normal;">Although it is "Deprecated", but we also can use it in the lastest kernel. </p><p style="line-height: 21px; white-space: normal;">And now a large number of “isolcpus” are using in the old way. Whether NUMA-balancing </p><p style="line-height: 21px; white-space: normal;">should consider the “isolcpus” for forward compatibility? Or in some branches?</p><p><br></p></div>
Powered by blists - more mailing lists