[LTP] sched_rr_get_interval01 , sched_rr_get_interval02 , sched_rr_get_interval03 testcase failure

Jan Stancek jstancek@redhat.com
Tue Jun 9 08:48:48 CEST 2020


----- Original Message ----- 

> sched_setscheduler(0, SCHED_FIFO, [1]) = -1 EPERM (Operation not permitted)

Thanks, that aligns with the theory.

> 2)
> root@exaleapsemi-r2:/opt/ltp# pu_mnt=$(mount | grep "type cgroup (.*cpu[,)]"
> | awk '{print $3}')
> root@exaleapsemi-r2:/opt/ltp# cpu_mnt=$(mount | grep "type cgroup (.*cpu[,)]"
> | awk '{print $3}')
> root@exaleapsemi-r2:/opt/ltp# p=$(cat /proc/self/cgroup | grep ":cpu[:,]" |
> sed "s/.*://")
> root@exaleapsemi-r2:/opt/ltp# cat $cpu_mnt/$p/cpu.rt_runtime_us
> cat: //system.slice/system-sshd.slice/cpu.rt_runtime_us: No such file or
> directory

> it didnt gave any info about cpu.rt_runtime_us??

That could be because your distro is mounting cgroup2.

# mount | grep cgroup

Do you see any change if you run following?

# echo $$ > /sys/fs/cgroup/cgroup.procs
# /opt/ltp/testcases/bin/sched_setparam02



More information about the ltp mailing list