Bug 3826 - [Anolis8.6 ][ck-4.19][aarch64][内部版nightly] alitests测试套case:chrt01报错chrt: failed to set tid 1143529's policy: Operation not permitted
Summary: [Anolis8.6 ][ck-4.19][aarch64][内部版nightly] alitests测试套case:chrt01报错chrt: fail...
Status: NEW
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: kernel - anck-4.19 (show other bugs) kernel - anck-4.19
Version: 8.6
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Jacob
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-18 17:02 UTC by anolislw
Modified: 2023-01-18 17:02 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description anolislw alibaba_cloud_group 2023-01-18 17:02:04 UTC
Description of problem:
anolis8.6 aarch64环境,alitests nightly测试case:chrt01报错chrt: failed to set tid 1143529's policy: Operation not permitted

Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1. 下载alitests测试代码
2. 编译:
   export BUILD_ALITESTS_ONLY=yes
   export CFLAGS="${CFLAGS} -fcommon"
   make autotools
   ./configure
   make && make install
   cd /opt/ltp
   ./runltp -f alitests -s chrt01


Actual results:
Running tests.......
<<<test_start>>>
tag=chrt01 stime=1674032408
cmdline="chrt01.sh"
contacts=""
analysis=exit
<<<test_output>>>
incrementing stop
/tmp/tone/run/alitests/testcases/bin/chrt01.sh: line 42: echo: write error: Invalid argument
/tmp/tone/run/alitests/testcases/bin/chrt01.sh: line 44: echo: write error: Invalid argument
chrt: failed to set tid 1143764's policy: Operation not permitted
chrt01 1 TFAIL: 'chrt' failed to set scheduling policy.

Summary:
passed   0
failed   1
skipped  0
warnings 0
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=1 corefile=no
cutime=2 cstime=34
<<<test_end>>>
INFO: ltp-pan reported some tests FAIL
LTP Version: 20180515

       ###############################################################

            Done executing testcases.
            LTP Version:  20180515
       ###############################################################

RUNLTP_END
[root@l57f12084 alitests]#
[root@l57f12084 alitests]# uname -r
4.19.91-603.git.c452e2d70.an8.aarch64
[root@l57f12084 alitests]# cat /etc/anolis-release
Anolis OS release 8.6



Expected results:
case pass

Additional info:
[root@l57f12084 alitests]# uname -r
4.19.91-603.git.c452e2d70.an8.aarch64
[root@l57f12084 alitests]# cat /etc/anolis-release
Anolis OS release 8.6
[root@l57f12084 alitests]# df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        378G     0  378G   0% /dev
tmpfs           378G     0  378G   0% /dev/shm
tmpfs           378G  4.2G  374G   2% /run
tmpfs           378G     0  378G   0% /sys/fs/cgroup
/dev/sda2        49G   25G   22G  53% /
/dev/sda1      1022M  6.7M 1016M   1% /boot/efi
tmpfs            76G     0   76G   0% /run/user/0
[root@l57f12084 alitests]# free -g
              total        used        free      shared  buff/cache   available
Mem:            755          12         736           4           6         736
Swap:             1           0           1
[root@l57f12084 alitests]# df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        378G     0  378G   0% /dev
tmpfs           378G     0  378G   0% /dev/shm
tmpfs           378G  4.2G  374G   2% /run
tmpfs           378G     0  378G   0% /sys/fs/cgroup
/dev/sda2        49G   25G   22G  53% /
/dev/sda1      1022M  6.7M 1016M   1% /boot/efi
tmpfs            76G     0   76G   0% /run/user/0
[root@l57f12084 alitests]# cat /proc/cmdline
BOOT_IMAGE=(hd1,gpt2)/boot/vmlinuz-4.19.91-603.git.c452e2d70.an8.aarch64 root=UUID=a8b992b0-b11c-458a-9df7-c2bd045be4b9 ro console=tty0 console=ttyS0,115200 rd.driver.pre=ahci crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M
[root@l57f12084 alitests]# lscpu
Architecture:        aarch64
Byte Order:          Little Endian
CPU(s):              96
On-line CPU(s) list: 0-95
Thread(s) per core:  1
Core(s) per socket:  48
Socket(s):           2
NUMA node(s):        1
Vendor ID:           HiSilicon
BIOS Vendor ID:      HiSilicon
Model:               0
Model name:          Kunpeng-920
BIOS Model name:     HUAWEI Kunpeng 920 5250
Stepping:            0x1
CPU max MHz:         2600.0000
CPU min MHz:         200.0000
BogoMIPS:            200.00
L1d cache:           64K
L1i cache:           64K
L2 cache:            512K
L3 cache:            24576K
NUMA node0 CPU(s):   0-95
Flags:               fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma dcpop asimddp asimdfhm
[root@l57f12084 alitests]#