【问题描述】相比(1)openEuler 20.09版本在ARM服务器启动(2)openEuler 21.03在X86服务器启动,21.03在ARM服务器上启动后,占用内存增至三倍左右,导致可用内存明显减少。
【环境信息】
服务器:TaiShan 2280 V2
架构: arm64
OS: openEuler 21.03
Kernel: Linux 5.10.0-4.0.0.13.oe1.aarch64
【复现步骤】
1.重启服务器
2.free -g查看使用内存
【问题现象】
21.03 ARM:
21.03 x86:
20.03 ARM:
Hey ganqx, 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.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
3倍内存使用主要是hns特性(RDMA/hns: Support 0 hop addressing)引入。
配置成64k页就会出现3倍内存的使用,4k页正常。
具体引入patchset如下:
744b7bdfa79e RDMA/hns: Support 0 hop addressing for CQE buffer
6fd610c5733d RDMA/hns: Support 0 hop addressing for SRQ buffer
d563099e3e89 RDMA/hns: Support 0 hop addressing for WQE buffer
477a0a387072 RDMA/hns: Optimize 0 hop addressing for EQE buffer
cc23267aedeb RDMA/hns: Optimize hns buffer allocation flow
3c873161a0d7 RDMA/hns: Add support for addressing when hopnum is 0
@KuhnChen
驱动团队需要在解决。
如果你的场景不需要这个模块的话,可以不加载,在 kernel 启动参数中把这个模块屏蔽即可。
/boot/efi/EFI/openEuler/grub.cfgmodule_blacklist=hns_roce_hw_v2
@Xie XiuQi
鲲鹏服务器上默认都hns网卡,这个模块屏蔽掉,hns网卡的基本功能是否还能用?
@Xie XiuQi
鲲鹏服务器上默认都hns网卡,这个模块屏蔽掉,hns网卡的基本功能是否还能用?
roce 依赖网卡,网卡不依赖 roce,
不加载 hns_roce_hw_v2,不影响网卡的使用。
合入补丁解决:
f8a28dd28 RDMA/hns: Optimize the base address table config for MTR
补丁合入前:
free -g
total used free
Mem: 126 42 35
Swap: 3 1 2
补丁合入后:
free -g
total used free
Mem: 124 9 115
Swap: 3 0 3
登录 后才可以发表评论