Bug 84 - [Anolis OS 8.4 龙芯版][4.19.190-3.an8.loongarch64]镜像安装后无softlockup_panic、hardlockup_panic等内核配置项
Summary: [Anolis OS 8.4 龙芯版][4.19.190-3.an8.loongarch64]镜像安装后无softlockup_panic、hardloc...
Status: CONFIRMED
Alias: None
Product: ANCK 4.19 Dev
Classification: ANCK
Component: general/others (show other bugs) general/others
Version: unspecified
Hardware: loongarch Linux
: P3-Medium S2-major
Target Milestone: ---
Assignee: shanxifanshi
QA Contact:
URL:
Whiteboard:
Keywords:
: 85 87 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-12-15 17:01 UTC by shanxifanshi
Modified: 2022-03-24 09:39 UTC (History)
7 users (show)

See Also:


Attachments
内核中softlockup和hardlockup选项 (9.83 MB, image/jpeg)
2021-12-22 10:15 UTC, streamlet_hy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description shanxifanshi alibaba_cloud_group 2021-12-15 17:01:54 UTC
[缺陷描述]:
使用iso安装龙芯系统后,无以下内核配置参数:
hardlockup_panic、softlockup_panic、watchdog_thresh、hung_task_timeout_secs、
hung_task_timeout_secs

查询softlockup_panic等内核参数:
[root@localhost ~]# ll  /proc/sys/kernel/hardlockup_panic
ls: cannot access '/proc/sys/kernel/hardlockup_panic': No such file or directory
[root@localhost ~]# ll /proc/sys/kernel/softlockup_panic
ls: cannot access '/proc/sys/kernel/softlockup_panic': No such file or directory
[root@localhost ~]# find / -name 'softlockup_panic'
find: ‘/proc/1300/task/1300/net’: Invalid argument
find: ‘/proc/1300/net’: Invalid argument
[root@localhost ~]# ll /proc/sys/kernel/watchdog_thresh
ls: cannot access '/proc/sys/kernel/watchdog_thresh': No such file or directory
[root@localhost ~]# ll /proc/sys/kernel/hung_task_timeout_secs
ls: cannot access '/proc/sys/kernel/hung_task_timeout_secs': No such file or directory
[root@localhost ~]# ll /proc/sys/kernel/hung_task_timeout_secs
ls: cannot access '/proc/sys/kernel/hung_task_panic': No such file or directory

系统镜像:
http://8.131.87.1/kojifiles/output/an-8-loongarch64-RC1/compose/BaseOS/loongarch64/iso/


内核信息:
# uname -r
4.19.190-3.an8.loongarch64

操作系统信息:
# cat /etc/anolis-release
Anolis OS release 8.4
[root@localhost ~]# cat /etc/os-release
NAME="Anolis OS"
VERSION="8.4"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="8.4"
PLATFORM_ID="platform:an8"
PRETTY_NAME="Anolis OS 8.4"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"

cpu信息:
# lscpu
Architecture:        loongarch64
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
NUMA node(s):        1
CPU family:          Loongson-64bit
Model name:          Loongson-3A5000LL
BogoMIPS:            4600.00
L1d cache:           64K
L1i cache:           64K
L2 cache:            256K
L3 cache:            16384K
NUMA node0 CPU(s):   0-3
Flags:               cpucfg lam ual fpu lsx lasx complex crypto lvz lbt_x86 lbt_arm lbt_mips

内存信息:
# free -h
              total        used        free      shared  buff/cache   available
Mem:           15Gi       1.3Gi       2.7Gi        18Mi        11Gi        12Gi
Swap:         7.9Gi       1.0Mi       7.9Gi

[期望结果]:
系统中存在softlockup_panic等常见内核配置参数

[实际结果]:
系统中不存在softlockup_panic等常见内核配置参数
Comment 1 shanxifanshi alibaba_cloud_group 2021-12-15 17:12:25 UTC
*** Bug 85 has been marked as a duplicate of this bug. ***
Comment 2 shanxifanshi alibaba_cloud_group 2021-12-15 17:13:48 UTC
*** Bug 87 has been marked as a duplicate of this bug. ***
Comment 3 streamlet_hy loongson_group 2021-12-22 10:15:35 UTC
Created attachment 40 [details]
内核中softlockup和hardlockup选项
Comment 4 streamlet_hy loongson_group 2021-12-22 10:16:11 UTC
检测不到是因为目前内核选项默认没有打开。
Comment 5 yangyinglu loongson_group 2021-12-27 11:08:38 UTC
龙芯最新内核支持softlockup_panic、watchdog_thresh、hung_task_timeout_secs

root@loongson-pc:/home/loongson# ls /proc/sys/kernel/softlockup_panic 
/proc/sys/kernel/softlockup_panic
root@loongson-pc:/home/loongson# ls /proc/sys/kernel/watchdog_thresh 
/proc/sys/kernel/watchdog_thresh
root@loongson-pc:/home/loongson# ls /proc/sys/kernel/hung_task_timeout_secs 
/proc/sys/kernel/hung_task_timeout_secs


hardlockup_panic功能待分析后进行支持
Comment 6 shanxifanshi alibaba_cloud_group 2022-01-06 16:29:00 UTC
(In reply to yangyinglu from comment #5)
> 龙芯最新内核支持softlockup_panic、watchdog_thresh、hung_task_timeout_secs
> 
> root@loongson-pc:/home/loongson# ls /proc/sys/kernel/softlockup_panic 
> /proc/sys/kernel/softlockup_panic
> root@loongson-pc:/home/loongson# ls /proc/sys/kernel/watchdog_thresh 
> /proc/sys/kernel/watchdog_thresh
> root@loongson-pc:/home/loongson# ls /proc/sys/kernel/hung_task_timeout_secs 
> /proc/sys/kernel/hung_task_timeout_secs
> 
> 
> hardlockup_panic功能待分析后进行支持


----我在rc2版本看了下,这几个文件还是没有,麻烦再确认下
# cat /proc/sys/kernel/softlockup_panic
cat: /proc/sys/kernel/softlockup_panic: No such file or directory

# cat /proc/sys/kernel/watchdog_thresh
cat: /proc/sys/kernel/watchdog_thresh: No such file or directory

# cat /proc/sys/kernel/hung_task_timeout_secs
cat: /proc/sys/kernel/hung_task_timeout_secs: No such file or directory

# cat /proc/sys/kernel/hardlockup_panic
cat: /proc/sys/kernel/hardlockup_panic: No such file or directory
Comment 7 yangyinglu loongson_group 2022-01-07 08:55:42 UTC
请使用RC4的内核
Comment 8 shanxifanshi alibaba_cloud_group 2022-01-07 10:41:02 UTC
(In reply to yangyinglu from comment #7)
> 请使用RC4的内核

---rc4的内核地址,麻烦发一下
Comment 9 HFD loongson_group 2022-01-17 08:57:11 UTC
rc4内核已经提供,请用新内核测试
Comment 10 shanxifanshi alibaba_cloud_group 2022-01-17 17:24:05 UTC
(In reply to LoongsonHFD from comment #9)
> rc4内核已经提供,请用新内核测试

---升级到rc4内核验证,该问题仍然未解决
# uname -r
4.19.190-4.an8.loongarch64

# cat /proc/sys/kernel/softlockup_panic
cat: /proc/sys/kernel/softlockup_panic: No such file or directory

# cat /proc/sys/kernel/watchdog_thresh
cat: /proc/sys/kernel/watchdog_thresh: No such file or directory

# cat /proc/sys/kernel/hung_task_timeout_secs
cat: /proc/sys/kernel/hung_task_timeout_secs: No such file or directory

# cat /proc/sys/kernel/hardlockup_panic
cat: /proc/sys/kernel/hardlockup_panic: No such file or directory

# grep -i soft /boot/config-4.19.190-4.an8.loongarch64
CONFIG_HID_MICROSOFT=m
# Microsoft Hyper-V guest support
# CONFIG_SOFTLOCKUP_DETECTOR is not set
Comment 11 yangyinglu loongson_group 2022-03-24 09:24:33 UTC
hardlockup_panic 我们暂时不支持,其它的我们再确认一下
Comment 12 yangyinglu loongson_group 2022-03-24 09:39:43 UTC
其它配置在4.190.190-rc5 合入