Bug 21097 - 配置cgroupv2一直不起作用
Summary: 配置cgroupv2一直不起作用
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: ARM (show other bugs) ARM
Version: 5.10.y-18
Hardware: aarch64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: baolinwang
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-19 18:19 UTC by long131873739
Modified: 2025-05-19 18:19 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 long131873739 2025-05-19 18:19:03 UTC
Description of problem:
我在/etc/default/grub
配置了cmdline参数GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=ao/root rd.lvm.lv=ao/swap systemd.unified_cgroup_hierarchy=1"

无论我怎么重启 都还是使用的cgroupv1

grub2-mkconfig -o /boot/grub2/grub.cfg
#grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=1"
这两个都试了 分别重启过还是不行

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:
我看了启动日志
 dracut-8.10 dracut-049-233.git20240115.0.2.an8
May 19 18:03:16 localhost.localdomain dracut-cmdline[619]: Using kernel command line parameters: BOOT_IMAGE=(hd1,gpt2)/vmlinuz-5.10.134-18.an8.aarch
64 root=/dev/mapper/ao-root ro rd.lvm.lv=ao/root rd.lvm.lv=ao/swap rhgb quiet cgroup.memory=nokmem iommu.passthrough=1 iommu.strict=0 nospectre_bhb ssbd=force-off kfence.sample_interval=100 kfence.booting_max=0-2G:0,2G-32G:2M,32G-:32M crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M
May 19 18:03:17 localhost.localdomain systemd[1]: Started dracut cmdline hook.
May 19 18:03:17 localhost.localdomain systemd[1]: Starting dracut pre-udev hook..

没有加载我配置的参数 是怎么回事?

Expected results:

lscpu 
Architecture:        aarch64
Byte Order:          Little Endian
CPU(s):              64
On-line CPU(s) list: 0-63
Thread(s) per core:  1
Core(s) per socket:  64
Socket(s):           1
NUMA node(s):        8
Vendor ID:           0x70
BIOS Vendor ID:      PHYTIUM
Model:               2
BIOS Model name:     FT2000PLUS
Additional info: