Bug 19041 - [ANCK6.6.71-3 rc1][aarch64][倚天710机器][alitests->ali_cpuacct_09]缺少内核参数文件/proc/sys/kernel/sched_latency_ns
Summary: [ANCK6.6.71-3 rc1][aarch64][倚天710机器][alitests->ali_cpuacct_09]缺少内核参数文件/proc/s...
Status: RESOLVED BYDESIGN
Alias: None
Product: Antest
Classification: Infrastructures
Component: 测试用例 (show other bugs) 测试用例
Version: unspecified
Hardware: aarch64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: chenzhuo
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-24 11:19 UTC by zhixin01
Modified: 2025-02-28 10:26 UTC (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zhixin01 alibaba_cloud_group 2025-02-24 11:19:56 UTC
[缺陷描述]:
在alitests测试中,执行ali_cpuacct_09 用例fail,发现环境中缺少/proc/sys/kernel/sched_latency_ns文件。

测试日志:
<<<test_start>>>
tag=ali_cpuacct_09 stime=1740366690
cmdline="ali_cpuacct_09.sh"
contacts=""
analysis=exit
<<<test_output>>>
incrementing stop
ali_cpuacct_09 1 TINFO: cpuacct cgroup /sys/fs/cgroup/cpuset,cpu,cpuacct
cat: /proc/sys/kernel/sched_latency_ns: No such file or directory
tst_rod: Failed to open '(null)' for writing: No such file or directory
ali_cpuacct_09 1 TBROK: echo 150000000 > /proc/sys/kernel/sched_latency_ns failed
/var/tmp/tone/run/alitests/testcases/bin/ali_cpuacct_09.sh: line 97: /proc/sys/kernel/sched_latency_ns: No such file or directory

Summary:
passed   0
failed   0
skipped  0
warnings 0
<<<execution_status>>>
initiation_status="ok"
duration=6 termination_type=exited termination_id=2 corefile=no
cutime=3 cstime=6
<<<test_end>>>

[重现概率]:
必现

[重现环境]:
环境信息:倚天710机器
11.163.178.238

#uname -r
6.6.71-3_rc1.al8.aarch64

#cat /etc/os-release
NAME="Alibaba Cloud Linux"
VERSION="3 (Soaring Falcon)"
ID="alinux"
ID_LIKE="rhel fedora centos anolis"
VERSION_ID="3"
UPDATE_ID="10"
PLATFORM_ID="platform:al8"
PRETTY_NAME="Alibaba Cloud Linux 3 (Soaring Falcon)"
ANSI_COLOR="0;31"
HOME_URL="https://www.aliyun.com/"

#lscpu
Architecture:        aarch64
Byte Order:          Little Endian
CPU(s):              128
On-line CPU(s) list: 0-127
Thread(s) per core:  1
Core(s) per socket:  128
Socket(s):           1
NUMA node(s):        2
Vendor ID:           ARM
BIOS Vendor ID:      T-HEAD
Model:               0
Model name:          Neoverse-N2
BIOS Model name:     Yitian710-128
Stepping:            r0p0
CPU MHz:             2750.000
BogoMIPS:            100.00
Hypervisor vendor:   Alibaba
Virtualization type: full
L1d cache:           64K
L1i cache:           64K
L2 cache:            1024K
L3 cache:            65536K
NUMA node0 CPU(s):   0-63
NUMA node1 CPU(s):   64-127
Flags:               fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh

#free -h
              total        used        free      shared  buff/cache   available
Mem:          125Gi       3.6Gi       121Gi        12Mi       1.0Gi       122Gi
Swap:         2.0Gi          0B       2.0Gi

#cat /proc/cmdline
BOOT_IMAGE=(hd0,gpt2)/boot/vmlinuz-6.6.71-3_rc1.al8.aarch64 root=UUID=d0af582f-7147-41de-85e3-deb2e14cde99 ro biosdevname=0 rd.driver.pre=ahci iommu.passthrough=1 iommu.strict=0 nospectre_bhb ssbd=force-off systemd.unified_cgroup_hierarchy=0 cgroup.memory=nokmem console=ttyS0,115200 fsck.repair=yes crashkernel=0M-2G:0M,2G-256G:256M,256G-1024G:320M,1024G-:384M

[重现步骤]:
cat /proc/sys/kernel/sched_latency_ns

[期望结果]:
存在该文件

[实际结果]:
该文件不存在

[原因定位]:
#cat /proc/sys/kernel/sched_latency_ns
cat: /proc/sys/kernel/sched_latency_ns: No such file or directory

#sysctl kernel.sched_latency_ns
sysctl: cannot stat /proc/sys/kernel/sched_latency_ns: No such file or directory
Comment 1 zhixin01 alibaba_cloud_group 2025-02-24 11:23:53 UTC
和https://project.aone.alibaba-inc.com/v2/project/797125/req/60115809描述的是同一个问题,麻烦确认下是否有需求。
Comment 2 chenzhuo alibaba_cloud_group 2025-02-28 10:23:38 UTC
(In reply to zhixin01 from comment #1)
> 和https://project.aone.alibaba-inc.com/v2/project/797125/req/
> 60115809描述的是同一个问题,麻烦确认下是否有需求。

根据这个aone,6.6的eevdf调度器已经删掉了sched_latency这个参数,因此该用例不适配6.6内核
Comment 3 chenzhuo alibaba_cloud_group 2025-02-28 10:26:48 UTC
建议后续修改用例