Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 May 2003 22:43:24 -0400
From:      Anthony Schneider <anthony@x-anthony.com>
To:        Tim Robbins <tjr@FreeBSD.ORG>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: mpi + shmem issues
Message-ID:  <20030527024324.GA21481@x-anthony.com>
In-Reply-To: <20030526123953.A91078@dilbert.robbins.dropbear.id.au>
References:  <20030525064929.GA96588@x-anthony.com> <20030525211730.GA5226@x-anthony.com> <20030526123953.A91078@dilbert.robbins.dropbear.id.au>

next in thread | previous in thread | raw e-mail | index | archive | help

--Dxnq1zWXvFF0Q93v
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

i see.  thanks!

-Anthony.

On Mon, May 26, 2003 at 12:39:53PM +1000, Tim Robbins wrote:
> On Sun, May 25, 2003 at 05:17:30PM -0400, Anthony Schneider wrote:
>=20
> > so, does this mean that mpich somehow exhausted all shmem locks?
> > after running the program only 10 times, i see this as infeasible,
> > considering
> > 	a) mpich (presumably in MPI_Init()) would only want 1 or
> > 	   2 locks on init
> > and
> > 	b) any shared memory locks mpich grabs should be freed
> > 	   upon process completion (whether clean or not) by the
> > 	   operating system, no?
>=20
> No, semaphores stay around until they are removed. Perhaps there's an MPI=
_Xyz
> function you should be calling before your program exits. In any case, yo=
u can
> use "ipcs -s" to list semaphores, and "ipcrm -s semid" to remove semaphor=
es.
>=20
> It looks like the program is leaking semaphores -- notice how your program
> fails when you run it for the 11th time, and the default maximum number of
> semaphores in the GENERIC kernel is 10 (sysctl kern.ipc.semmni).
>=20
>=20
> Tim

--Dxnq1zWXvFF0Q93v
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE+0tDLKUeW47UGY2kRAvI2AJ9i3UvabJcf0MYVGhrqUxcnrWTB+wCfWRw0
1VUMbSUO+w8SPPEouyocSWY=
=oOik
-----END PGP SIGNATURE-----

--Dxnq1zWXvFF0Q93v--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030527024324.GA21481>