鲲鹏920 + openEuler 24.03 (6.6内核) 无法开启 MPAM 功能,mount resctrl 失败
收藏回复举报
鲲鹏920 + openEuler 24.03 (6.6内核) 无法开启 MPAM 功能,mount resctrl 失败
t('forum.solved') 已解决
新人帖
发表于2026-01-15 11:16:07
0 查看

鲲鹏920 + openEuler 24.03 (6.6内核) 无法开启 MPAM 功能,mount resctrl 失败

【环境信息】

  • 服务器型号:昆仑 2280 (基于鲲鹏 920)
  • CPU:鲲鹏 920 (64核)
  • 操作系统:openEuler 24.03 (LTS-SP3)
  • 内核版本:Linux 6.6
  • BIOS 版本:7.15 (发布日期 2024-06-20)

【问题描述】 目前需要使用 MPAM (Memory System Resource Partitioning and Monitoring) 功能对 Docker 容器内的关键线程进行 L3 缓存独占隔离。 虽然内核编译选项已开启,且 BIOS 也能看到 ACPI MPAM 表,但在系统启动后无法挂载 resctrl 文件系统,报错“未知的文件系统类型”。

【已排查信息】

1. 内核配置已开启 已确认内核编译开启了 MPAM 和 RESCTRL_FS 支持:

[root@localhost ~]# grep -E "CONFIG_ARM64_MPAM|CONFIG_RESCTRL_FS" /boot/config-$(uname -r)
CONFIG_ARM64_MPAM=y
CONFIG_RESCTRL_FS=y

2. BIOS 信息与 ACPI 表 BIOS 版本非常新 (2024年6月),且 dmesg 显示内核已读取到 BIOS 上报的 MPAM ACPI 表:

[root@localhost ~]# dmidecode -t bios
# dmidecode 3.5
Getting SMBIOS data from sysfs.
SMBIOS 3.3.0 present.
Handle 0x0000, DMI type 0, 26 bytes
BIOS Information
   Vendor: Huawei Corp.
   Version: 7.15
   Release Date: 06/20/2024
   Address: 0x5F000
   Runtime Size: 644 kB
   ROM Size: 6 MB
   Characteristics:
       PCI is supported
       BIOS is upgradeable
       BIOS shadowing is allowed
       Boot from CD is supported
       Selectable boot is supported
       EDD is supported
       Japanese floppy for NEC 9800 1.2 MB is supported (int 13h)
       Japanese floppy for Toshiba 1.2 MB is supported (int 13h)
       5.25"/360 kB floppy services are supported (int 13h)
       5.25"/1.2 MB floppy services are supported (int 13h)
       3.5"/720 kB floppy services are supported (int 13h)
       3.5"/2.88 MB floppy services are supported (int 13h)
       8042 keyboard services are supported (int 9h)
       CGA/mono video services are supported (int 10h)
       ACPI is supported
       USB legacy is supported
       BIOS boot specification is supported
       Targeted content distribution is supported
       UEFI is supported
   BIOS Revision: 7.15
Handle 0x0004, DMI type 13, 22 bytes
BIOS Language Information
   Language Description Format: Long
   Installable Languages: 2
       en|US|iso8859-1
       zh|CN|unicode
   Currently Installed Language: en|US|iso8859-1

查看内核日志,虽然能看到 ACPI 表,但后续没有任何 MPAM: initialized 或 resctrl 相关的驱动加载成功日志:

[root@localhost ~]# dmesg | grep -i mpam
[    0.000000] ACPI: MPAM 0x000000002F64F398 0002FA (v01 HISI   HIP08    00000000 HISI 20151124)

3. CPU 能力检查 检查了 CPU 能力标识,Features 中没有看到 mpam 字段,这是否意味着硬件被屏蔽?

[root@localhost ~]# lscpu | grep mpam
(此处无输出)

[root@localhost ~]# cat /proc/cpuinfo
Features    : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma dcpop asimddp asimdfhm ssbs

4. 尝试过的内核启动参数 在 /etc/default/grub 中尝试了以下参数组合,均无效:

  • mpam=acpi
  • mpam=on
  • mpam=acpi resctrl_mpam_strict=0
  • mpam=acpi mpam_partid_max=64

5. 报错现象

[root@localhost ~]# mount -t resctrl resctrl /sys/fs/resctrl
mount: /sys/fs/resctrl: 未知的文件系统类型“resctrl”.

【厂商反馈】 联系过服务器厂商,反馈称该功能启用完全依赖于操作系统层面的配置,并非 BIOS 问题。但鉴于 lscpu 不显示 mpam 特性,这是内核驱动加载被拦截了,还是确实属于硬件固件层面的未开启?应该如何正确使用该功能呢?

我要发帖子