Openmpi使用Infiniband中” only allow registering part of your physical memory“问题

在OpenMPI与Infiniband结合使用时遇到错误,提示只有部分物理内存可注册。通过查阅资料了解到,这与log_num_mtt和log_mtts_per_seg参数有关。计算最大注册内存的公式为:PAGE_SIZE * 2^(log_num_mtt + log_mtts_per_seg)。通过修改/modeprobe.d/mlx4_en.conf文件设置log_num_mtt值,例如设置为23以支持256GB内存,并重启服务,问题得到解决。
摘要由CSDN通过智能技术生成

在使用OpenMPI和Infiniband的过程中,出现了以下的错误,相信有些同事也会出现相同的问题,经过研究,解决了该问题,这里把相关的解决方法贴出来和大家分享。问题描述如图:



大概意思是,机器有256GB的内存,但是却只有32GB的内存可以使用。内存使用被限制了,可能会妨碍性能的发挥,也可能crash!

通过它给的链接,发现如下信息:

OpenFabrics network vendors provide Linux kernel module parameters controlling the size of the size of the memory translation table (MTT) used to map virtual addresses to physical address. The size of this table controls the amount of physical memory that can be registered for use with OpenFabrics devices. In general, two parameters are provided to control the size of this table:

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值