Re: [BUG] scheduler doesn't balance thread to idle cpu for 3 seconds

2016-02-08 Thread Jan Stancek
ock_task(cfs_rq) - se->avg.last_runnable_update) > 500L * (1 << 20)) + update_entity_load_avg(se, 1); + } } /* Regards, Jan /* * reproducer v3 for: * [BUG] scheduler doesn't balance thread to idle cpu for 3 seconds * * Based on LTP's pthr

Re: [BUG] scheduler doesn't balance thread to idle cpu for 3 seconds

2016-01-29 Thread Jan Stancek
2 AM > Subject: Re: [BUG] scheduler doesn't balance thread to idle cpu for 3 seconds > > On Thu, Jan 28, 2016 at 01:43:13PM -0500, Jan Stancek wrote: > > > How long should I have to wait for a fail? > > > > It's about 1000-2000 iterations for

Re: [BUG] scheduler doesn't balance thread to idle cpu for 3 seconds

2016-01-29 Thread Peter Zijlstra
On Thu, Jan 28, 2016 at 01:43:13PM -0500, Jan Stancek wrote: > > How long should I have to wait for a fail? > > It's about 1000-2000 iterations for me, which I think you covered > by now in those 2 hours. So I've been running: while ! ./pthread_cond_wait_1 ; do sleep 1; done overnight on the

Re: [BUG] scheduler doesn't balance thread to idle cpu for 3 seconds

2016-01-28 Thread Jan Stancek
3 PM > Subject: Re: [BUG] scheduler doesn't balance thread to idle cpu for 3 seconds > > On Thu, Jan 28, 2016 at 04:55:02PM +0100, Jan Stancek wrote: > > On 01/27/2016 03:52 PM, Jan Stancek wrote: > > > Hello, > > > > > > pthread_cond_wait_1/2 [1

Re: [BUG] scheduler doesn't balance thread to idle cpu for 3 seconds

2016-01-28 Thread Peter Zijlstra
On Thu, Jan 28, 2016 at 04:55:02PM +0100, Jan Stancek wrote: > On 01/27/2016 03:52 PM, Jan Stancek wrote: > > Hello, > > > > pthread_cond_wait_1/2 [1] is rarely failing for me on 4.5.0-rc1, > > on x86_64 KVM guest with 2 CPUs. > > > > This test [1]: > > - spawns 2 SCHED_RR threads > > - first thr

Re: [BUG] scheduler doesn't balance thread to idle cpu for 3 seconds

2016-01-28 Thread Jan Stancek
On 01/27/2016 03:52 PM, Jan Stancek wrote: > Hello, > > pthread_cond_wait_1/2 [1] is rarely failing for me on 4.5.0-rc1, > on x86_64 KVM guest with 2 CPUs. > > This test [1]: > - spawns 2 SCHED_RR threads > - first thread with higher priority sets alarm for 2 seconds and blocks on > condition >

[BUG] scheduler doesn't balance thread to idle cpu for 3 seconds

2016-01-27 Thread Jan Stancek
Hello, pthread_cond_wait_1/2 [1] is rarely failing for me on 4.5.0-rc1, on x86_64 KVM guest with 2 CPUs. This test [1]: - spawns 2 SCHED_RR threads - first thread with higher priority sets alarm for 2 seconds and blocks on condition - second thread with lower priority is busy looping for 5 secon