24小时热门版块排行榜    

查看: 2065  |  回复: 1

qh203

铜虫 (小有名气)

[求助] root和普通用户下并行计算问题

在root用户下,用openmpi并行计算cpi 这个算例,6个节点,每个节点8个cpu。输出正常,如下

[root@node1 examples]# mpirun -np 40 -machinefile test ./cpi
Process 3 on node2
Process 38 on node6
Process 18 on node4
Process 32 on node6
Process 20 on node4
Process 2 on node2
Process 35 on node6
Process 34 on node6
Process 22 on node4
Process 7 on node2
Process 23 on node4
Process 5 on node2
Process 4 on node2
Process 37 on node6
Process 33 on node6
Process 30 on node5
Process 8 on node3
Process 26 on node5
Process 10 on node3
Process 15 on node3
Process 27 on node5
Process 31 on node5
Process 28 on node5
Process 24 on node5
Process 19 on node4
Process 21 on node4
Process 17 on node4
Process 6 on node2
Process 16 on node4
Process 25 on node5
Process 9 on node3
Process 11 on node3
Process 13 on node3
Process 14 on node3
Process 0 on node2
Process 1 on node2
Process 36 on node6
Process 39 on node6
Process 12 on node3
Process 29 on node5
pi is approximately 3.1416009869231245, Error is 0.0000083333333314
wall clock time = 0.128546

在普通用户下用openmpi并行计算cpi这个算例,输出则变成

[aojjj@node1 examples]$ mpirun -np 40 -machinefile test ./cpi
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
--------------------------------------------------------------------------
The OpenFabrics (openib) BTL failed to register memory in the driver.
Please check /var/log/messages or dmesg for driver specific failure
reason.
The failure occured here:

  Local host:    mthca0
  Device:        openib_reg_mr
  Function:      Cannot allocate memory()
  Errno says:   

You may need to consult with your system administrator to get this
problem fixed.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
The OpenFabrics (openib) BTL failed to initialize while trying to
allocate some locked memory.  This typically can indicate that the
memlock limits are set too low.  For most HPC installations, the
memlock limits should be set to "unlimited".  The failure occured
here:

  Local host:    node4
  OMPI source:   btl_openib_component.c:1161
  Function:      ompi_free_list_init_ex_new()
  Device:        mthca0
  Memlock limit: 32768

You may need to consult with your system administrator to get this
problem fixed.  This FAQ entry on the Open MPI web site may also be
helpful:

    http://www.open-mpi.org/faq/?category=openfabrics#ib-locked-pages
--------------------------------------------------------------------------
--------------------------------------------------------------------------
WARNING: There was an error initializing an OpenFabrics device.

  Local host:   node4
  Local device: mthca0
--------------------------------------------------------------------------
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
libibverbs: Warning: RLIMIT_MEMLOCK is 32768 bytes.
    This will severely limit memory registrations.
Process 26 on node5
Process 8 on node3
Process 28 on node5
Process 1 on node2
Process 29 on node5
Process 4 on node2
Process 22 on node4
Process 2 on node2
Process 15 on node3
Process 25 on node5
Process 31 on node5
Process 38 on node6
Process 14 on node3
Process 30 on node5
Process 32 on node6
Process 39 on node6
Process 37 on node6
Process 33 on node6
Process 36 on node6
Process 35 on node6
Process 16 on node4
Process 18 on node4
Process 10 on node3
Process 21 on node4
Process 19 on node4
Process 20 on node4
Process 11 on node3
Process 17 on node4
Process 9 on node3
Process 0 on node2
Process 7 on node2
Process 6 on node2
Process 5 on node2
Process 23 on node4
Process 24 on node5
Process 3 on node2
Process 27 on node5
Process 34 on node6
Process 12 on node3
Process 13 on node3
pi is approximately 3.1416009869231245, Error is 0.0000083333333314
wall clock time = 3.002147
[node1:02112] 39 more processes have sent help message help-mpi-btl-openib.txt / mem-reg-fail
[node1:02112] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages
[node1:02112] 36 more processes have sent help message help-mpi-btl-openib.txt / init-fail-no-mem
[node1:02112] 39 more processes have sent help message help-mpi-btl-openib.txt / error in device init

也计算出来了,但是多了许多warniing 和error的提示。

在各个节点修改了/etc/security/limits.conf 和/etc/init.d/sshd, 还是不行。

到底问题在哪里?
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

qh203

铜虫 (小有名气)

这个问题我自己已经解决了。 普通用户的memlock不够。root用户下,在每个节点的/etc/security/limits.conf文件里增加两行
某个普通用户名 soft memlock unlimited
某个普通用户名 hard memlock unlimited

然后要重启每个服务器节点。<----这一点很重要,否则切换到普通用户下,会出现
memlock cannot modify limit: Operation not permitte.
2楼2013-10-13 21:22:41
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 qh203 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 据悉今年马上要出结果了 +4 瞬息宇宙 2026-08-10 4/200 2026-08-10 10:23 by allmydream
[基金申请] 2026国自然放榜时间 +6 布布和一二 2026-08-08 6/300 2026-08-10 09:37 by xter9665
[基金申请] 综述论文作为代表作会不会影响评审专家的印象分? +7 yufeiwaner 2026-08-09 7/350 2026-08-10 09:08 by zju2000
[基金申请] 应该是93bebmhtak前后十一个字符比较关键 +8 Lanmanbaby 2026-08-09 15/750 2026-08-10 08:54 by 医学老男孩
[基金申请] 这样的filecode谁见过 +10 布布和一二 2026-08-08 21/1050 2026-08-09 17:21 by 天神眷顾
[基金申请] filecode与中标关系的预测 +5 布布和一二 2026-08-07 5/250 2026-08-09 16:15 by 袁向阳007
[考博] 【2027博士申请】纳米药物递送方向 20+3 13586093586 2026-08-03 5/250 2026-08-08 21:54 by 13586093586
[基金申请] 国基金的申报应该改成非等额制,评价高的钱多评价低的钱少,但是增加资助率 +7 a089 2026-08-07 7/350 2026-08-08 18:05 by gltch
[基金申请] 好奇怪的filecode +3 布布和一二 2026-08-08 4/200 2026-08-08 17:46 by zhanghaozhu
[基金申请] 基金中了 +14 laoda193707 2026-08-06 14/700 2026-08-08 00:23 by 实验小白ha
[基金申请] 关于filecode +4 布布和一二 2026-08-07 7/350 2026-08-07 22:55 by zhanghaozhu
[基金申请] 娱乐 +6 Tide man 2026-08-03 6/300 2026-08-07 22:40 by 铁帽子农民
[基金申请] 化学口download_prp&amp;fileCode的固定段好像这几天一直没变,有变的大神么? +3 Tide man 2026-08-07 4/200 2026-08-07 22:39 by Tide man
[基金申请] 固定端突然变了,今天 +6 archvillain 2026-08-06 10/500 2026-08-07 16:03 by 医学老男孩
[基金申请] 听说今天filecode变了 +24 布布和一二 2026-08-06 47/2350 2026-08-07 16:02 by zhiyanjiang
[基金申请] filecode +14 等待解的谜 2026-08-06 19/950 2026-08-07 12:20 by wlwhappy
[基金申请] filecode +8 布布和一二 2026-08-06 11/550 2026-08-06 20:41 by tangpu318
[基金申请] 影响面上的因素 +8 布布和一二 2026-08-05 11/550 2026-08-06 10:41 by 宝贝虫子
[基金申请] 8月时间戳变的,举个手。玩一下,释放压力 +9 archvillain 2026-08-04 11/550 2026-08-05 20:06 by wlwhappy
[基金申请] 有没有H口的?有收到消息的吗? +3 超级海虾 2026-08-04 3/150 2026-08-04 17:26 by 学教育滴
信息提示
请填处理意见