±±¾©Ê¯ÓÍ»¯¹¤Ñ§Ôº2026ÄêÑо¿ÉúÕÐÉú½ÓÊÕµ÷¼Á¹«¸æ
²é¿´: 2047  |  »Ø¸´: 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, »¹ÊDz»ÐС£

µ½µ×ÎÊÌâÔÚÄÄÀ
»Ø¸´´ËÂ¥

» ²ÂÄãϲ»¶

» ±¾Ö÷ÌâÏà¹Ø¼ÛÖµÌùÍÆ¼ö£¬¶ÔÄúͬÑùÓаïÖú:

ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

qh203

Í­³æ (СÓÐÃûÆø)

Õâ¸öÎÊÌâÎÒ×Ô¼ºÒѾ­½â¾öÁË¡£ ÆÕͨÓû§µÄmemlock²»¹»¡£rootÓû§Ï£¬ÔÚÿ¸ö½ÚµãµÄ/etc/security/limits.confÎļþÀïÔö¼ÓÁ½ÐÐ
ij¸öÆÕͨÓû§Ãû soft memlock unlimited
ij¸öÆÕͨÓû§Ãû hard memlock unlimited

È»ºóÒªÖØÆôÿ¸ö·þÎñÆ÷½Úµã¡£<----ÕâÒ»µãºÜÖØÒª£¬·ñÔòÇл»µ½ÆÕͨÓû§Ï£¬»á³öÏÖ
memlock cannot modify limit: Operation not permitte.
2Â¥2013-10-13 21:22:41
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ qh203 µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] µ÷¼Á310 +6 ÎÂÈáµÄÍí°² 2026-03-25 7/350 2026-03-28 16:04 by qq2000
[¿¼ÑÐ] ±¾¿ÆË«·Ç²ÄÁÏ£¬¿ç¿¼Ò»Ö¾Ô¸»ªµç085801µçÆø£¬283Çóµ÷¼Á£¬ÈκÎרҵ¶¼¿ÉÒÔ +5 ֥ʿѩbaoo 2026-03-28 6/300 2026-03-28 15:25 by 1018329917
[¿¼ÑÐ] 321Çóµ÷¼Á +6 ²ÄÁÏcailiao 2026-03-21 6/300 2026-03-28 13:14 by ÌÆãå¶ù
[¿¼ÑÐ] 322Çóµ÷¼Á +6 ËÎÃ÷ÐÀ 2026-03-27 6/300 2026-03-28 07:08 by wangy0907
[¿¼ÑÐ] 070300»¯Ñ§Çóµ÷¼Á +4 Æð¸öÃûÕ¦ÕâôÄÑ 2026-03-27 4/200 2026-03-27 21:39 by 83503ËïÀÏʦ
[¿¼ÑÐ] ²ÄÁÏ292µ÷¼Á +12 éÙËÌ˼ÃÀÈË 2026-03-23 12/600 2026-03-27 15:44 by caszguilin
[¿¼ÑÐ] 0856µ÷¼Á +5 ÇóÇóÈÃÎÒÓÐÊé¶Á° 2026-03-26 6/300 2026-03-27 15:12 by caszguilin
[¿¼ÑÐ] 324Çóµ÷¼Á +8 hanamiko 2026-03-26 10/500 2026-03-27 08:06 by hypershenger
[¿¼ÑÐ] 329Çóµ÷¼Á +7 Å¥¶÷Ñ© 2026-03-25 7/350 2026-03-27 04:28 by wxiongid
[¿¼ÑÐ] Çóµ÷¼Á Ò»Ö¾Ô¸ ±¾¿Æ ±±¿Æ´ó »¯Ñ§ 343 +6 13831862839 2026-03-24 7/350 2026-03-26 22:57 by ²»³Ôô~µÄ؈
[¿¼ÑÐ] »¯Ñ§¹¤³Ì085602 305·ÖÇóµ÷¼Á +17 RichLi_ 2026-03-25 17/850 2026-03-26 19:44 by plmuchong
[¿¼ÑÐ] »úеѧ˶310·Ö£¬ÊýÒ»Ó¢Ò»£¬Ò»Ö¾Ô¸211±¾¿ÆË«·ÇÕÒµ÷¼ÁÐÅÏ¢ +3 @357 2026-03-25 3/150 2026-03-26 16:34 by by.MENG
[¿¼ÑÐ] 281Çóµ÷¼Á +6 Koxui 2026-03-24 7/350 2026-03-26 15:37 by Î޼ʵIJÝÔ­
[¿¼ÑÐ] Ò»Ö¾Ô¸ ÄϾ©Óʵç´óѧ 288·Ö ²ÄÁÏ¿¼ÑÐ Çóµ÷¼Á +3 jl0720 2026-03-26 3/150 2026-03-26 13:39 by zzll406
[¿¼ÑÐ] »¯Ñ§µ÷¼ÁÒ»Ö¾Ô¸ÉϺ£½»Í¨´óѧ336·Ö-±¾¿ÆÉϺ£211 +4 СÓã°®Óлú 2026-03-25 4/200 2026-03-26 10:19 by aa331100
[¿¼ÑÐ] 309Çóµ÷¼Á +4 gajsj 2026-03-25 5/250 2026-03-26 00:27 by Dyhoer
[¿¼ÑÐ] Ò»Ö¾Ô¸ÉϺ£½»´óÉúÎïÓëҽҩר˶324·Ö£¬Çóµ÷¼Á +6 jiajunX 2026-03-22 6/300 2026-03-25 23:05 by licg0208
[¿¼ÑÐ] ÇóbÇøÔºÐ£µ÷¼Á +4 ÖÜ56 2026-03-24 5/250 2026-03-25 17:12 by yishunmin
[¿¼ÑÐ] 0854µç×ÓÐÅÏ¢Çóµ÷¼Á +7 ¦Á____ 2026-03-22 9/450 2026-03-25 13:37 by ¦Á____
[¿¼ÑÐ] 300Çóµ÷¼Á£¬²ÄÁÏ¿ÆÑ§Ó¢Ò»Êý¶þ +5 leaflight 2026-03-24 5/250 2026-03-24 16:25 by laoshidan
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û