Newsgroups: comp.parallel.mpi
From: "Y. Hamadi" <hamadi@lirmm.fr>
Subject: Re: Installing MPI for Linux SMP?
Organization: LIRMM - FRANCE
Date: Fri, 24 Jul 1998 14:49:43 +0200
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="------------DEED4DE66A1232154896AC83"
Message-ID: <35B882E6.ADB4CAD0@lirmm.fr>


--------------DEED4DE66A1232154896AC83
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Jongsoo Kim wrote:

> >  Nevertheless you should control the amount of shared
> > memory/semaphores generated by aborted execution (ipcs unix command).
> >
>
> I am using a Linux box with 2 PII processes.   I have installed mpich
> with ch_shmem device.  But I got the following error messages.  It seems
> to be related to the above statement.Would you let me know how to
> control the shared memory?
>

Hello,In fact, you can first control the shared memory / semaphore /
message queue  facilities with the ipcrm unix command (man ipcrm for
details). But this will only allow you to delete previously made shared
memory/semaphore/message queue.But for your problem (according to the
output below), it seems that the shared memory are too huge for allocation.
You can try to modify the maximum-size-of-shared-memory since there should
be a constant in your system for specifying this limitation. Finally it
seems (according to local linux-guru) that the linux kernel 2.1 provides a
more efficient exploitation of SMP systems. Maybe you should move to this
kernel?

hopes this help..
yh

> Sincerely yours,
> Jongsoo Kim
> ---------------------------------------------------------------------
>
> [jskim@triple]# ./main.x -np 2
> mmap failed: Invalid argument
> OOPS: mmap failed: cannot map shared memory, size= 4194304
> IOT Trap
> Abort (core dumped)
>
> [jskim@triple]# ipcs
>
> ------ Shared Memory Segments --------
> key        shmid     owner     perms     bytes     nattch    status
>
> ------ Semaphore Arrays --------
> key       semid     owner     perms     nsems     status
> 0x0000442e 0         jskim     600       10
> 0x000044b8 1         jskim     600       10
> 0x00004541 2         jskim     600       10
>
> ------ Message Queues --------
> key       msqid     owner     perms     used-bytes  messages



--
 Youssef HAMADI
  LIRMM - UMR 5506 CNRS/Universite Montpellier II
  161, Rue Ada  34392 MONTPELLIER CEDEX 5  FRANCE
  Tel: (+33) 04 67 41 86 13  Fax: (+33) 04 67 41 85 00
  http://www.lirmm.fr/~hamadi



--------------DEED4DE66A1232154896AC83
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<HTML>
Jongsoo Kim wrote:
<BLOCKQUOTE TYPE=CITE>>&nbsp; Nevertheless you should control the amount
of shared
<BR>> memory/semaphores generated by aborted execution (ipcs unix command).
<BR>>

<P>I am using a Linux box with 2 PII processes.&nbsp;&nbsp; I have installed
mpich
<BR>with ch_shmem device.&nbsp; But I got the following error messages.&nbsp;
It seems
<BR>to be related to the above statement.Would you let me know how to
<BR>control the shared memory?
<BR>&nbsp;</BLOCKQUOTE>
Hello,In fact, you can first control the shared memory / semaphore / message
queue&nbsp; facilities with the ipcrm unix command (man ipcrm for details).
But this will only allow you to delete previously made shared memory/semaphore/message
queue.But for your problem (according to the output below), it seems that
the shared memory are too huge for allocation. You can try to modify the
maximum-size-of-shared-memory since there should be a constant in your
system for specifying this limitation. Finally it seems (according to local
linux-guru) that the linux kernel 2.1 provides a more efficient exploitation
of SMP systems. Maybe you should move to this kernel?

<P>hopes this help..
<BR>yh
<BLOCKQUOTE TYPE=CITE>

<P>Sincerely yours,
<BR>Jongsoo Kim
<BR>---------------------------------------------------------------------

<P>[jskim@triple]# ./main.x -np 2
<BR>mmap failed: Invalid argument
<BR>OOPS: mmap failed: cannot map shared memory, size= 4194304
<BR>IOT Trap
<BR>Abort (core dumped)

<P>[jskim@triple]# ipcs

<P>------ Shared Memory Segments --------
<BR>key&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; shmid&nbsp;&nbsp;&nbsp;&nbsp;
owner&nbsp;&nbsp;&nbsp;&nbsp; perms&nbsp;&nbsp;&nbsp;&nbsp; bytes&nbsp;&nbsp;&nbsp;&nbsp;
nattch&nbsp;&nbsp;&nbsp; status

<P>------ Semaphore Arrays --------
<BR>key&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; semid&nbsp;&nbsp;&nbsp;&nbsp;
owner&nbsp;&nbsp;&nbsp;&nbsp; perms&nbsp;&nbsp;&nbsp;&nbsp; nsems&nbsp;&nbsp;&nbsp;&nbsp;
status
<BR>0x0000442e 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; jskim&nbsp;&nbsp;&nbsp;&nbsp;
600&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10
<BR>0x000044b8 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; jskim&nbsp;&nbsp;&nbsp;&nbsp;
600&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10
<BR>0x00004541 2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; jskim&nbsp;&nbsp;&nbsp;&nbsp;
600&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10

<P>------ Message Queues --------
<BR>key&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; msqid&nbsp;&nbsp;&nbsp;&nbsp;
owner&nbsp;&nbsp;&nbsp;&nbsp; perms&nbsp;&nbsp;&nbsp;&nbsp; used-bytes&nbsp;
messages</BLOCKQUOTE>
&nbsp;
<PRE>--&nbsp;
&nbsp;Youssef HAMADI&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; LIRMM - UMR 5506 CNRS/Universite Montpellier II&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; 161, Rue Ada&nbsp; 34392 MONTPELLIER CEDEX 5&nbsp; FRANCE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; Tel: (+33) 04 67 41 86 13&nbsp; Fax: (+33) 04 67 41 85 00
&nbsp; <A HREF="http://www.lirmm.fr/~hamadi">http://www.lirmm.fr/~hamadi</A></PRE>
&nbsp;</HTML>

--------------DEED4DE66A1232154896AC83--


