From owner-freebsd-current@FreeBSD.ORG Mon May 26 19:38:41 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46A6337B401; Mon, 26 May 2003 19:38:41 -0700 (PDT) Received: from gunjin.wccnet.org (gunjin.wccnet.org [198.111.176.99]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79D5A43F93; Mon, 26 May 2003 19:38:40 -0700 (PDT) (envelope-from anthony@gunjin.wccnet.org) Received: from gunjin.wccnet.org (localhost.rexroof.com [127.0.0.1]) by gunjin.wccnet.org (8.12.3/8.12.2) with ESMTP id h4R2hOsn021567; Mon, 26 May 2003 22:43:25 -0400 (EDT) Received: (from anthony@localhost) by gunjin.wccnet.org (8.12.3/8.12.3/Submit) id h4R2hOD6021566; Mon, 26 May 2003 22:43:24 -0400 (EDT) Date: Mon, 26 May 2003 22:43:24 -0400 From: Anthony Schneider To: Tim Robbins Message-ID: <20030527024324.GA21481@x-anthony.com> References: <20030525064929.GA96588@x-anthony.com> <20030525211730.GA5226@x-anthony.com> <20030526123953.A91078@dilbert.robbins.dropbear.id.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Dxnq1zWXvFF0Q93v" Content-Disposition: inline In-Reply-To: <20030526123953.A91078@dilbert.robbins.dropbear.id.au> User-Agent: Mutt/1.4i cc: freebsd-current@FreeBSD.ORG Subject: Re: mpi + shmem issues X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2003 02:38:41 -0000 --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--