From: Steven Sistare <steven.sistare@oracle.com>
To: Mike Galbraith <efault@gmx.de>,
Rohit Jain <rohit.k.jain@oracle.com>,
linux-kernel@vger.kernel.org
Cc: peterz@infradead.org, mingo@redhat.com, joelaf@google.com,
jbacik@fb.com, riel@redhat.com, juri.lelli@redhat.com,
dhaval.giani@oracle.com
Subject: Re: [RFC 2/2] Introduce sysctl(s) for the migration costs
Date: Fri, 9 Feb 2018 11:10:15 -0500 [thread overview]
Message-ID: <dcc94ac7-e910-9114-2976-ac61f0ade215@oracle.com> (raw)
In-Reply-To: <1518148447.24350.34.camel@gmx.de>
On 2/8/2018 10:54 PM, Mike Galbraith wrote:
> On Thu, 2018-02-08 at 14:19 -0800, Rohit Jain wrote:
>> This patch introduces the sysctl for sched_domain based migration costs.
>> These in turn can be used for performance tuning of workloads.
>
> With this patch, we trade 1 completely bogus constant (cost is really
> highly variable) for 3, twiddling of which has zero effect unless you
> trigger a domain rebuild afterward, which is neither mentioned in the
> changelog, nor documented.
>
> bogo-numbers++ is kinda hard to love.
Yup, the domain rebuild is missing.
I am no fan of tunables, the fewer the better, but one of the several flaws
of the single figure for migration cost is that it ignores the very large
difference in cost when migrating between near vs far levels of the cache hierarchy.
Migration between CPUs of the same core should be free, as they share L1 cache.
Rohit defined a tunable for it, but IMO it could be hard coded to 0. Migration
between CPUs in different sockets is the most expensive and is represented by
the existing sysctl_sched_migration_cost tunable. Migration between CPUs in
the same core cluster, or in the same socket, is somewhere in between, as
they share L2 or L3 cache. We could avoid a separate tunable by setting it to
sysctl_sched_migration_cost / 10.
- Steve
next prev parent reply other threads:[~2018-02-09 16:11 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-08 22:19 [RFC 0/2] sched: Make idle_balance smarter about topology Rohit Jain
2018-02-08 22:19 ` [RFC 1/2] sched: reduce migration cost between faster caches for idle_balance Rohit Jain
2018-02-09 3:42 ` Mike Galbraith
2018-02-09 16:08 ` Steven Sistare
2018-02-10 6:37 ` Mike Galbraith
2018-02-15 16:35 ` Steven Sistare
2018-02-15 18:07 ` Mike Galbraith
2018-02-15 18:21 ` Steven Sistare
2018-02-15 18:39 ` Mike Galbraith
2018-02-15 18:07 ` Rohit Jain
2018-02-16 4:53 ` Mike Galbraith
2018-02-08 22:19 ` [RFC 2/2] Introduce sysctl(s) for the migration costs Rohit Jain
2018-02-09 3:54 ` Mike Galbraith
2018-02-09 16:10 ` Steven Sistare [this message]
2018-02-09 17:08 ` Mike Galbraith
2018-02-09 17:33 ` Steven Sistare
2018-02-09 17:50 ` Mike Galbraith
2018-02-12 15:28 ` Peter Zijlstra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dcc94ac7-e910-9114-2976-ac61f0ade215@oracle.com \
--to=steven.sistare@oracle.com \
--cc=dhaval.giani@oracle.com \
--cc=efault@gmx.de \
--cc=jbacik@fb.com \
--cc=joelaf@google.com \
--cc=juri.lelli@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=riel@redhat.com \
--cc=rohit.k.jain@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox