Re: [powerpc][next-20210621] WARNING at kernel/sched/fair.c:3277 during boot

2021-06-23 Thread Odin Ugedal
ons. 23. jun. 2021 kl. 19:27 skrev Vincent Guittot : > > On Wed, 23 Jun 2021 at 18:55, Vincent Guittot > wrote: > > > > On Wed, 23 Jun 2021 at 18:46, Sachin Sant > > wrote: > > > > > > > > > > Ok. This becomes even more weird. Could you share your config file and > > > > more details about > >

Re: [powerpc][next-20210621] WARNING at kernel/sched/fair.c:3277 during boot

2021-06-23 Thread Odin Ugedal
ons. 23. jun. 2021 kl. 15:56 skrev Vincent Guittot : > > > The pelt value of sched_entity is synced with cfs and its contrib > before being removed. Hmm. Not sure what you mean by sched_entity here, since this is only taking the "removed" load_avg and removing it from cfs_rq, together with (remo

Re: [powerpc][next-20210621] WARNING at kernel/sched/fair.c:3277 during boot

2021-06-23 Thread Odin Ugedal
ons. 23. jun. 2021 kl. 14:22 skrev Vincent Guittot : > > In theory it should not because _sum should be always larger or equal > to _avg * divider. Otherwise, it means that we have something wrong > somewhere else Yeah, that might be the case. Still trying to wrap my head around this. I might be w

Re: [powerpc][next-20210621] WARNING at kernel/sched/fair.c:3277 during boot

2021-06-23 Thread Odin Ugedal
Hi, Wouldn't the attached diff below also help when load is removed, Vincent? Isn't there a theoretical chance that x_sum ends up at zero while x_load ends up as a positive value (without this patch)? Can post as a separate patch if it works for Sachin. diff --git a/kernel/sched/fair.c b/kernel/

Re: [powerpc][5.13.0-rc7] Kernel warning (kernel/sched/fair.c:401) while running LTP tests

2021-06-21 Thread Odin Ugedal
mit it as a patch: Acked-by: Odin Ugedal Odin

Re: [powerpc][5.13.0-rc7] Kernel warning (kernel/sched/fair.c:401) while running LTP tests

2021-06-21 Thread Odin Ugedal
Hi, Did some more research, and it looks like this is what happens: $ tree /sys/fs/cgroup/ltp/ -d --charset=ascii /sys/fs/cgroup/ltp/ |-- drain `-- test-6851 `-- level2 |-- level3a | |-- worker1 | `-- worker2 `-- level3b `-- worker3 Timeline (i

Re: [powerpc][5.13.0-rc7] Kernel warning (kernel/sched/fair.c:401) while running LTP tests

2021-06-21 Thread Odin Ugedal
man. 21. jun. 2021 kl. 12:57 skrev Sachin Sant : > > Unfortunately this does not help. I can still recreate the failure. > > Have attached the o/p from test run. > > Thanks > -Sachin Yes, thanks! I am able to reproduce it locally now, so will keep looking to see if I find the cause. Thanks! Odin

Re: [powerpc][5.13.0-rc7] Kernel warning (kernel/sched/fair.c:401) while running LTP tests

2021-06-21 Thread Odin Ugedal
man. 21. jun. 2021 kl. 11:50 skrev Vincent Guittot : > This means that a child's load was not null and it was inserted > whereas parent's load was null. This should not happen unless the > propagation failed somewhere My initial thought is that the patch below will fix it, if that is the issue (th

Re: [powerpc][5.13.0-rc7] Kernel warning (kernel/sched/fair.c:401) while running LTP tests

2021-06-21 Thread Odin Ugedal
man. 21. jun. 2021 kl. 08:33 skrev Sachin Sant : > > While running LTP tests (cfs_bandwidth01) against 5.13.0-rc7 kernel on a > powerpc box > following warning is seen > > [ 6611.331827] [ cut here ] > [ 6611.331855] rq->tmp_alone_branch != &rq->leaf_cfs_rq_list > [ 6611.33