From: Tim Chen <tim.c.chen@linux.intel.com>
To: Parth Shah <parth@linux.ibm.com>,
linux-kernel@vger.kernel.org,
Peter Zijlstra <peterz@infradead.org>,
Patrick Bellasi <patrick.bellasi@arm.com>,
subhra mazumdar <subhra.mazumdar@oracle.com>,
Valentin Schneider <valentin.schneider@arm.com>
Cc: mingo@redhat.com, morten.rasmussen@arm.com,
dietmar.eggemann@arm.com, pjt@google.com,
vincent.guittot@linaro.org, quentin.perret@arm.com,
dhaval.giani@oracle.com, daniel.lezcano@linaro.org,
tj@kernel.org, rafael.j.wysocki@intel.com, qais.yousef@arm.com
Subject: Re: Usecases for the per-task latency-nice attribute
Date: Thu, 19 Sep 2019 09:27:20 -0700 [thread overview]
Message-ID: <34a63eac-ecd2-9bf5-74a1-7100faf55abf@linux.intel.com> (raw)
In-Reply-To: <707610a5-3344-f0ac-5536-73c9565bc1c7@linux.ibm.com>
On 9/19/19 1:37 AM, Parth Shah wrote:
>
>>
>> $> Separating AVX512 tasks and latency sensitive tasks on separate cores
>> -------------------------------------------------------------------------
>> Another usecase we are considering is to segregate those workload that will pull down
>> core cpu frequency (e.g. AVX512) from workload that are latency sensitive.
>> There are certain tasks that need to provide a fast response time (latency sensitive)
>> and they are best scheduled on cpu that has a lighter load and not have other
>> tasks running on the sibling cpu that could pull down the cpu core frequency.
>>
>> Some users are running machine learning batch tasks with AVX512, and have observed
>> that these tasks affect the tasks needing a fast response. They have to
>> rely on manual CPU affinity to separate these tasks. With appropriate
>> latency hint on task, the scheduler can be taught to separate them.
>>
>
> Thanks for listing out your usecase.
>
> This is interesting. If scheduler has the knowledge of AVX512 tasks then
> with these interface the scheduler can refrain from picking such core
> occupying AVX512 tasks for the task with "latency-nice = -19".
>
> So I guess for this specific use-case, the value for such per-task
> attribute should have range (most probably [-19,20]) and the name
> "latency-nice" also suits the need.
Yes.
>
> Do you have any specific values in mind for such attr?
Not really. I assume a [-19 20] range that the user who launch the
task will set. Probably something towards the -19 end for latency
sensitive task and something towards the 20 end for AVX512 tasks. And 0
as default for most tasks.
Tim
next prev parent reply other threads:[~2019-09-19 16:27 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-18 12:41 Parth Shah
2019-09-18 14:18 ` Patrick Bellasi
2019-09-18 15:22 ` Vincent Guittot
2019-09-18 15:46 ` Patrick Bellasi
2019-09-18 16:00 ` Vincent Guittot
2019-09-18 15:42 ` Valentin Schneider
2019-09-19 16:41 ` Parth Shah
2019-09-19 18:07 ` Valentin Schneider
2019-09-27 13:53 ` Pavel Machek
2019-09-19 7:01 ` Parth Shah
2019-09-18 17:16 ` Tim Chen
2019-09-19 8:37 ` Parth Shah
2019-09-19 16:27 ` Tim Chen [this message]
2019-09-19 9:06 ` David Laight
2019-09-19 16:30 ` Tim Chen
2019-09-19 14:43 ` Qais Yousef
2019-09-20 10:45 ` Parth Shah
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=34a63eac-ecd2-9bf5-74a1-7100faf55abf@linux.intel.com \
--to=tim.c.chen@linux.intel.com \
--cc=daniel.lezcano@linaro.org \
--cc=dhaval.giani@oracle.com \
--cc=dietmar.eggemann@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=morten.rasmussen@arm.com \
--cc=parth@linux.ibm.com \
--cc=patrick.bellasi@arm.com \
--cc=peterz@infradead.org \
--cc=pjt@google.com \
--cc=qais.yousef@arm.com \
--cc=quentin.perret@arm.com \
--cc=rafael.j.wysocki@intel.com \
--cc=subhra.mazumdar@oracle.com \
--cc=tj@kernel.org \
--cc=valentin.schneider@arm.com \
--cc=vincent.guittot@linaro.org \
/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
Powered by JetHome