当我通过InfiniBand运行MPI工作时,我得到以下工作。我们使用扭矩管理器。
--------------------------------------------------------------------------
WARNING: It appears that your OpenFabrics subsystem is configured to only
allow registering part of your physical memory. This can cause MPI jobs to
run with erratic performance, hang, and/or crash.
This may be caused by your OpenFabrics vendor limiting the amount of
physical memory that can be registered. You should investigate the
relevant Linux kernel module parameters that control how much physical
memory can be registered, and increase them to allow registering all
physical memory on your machine.
See this Open MPI FAQ item for more information on these Linux kernel module
parameters:
http://www.open-mpi.org/faq/?category=openfabrics#ib-locked-pages
Local host: host1
Registerable memory: 65536 MiB
Total memory: 196598 MiB
Your MPI job will continue, but may be behave poorly and/or hang.
--------------------------------------------------------------------------
我已经阅读了警告信息上的链接,到目前为止我已经完成了;
options mlx4_core log_num_mtt=20 log_mtts_per_seg=4
上附加/etc/modprobe.d/mlx4_en.conf
。/etc/security/limits.conf
上写下以下行
* soft memlock unlimited
* hard memlock unlimited
session required pam_limits.so
/etc/pam.d/sshd
ulimit -c unlimited
/etc/init.d/pbs_mom
醇>
任何人都可以帮我找出我错过的东西吗?
答案 0 :(得分:3)
您的mlx4_core
参数仅允许注册2^20 * 2^4 * 4 KiB = 64 GiB
。如果每个节点有192 GiB的物理内存,并且建议至少有两倍的可注册内存,则应将log_num_mtt
设置为23,这会将限制增加到512 GiB - 最接近2的幂或等于RAM量的两倍。确保重新启动节点或卸载,然后重新加载内核模块。
您还应提交一个执行ulimit -l
的简单Torque作业脚本,以验证锁定内存的限制并确保没有此限制。请注意,ulimit -c unlimited
不会删除锁定内存量的限制,而是取消核心转储文件大小的限制。