101 Star 64 Fork 245

src-openEuler/kernel

 / 详情

[21.03]x86物理机cpu0进行下线操作之后,无法进行上线操作

已验收
缺陷
创建于  
2021-03-11 17:23

【环境信息】
系统:x86物理机 内存:378g
cpu:88核
OS版本: 版本 21.03

[root@localhost ltp]# cat /etc/openEuler-latest 
openeulerversion=openEuler-21.03
compiletime=2021-03-04-21-04-09
gccversion=9.3.1-20210204.16.oe1
kernelversion=5.10.0-4.6.0.18.oe1
openjdkversion=1.8.0.282.b08-5.oe1

【问题复现步骤】
echo "0" >/sys/devices/system/cpu/cpu0/online
lscpu
echo "1" >/sys/devices/system/cpu/cpu0/online
lscpu
【预期结果】
echo 0 后lscpu查看cpu0是下线
echo 1 后lscpu查看cpu0是上线
【实际结果】
下线成功,但是上线时执行失败

[root@localhost ltp]# echo "1" >/sys/devices/system/cpu/cpu0/online
-bash: echo: write error: Input/output error

评论 (3)

6++ 创建了缺陷
6++ 关联仓库设置为src-openEuler/kernel
展开全部操作日志

Hey Classicriver_jia, Welcome to openEuler Community.
All of the projects in openEuler Community are maintained by @openeuler-ci-bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md to find the details.

6++ 负责人设置为Xie XiuQi
6++ 里程碑设置为openEuler 21.03-RC1
6++ 关联分支设置为openEuler-21.03
6++ 计划截止日期设置为2021-03-12
6++ 计划开始日期设置为2021-03-11
6++ 优先级设置为主要

cpu0 offline 特性默认不启用。
实际场景中,CPU0 承担了很多公共特性,不建议使能 cpu offline。
21.03 中先不默认开启 cpu0 offline。

如果确实需要,或者需要进行调试,可以在启动参数中添加 cpu0_hotplug 进行开启。

cpu0_hotplug    [X86] Turn on CPU0 hotplug feature when
                CONFIG_BOOTPARAM_HOTPLUG_CPU0 is off.
                Some features depend on CPU0. Known dependencies are:
                1. Resume from suspend/hibernate depends on CPU0.
                Suspend/hibernate will fail if CPU0 is offline and you
                need to online CPU0 before suspend/hibernate.
                2. PIC interrupts also depend on CPU0. CPU0 can't be
                removed if a PIC interrupt is detected.
                It's said poweroff/reboot may depend on CPU0 on some
                machines although I haven't seen such issues so far
                after CPU0 is offline on a few tested machines.
                If the dependencies are under your control, you can
                turn on cpu0_hotplug.

合入补丁规避CPU0下线可能引发的问题:
f2c5a15fa2d7 x86: config: disable CONFIG_BOOTPARAM_HOTPLUG_CPU0 by default

Xie XiuQi 任务状态待办的 修改为已完成
6++ 任务状态已完成 修改为已验收

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(4)
5329419 openeuler ci bot 1632792936
1
https://gitee.com/src-openeuler/kernel.git
git@gitee.com:src-openeuler/kernel.git
src-openeuler
kernel
kernel

搜索帮助

Cb406eda 1850385 E526c682 1850385