Re: [tip:sched/core] sched/numa: Delay retrying placement for automatic NUMA balance after wake_affine()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [tip:sched/core] sched/numa: Delay retrying placement for automatic NUMA balance after wake_affine()
- From: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 9 May 2018 17:34:10 +0100
- Cc: torvalds@xxxxxxxxxxxxxxxxxxxx, tglx@xxxxxxxxxxxxx, mingo@xxxxxxxxxx, hpa@xxxxxxxxx, efault@xxxxxx, linux-kernel@xxxxxxxxxxxxxxx, matt@xxxxxxxxxxxxxxxxxxx, peterz@xxxxxxxxxxxxx, ggherdovich@xxxxxxx, linux-tip-commits@xxxxxxxxxxxxxxx, mpe@xxxxxxxxxxxxxx
- In-reply-to: <20180509105814.GA41120@linux.vnet.ibm.com>
- References: <20180213133730.24064-7-mgorman@techsingularity.net> <tip-7347fc87dfe6b7315e74310ee1243dc222c68086@git.kernel.org> <20180507110607.GA3828@linux.vnet.ibm.com> <20180509084148.qzpsetz74pkg7g33@techsingularity.net> <20180509105814.GA41120@linux.vnet.ibm.com>
- User-agent: NeoMutt/20170912 (1.9.0)
On Wed, May 09, 2018 at 03:58:14AM -0700, Srikar Dronamraju wrote:
> In the other scenario, where wake_affine set p->numa_migrate_preferred to a
> bigger value, the task calls numa_migrate_preferred(),
> numa_migrate_preferred could be before p->numa_migrate_preferred. In
> such a case, we should have stopped the task from migration.
> However we overwrite p->numa_migrate_preferred and do the
> task_numa_migrate(). Somehow this doesn't seem to achieve what the
> commit intended.
>
> Or did I misunderstand?
>
Nope, the logic is broken. While it can be "fixed", the end result adds
complexity for very little gain. I believe the right path for the moment
is a revert and retry at a future date.
Thanks.
--
Mel Gorman
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Stable Commits]
[Linux Stable Kernel]
[Linux Kernel]
[Linux USB Devel]
[Linux Video &Media]
[Linux Audio Users]
[Yosemite News]
[Linux SCSI]