Newsgroups: comp.parallel.pvm
From: jperry@acadia.boston.sgi.com (Jack Perry)
Subject: Re: PVM on a Power Challenge
Organization: Silicon Graphics, Inc.
Date: 17 Apr 1996 19:45:21 GMT
Message-ID: <4l3hoh$3id@murrow.corp.sgi.com>

In article <4l3a0l$9jq@netnews.upenn.edu>, jeff@Adeno.wistar.upenn.edu
(Jeff Taylor) writes:
|> I'm just beginning to learn how our shared memory 4 processor SGI works
|> and I
|> have a few questions (SGI's documentation is somewhat *sparse* ).  When
|> I am
|> debugging PVM (3.3.10) programs on the system (SGIMP64) they often crash
|> and
|> the shared memory identifiers and semaphores don't get removed. 
|> Eventually,
|> I can't start any new jobs without getting a no space left error.  I
|> have
|> discovered the two commands "ipcs" and "ipcrm" which will list and
|> remove
|> the indentifiers and semephores but I have to remove each one
|> individually by
|> hand.  There must a better way that I am missing.  If anyone can give me
|> some
|> pointers as to the ins and outs of SGI's SMP os I would really
|> appreciate it.
|> 
|> Thanks,
|> 
|> Jeff
|> 
|> 
|>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
|> Jeffrey S. Taylor				Protein Crystallography
|> The Wistar Institute and			Molecular Modelling
|> The University of Pennsylvania			Software development
|> Philadelphia, PA 19104				Molecular Biology
|> (215) 898-2202			E-Mail    Jeff@aries.wistar.upenn.edu	
|> 				WWW	http://adeno.wistar.upenn.edu
|>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
|> 

Jeff --

Here's a hacked script we call "pvmclean" that
cleans up what you describe and more after a
crashed pvm job.

#kill the daemon if it's still running
kill `ps -e | grep pvmd3 | sed 's/ *\([0-9]*\).*/\1/'`
#get rid of the temp file that indicates the daemon is there
rm /tmp/pvmd*
#get rid of any system V semaphores and shared memory that were left
ipcs | grep "^[sm].* $user " | sed 's/\(.\) *\([0-9]*\).*/ipcrm -\1 \2/' |
sh -v

I developed a course called PowerLearn on details of
the R8000, Power Challenge, compiler switches, cache
architecture and SMP programming with FORTRAN directives
or C pragmas.  Boston University has the slides on the web at

http://www.bu.edu:80/SCV/Tutorials/SGITune

These slides don't cover message-passing with PVM or MPI but
you should find some useful info that's not otherwise handy.

Hope this helps,
Jack

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Jack (John R.) Perry        jperry@sgi.com
 Eastern Technology Center 
 Silicon Graphics, Inc.    
 One Cabot Road        
 Hudson, MA   01749 
 508-567-2142 





