Re: [PATCH RFC] sched: Add a per-thread core scheduling interface

2020-05-28 Thread Phil Auld
On Thu, May 28, 2020 at 02:17:19PM -0400 Phil Auld wrote: > On Thu, May 28, 2020 at 07:01:28PM +0200 Peter Zijlstra wrote: > > On Sun, May 24, 2020 at 10:00:46AM -0400, Phil Auld wrote: > > > On Fri, May 22, 2020 at 05:35:24PM -0400 Joel Fernandes wrote: > > > > On Fri, May 22, 2020 at 02:59:05PM

Re: [PATCH RFC] sched: Add a per-thread core scheduling interface

2020-05-28 Thread Joel Fernandes
Hi Peter, On Thu, May 28, 2020 at 07:01:28PM +0200, Peter Zijlstra wrote: > On Sun, May 24, 2020 at 10:00:46AM -0400, Phil Auld wrote: > > On Fri, May 22, 2020 at 05:35:24PM -0400 Joel Fernandes wrote: > > > On Fri, May 22, 2020 at 02:59:05PM +0200, Peter Zijlstra wrote: > > > [..] > > > > > > It

Re: [PATCH RFC] sched: Add a per-thread core scheduling interface

2020-05-28 Thread Phil Auld
On Thu, May 28, 2020 at 07:01:28PM +0200 Peter Zijlstra wrote: > On Sun, May 24, 2020 at 10:00:46AM -0400, Phil Auld wrote: > > On Fri, May 22, 2020 at 05:35:24PM -0400 Joel Fernandes wrote: > > > On Fri, May 22, 2020 at 02:59:05PM +0200, Peter Zijlstra wrote: > > > [..] > > > > > > It doens't

Re: [PATCH RFC] sched: Add a per-thread core scheduling interface

2020-05-28 Thread Peter Zijlstra
On Sun, May 24, 2020 at 10:00:46AM -0400, Phil Auld wrote: > On Fri, May 22, 2020 at 05:35:24PM -0400 Joel Fernandes wrote: > > On Fri, May 22, 2020 at 02:59:05PM +0200, Peter Zijlstra wrote: > > [..] > > > > > It doens't allow tasks for form their own groups (by for example > > > > > setting > >

Re: [PATCH RFC] sched: Add a per-thread core scheduling interface

2020-05-28 Thread Joel Fernandes
On Sun, May 24, 2020 at 10:00:46AM -0400, Phil Auld wrote: > On Fri, May 22, 2020 at 05:35:24PM -0400 Joel Fernandes wrote: > > On Fri, May 22, 2020 at 02:59:05PM +0200, Peter Zijlstra wrote: > > [..] > > > > > It doens't allow tasks for form their own groups (by for example > > > > > setting > >

Re: [PATCH RFC] sched: Add a per-thread core scheduling interface

2020-05-24 Thread Phil Auld
On Fri, May 22, 2020 at 05:35:24PM -0400 Joel Fernandes wrote: > On Fri, May 22, 2020 at 02:59:05PM +0200, Peter Zijlstra wrote: > [..] > > > > It doens't allow tasks for form their own groups (by for example setting > > > > the key to that of another task). > > > > > > So for this, I was

Re: [PATCH RFC] sched: Add a per-thread core scheduling interface

2020-05-22 Thread Joel Fernandes
On Fri, May 22, 2020 at 02:59:05PM +0200, Peter Zijlstra wrote: [..] > > > It doens't allow tasks for form their own groups (by for example setting > > > the key to that of another task). > > > > So for this, I was thinking of making the prctl pass in an integer. And 0 > > would mean untagged.

Re: [PATCH RFC] sched: Add a per-thread core scheduling interface

2020-05-22 Thread Linus Torvalds
On Thu, May 21, 2020 at 2:58 PM Jesse Barnes wrote: > > Expanding on this a little, we're working on a couple of projects that > should provide results like these for upstream. One is continuously > rebasing our upstream backlog onto new kernels for testing purposes > (the idea here is to make

Re: [PATCH RFC] sched: Add a per-thread core scheduling interface

2020-05-22 Thread Peter Zijlstra
On Thu, May 21, 2020 at 09:47:05AM -0400, Joel Fernandes wrote: > Hi Peter, > Thanks for the comments. > > On Thu, May 21, 2020 at 10:51:22AM +0200, Peter Zijlstra wrote: > > On Wed, May 20, 2020 at 06:26:42PM -0400, Joel Fernandes (Google) wrote: > > > Add a per-thread core scheduling interface

Re: [PATCH RFC] sched: Add a per-thread core scheduling interface

2020-05-21 Thread Jesse Barnes
On Thu, May 21, 2020 at 1:45 PM Joel Fernandes wrote: > > Hi Linus, > > On Thu, May 21, 2020 at 11:31:38AM -0700, Linus Torvalds wrote: > > On Wed, May 20, 2020 at 3:26 PM Joel Fernandes (Google) > > wrote: > > Generally throughput benchmarks are much easier to do, how do you do > > this latency

Re: [PATCH RFC] sched: Add a per-thread core scheduling interface

2020-05-21 Thread Joel Fernandes
Hi Linus, On Thu, May 21, 2020 at 11:31:38AM -0700, Linus Torvalds wrote: > On Wed, May 20, 2020 at 3:26 PM Joel Fernandes (Google) > wrote: > > > > ChromeOS will use core-scheduling to securely enable hyperthreading. > > This cuts down the keypress latency in Google docs from 150ms to 50ms > >

Re: [PATCH RFC] sched: Add a per-thread core scheduling interface

2020-05-21 Thread Vineeth Remanan Pillai
On Thu, May 21, 2020 at 9:47 AM Joel Fernandes wrote: > > > It doens't allow tasks for form their own groups (by for example setting > > the key to that of another task). > > So for this, I was thinking of making the prctl pass in an integer. And 0 > would mean untagged. Does that sound good to

Re: [PATCH RFC] sched: Add a per-thread core scheduling interface

2020-05-21 Thread Linus Torvalds
On Wed, May 20, 2020 at 3:26 PM Joel Fernandes (Google) wrote: > > ChromeOS will use core-scheduling to securely enable hyperthreading. > This cuts down the keypress latency in Google docs from 150ms to 50ms > while improving the camera streaming frame rate by ~3%. I'm assuming this is "compared

Re: [PATCH RFC] sched: Add a per-thread core scheduling interface(Internet mail)

2020-05-21 Thread Joel Fernandes
On Thu, May 21, 2020 at 04:09:50AM +, benbjiang(蒋彪) wrote: > > > > On May 21, 2020, at 6:26 AM, Joel Fernandes (Google) > > wrote: > > > > Add a per-thread core scheduling interface which allows a thread to tag > > itself and enable core scheduling. Based on discussion at OSPM with > >

Re: [PATCH RFC] sched: Add a per-thread core scheduling interface

2020-05-21 Thread Joel Fernandes
Hi Peter, Thanks for the comments. On Thu, May 21, 2020 at 10:51:22AM +0200, Peter Zijlstra wrote: > On Wed, May 20, 2020 at 06:26:42PM -0400, Joel Fernandes (Google) wrote: > > Add a per-thread core scheduling interface which allows a thread to tag > > itself and enable core scheduling. Based on

Re: [PATCH RFC] sched: Add a per-thread core scheduling interface

2020-05-21 Thread Peter Zijlstra
On Wed, May 20, 2020 at 06:26:42PM -0400, Joel Fernandes (Google) wrote: > Add a per-thread core scheduling interface which allows a thread to tag > itself and enable core scheduling. Based on discussion at OSPM with > maintainers, we propose a prctl(2) interface accepting values of 0 or 1. > 1 -

Re: [PATCH RFC] sched: Add a per-thread core scheduling interface(Internet mail)

2020-05-20 Thread 蒋彪
> On May 21, 2020, at 6:26 AM, Joel Fernandes (Google) > wrote: > > Add a per-thread core scheduling interface which allows a thread to tag > itself and enable core scheduling. Based on discussion at OSPM with > maintainers, we propose a prctl(2) interface accepting values of 0 or 1. > 1 -

[PATCH RFC] sched: Add a per-thread core scheduling interface

2020-05-20 Thread Joel Fernandes (Google)
Add a per-thread core scheduling interface which allows a thread to tag itself and enable core scheduling. Based on discussion at OSPM with maintainers, we propose a prctl(2) interface accepting values of 0 or 1. 1 - enable core scheduling for the task. 0 - disable core scheduling for the task.