Re: [PATCH] sched: select 'idle' cfs_rq per task-group to prevent tg-internal imbalance
From: Michael wang
Date: Sun Jul 13 2014 - 21:31:11 EST
On 07/12/2014 12:11 AM, Rik van Riel wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
>> That's full wake balance.. if that was cheap,
>> select_idle_sibling() would not exist.
> Full wake balance iterates over all the groups in the system,
> select_idle_sibling only over one LLC domain.
Furthermore, balance will calculate the load and do comparison, which
cost many cycles, while select_idle_sibling() just check idle status.
> If no CPU in the LLC domain is idle, select_idle_sibling will
> iterate over all of them.
Just the first cpu of groups, for example the cpu0:
cpu0 cpu1 cpu2 cpu3
The thing we'll check is:
That's really cheap compared with balance path...
During this iteration, which the
> code already does, it should be possible to identify the least
> loaded of the CPUs and pick that one.
That will make select_idle_sibling() more close to balance path(just the
start domain lower), IMHO this seems like not such a good idea... what
we gain doesn't worth the overhead.
But if we have testing show this modify could benefit most of the
workloads (I don't think so but who knows...), then we'll have the
reason to add some load comparison logical inside that quick path ;-)
> - --
> All rights reversed
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
> -----END PGP SIGNATURE-----
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/