Re: [RFC PATCH v2 6/6] sched/fair: Implement starvation monitor

2020-08-07 Thread Daniel Bristot de Oliveira
On 8/7/20 4:11 PM, pet...@infradead.org wrote: > But I shelved all that after I heard about that other balancer idea > Danial was suppose to be working on ;-))) The PhD bureaucracy (and behind the scenes) were blocking me... but I am free man now and will catch up on that ;-). [ also because I

Re: [RFC PATCH v2 6/6] sched/fair: Implement starvation monitor

2020-08-07 Thread Juri Lelli
On 07/08/20 16:13, pet...@infradead.org wrote: > On Fri, Aug 07, 2020 at 03:43:53PM +0200, Juri Lelli wrote: > > > Right, but I fear we won't be able to keep current behavior for wakeups: > > RT with highest prio always gets scheduled right away? > > If you consider RT throttling, that's already

Re: [RFC PATCH v2 6/6] sched/fair: Implement starvation monitor

2020-08-07 Thread peterz
On Fri, Aug 07, 2020 at 03:43:53PM +0200, Juri Lelli wrote: > Right, but I fear we won't be able to keep current behavior for wakeups: > RT with highest prio always gets scheduled right away? If you consider RT throttling, that's already not the case. We can consider this fair server to be just

Re: [RFC PATCH v2 6/6] sched/fair: Implement starvation monitor

2020-08-07 Thread Juri Lelli
On 07/08/20 15:55, luca abeni wrote: > On Fri, 7 Aug 2020 15:43:53 +0200 > Juri Lelli wrote: > > > On 07/08/20 15:28, luca abeni wrote: > > > Hi Juri, > > > > > > On Fri, 7 Aug 2020 11:56:04 +0200 > > > Juri Lelli wrote: > > > > > > > Starting deadline server for lower priority classes

Re: [RFC PATCH v2 6/6] sched/fair: Implement starvation monitor

2020-08-07 Thread peterz
On Fri, Aug 07, 2020 at 03:49:41PM +0200, luca abeni wrote: > Hi Peter, > > pet...@infradead.org wrote: > > One thing I considerd was scheduling this as a least-laxity entity -- > > such that it runs late, not early > > Are you thinking about scheduling both RT and non-RT tasks through >

Re: [RFC PATCH v2 6/6] sched/fair: Implement starvation monitor

2020-08-07 Thread luca abeni
On Fri, 7 Aug 2020 15:43:53 +0200 Juri Lelli wrote: > On 07/08/20 15:28, luca abeni wrote: > > Hi Juri, > > > > On Fri, 7 Aug 2020 11:56:04 +0200 > > Juri Lelli wrote: > > > > > Starting deadline server for lower priority classes right away > > > when first task is enqueued might break

Re: [RFC PATCH v2 6/6] sched/fair: Implement starvation monitor

2020-08-07 Thread luca abeni
Hi Peter, On Fri, 7 Aug 2020 12:46:18 +0200 pet...@infradead.org wrote: > On Fri, Aug 07, 2020 at 11:56:04AM +0200, Juri Lelli wrote: > > Starting deadline server for lower priority classes right away when > > first task is enqueued might break guarantees, as tasks belonging to > > intermediate

Re: [RFC PATCH v2 6/6] sched/fair: Implement starvation monitor

2020-08-07 Thread Juri Lelli
On 07/08/20 15:28, luca abeni wrote: > Hi Juri, > > On Fri, 7 Aug 2020 11:56:04 +0200 > Juri Lelli wrote: > > > Starting deadline server for lower priority classes right away when > > first task is enqueued might break guarantees > > Which guarantees are you thinking about, here? Response

Re: [RFC PATCH v2 6/6] sched/fair: Implement starvation monitor

2020-08-07 Thread luca abeni
Hi Juri, On Fri, 7 Aug 2020 11:56:04 +0200 Juri Lelli wrote: > Starting deadline server for lower priority classes right away when > first task is enqueued might break guarantees Which guarantees are you thinking about, here? Response times of fixed priority tasks? If fixed priority tasks are

Re: [RFC PATCH v2 6/6] sched/fair: Implement starvation monitor

2020-08-07 Thread Juri Lelli
On 07/08/20 13:30, Daniel Bristot de Oliveira wrote: > On 8/7/20 12:46 PM, pet...@infradead.org wrote: > > On Fri, Aug 07, 2020 at 11:56:04AM +0200, Juri Lelli wrote: > >> Starting deadline server for lower priority classes right away when > >> first task is enqueued might break guarantees, as

Re: [RFC PATCH v2 6/6] sched/fair: Implement starvation monitor

2020-08-07 Thread Daniel Bristot de Oliveira
On 8/7/20 12:46 PM, pet...@infradead.org wrote: > On Fri, Aug 07, 2020 at 11:56:04AM +0200, Juri Lelli wrote: >> Starting deadline server for lower priority classes right away when >> first task is enqueued might break guarantees, as tasks belonging to >> intermediate priority classes could be

Re: [RFC PATCH v2 6/6] sched/fair: Implement starvation monitor

2020-08-07 Thread peterz
On Fri, Aug 07, 2020 at 11:56:04AM +0200, Juri Lelli wrote: > Starting deadline server for lower priority classes right away when > first task is enqueued might break guarantees, as tasks belonging to > intermediate priority classes could be uselessly preempted. E.g., a well > behaving (non hog)

[RFC PATCH v2 6/6] sched/fair: Implement starvation monitor

2020-08-07 Thread Juri Lelli
Starting deadline server for lower priority classes right away when first task is enqueued might break guarantees, as tasks belonging to intermediate priority classes could be uselessly preempted. E.g., a well behaving (non hog) FIFO task can be preempted by NORMAL tasks even if there are still