lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <34a63eac-ecd2-9bf5-74a1-7100faf55abf@linux.intel.com>
Date:   Thu, 19 Sep 2019 09:27:20 -0700
From:   Tim Chen <tim.c.chen@...ux.intel.com>
To:     Parth Shah <parth@...ux.ibm.com>, linux-kernel@...r.kernel.org,
        Peter Zijlstra <peterz@...radead.org>,
        Patrick Bellasi <patrick.bellasi@....com>,
        subhra mazumdar <subhra.mazumdar@...cle.com>,
        Valentin Schneider <valentin.schneider@....com>
Cc:     mingo@...hat.com, morten.rasmussen@....com,
        dietmar.eggemann@....com, pjt@...gle.com,
        vincent.guittot@...aro.org, quentin.perret@....com,
        dhaval.giani@...cle.com, daniel.lezcano@...aro.org, tj@...nel.org,
        rafael.j.wysocki@...el.com, qais.yousef@....com
Subject: Re: Usecases for the per-task latency-nice attribute

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ