[CRIU] Another zdtm failure question

Adrian Reber adrian at lisas.de
Wed Nov 16 22:42:01 PST 2016


On Thu, Nov 17, 2016 at 09:35:16AM +0300, Pavel Tikhomirov wrote:
> Also if you have CONFIG_RT_GROUP_SCHED in kernel config, you would likely
> need to set /sys/fs/cgroup/cpu/user.slice/cpu.rt_runtime_us for cgroup in
> which you run tests.

Thanks. I have CONFIG_RT_GROUP_SCHED and setting cpu.rt_runtime_us helps
indeed. Now the test passes. To also answer Andrei's questions about

/sys/fs/cgroup/cpu/user.slice/user-1000.slice/cpu.cfs_period_us

There is no user-1000.slice directory under user.slice, but the
following exists:

# cat /sys/fs/cgroup/cpu/user.slice/cpu.cfs_period_us 
100000

		Adrian

> 2016-11-17 1:44 GMT+03:00 Andrei Vagin <avagin at virtuozzo.com>:
> 
> > On Wed, Nov 16, 2016 at 10:10:28PM +0100, Adrian Reber wrote:
> > > I have another test case which fails on my old kernel as well as on a
> > > 4.8 kernel:
> > >
> > > # ./zdtm.py run  -f h -t zdtm/static/sched_policy00
> > > === Run 1/1 ================
> > >
> > > ===================== Run zdtm/static/sched_policy00 in h
> > ======================
> > > Start test
> > > Test is SUID
> > > ./sched_policy00 --pidfile=sched_policy00.pid
> > --outfile=sched_policy00.out
> > > make: *** [sched_policy00.pid] Error 1
> > > ################ Test zdtm/static/sched_policy00 FAIL at start
> > #################
> > > Test output: ================================
> > > 21:07:43.833:    30: ERR: sched_policy00.c:38: Can't set policy (errno =
> > 1 (Operation not permitted))
> > > 21:07:43.833:    29: ERR: test.c:229: Test exited unexpectedly with code
> > 255
> >
> > Could you check that cpu.cfs_period_us is set to non-zero value?
> >
> > $ cat /sys/fs/cgroup/cpu/user.slice/user-1000.slice/cpu.cfs_period_us
> > 100000
> >
> > >
> > >  <<< ================================
> > > ##################################### FAIL
> > #####################################
> > >
> > > Any idea why this test case is failing?
> > >
> > >               Adrian
> > _______________________________________________
> > CRIU mailing list
> > CRIU at openvz.org
> > https://lists.openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list