Re: [PATCH] sched: let __sched_period() use rq cfs's nr_running

2015-07-08 Thread Byungchul Park
On Wed, Jul 08, 2015 at 09:19:14AM +0900, Byungchul Park wrote: > On Tue, Jul 07, 2015 at 01:28:18PM -0700, Cong Wang wrote: > > On Mon, Jul 6, 2015 at 9:40 PM, wrote: > > > From: Byungchul Park > > > > > > __sched_period() returns a period which a rq can have. the period has to > > > be > > >

Re: [PATCH] sched: let __sched_period() use rq cfs's nr_running

2015-07-07 Thread Byungchul Park
On Tue, Jul 07, 2015 at 01:28:18PM -0700, Cong Wang wrote: > On Mon, Jul 6, 2015 at 9:40 PM, wrote: > > From: Byungchul Park > > > > __sched_period() returns a period which a rq can have. the period has to be > > stretched by the number of task *the rq has*, when nr_running > nr_latency. > > oth

Re: [PATCH] sched: let __sched_period() use rq cfs's nr_running

2015-07-07 Thread Cong Wang
On Mon, Jul 6, 2015 at 9:40 PM, wrote: > From: Byungchul Park > > __sched_period() returns a period which a rq can have. the period has to be > stretched by the number of task *the rq has*, when nr_running > nr_latency. > otherwise, task slice can be very smaller than sysctl_sched_min_granularit

[PATCH] sched: let __sched_period() use rq cfs's nr_running

2015-07-06 Thread byungchul . park
From: Byungchul Park __sched_period() returns a period which a rq can have. the period has to be stretched by the number of task *the rq has*, when nr_running > nr_latency. otherwise, task slice can be very smaller than sysctl_sched_min_granularity depending on the position of tg hierarchy when C