From: gpt@k2.nospam.llnl.gov (Greg P Tomaschke)
Newsgroups: comp.parallel.pvm
Subject: Re: Help : libpvm [t40002]: pvm_mkbuf(): Malloc failed
Date: 8 Feb 1999 17:17:24 GMT
Organization: Lawrence Livermore National Laboratory
Message-Id: <79n674$775$1@lll-winken.llnl.gov>
References: <793c32$l2f$1@metro.ucc.usyd.edu.au> <36BC5497.74B2@pcez.com>
Xref: ukc comp.parallel.pvm:7999


In article <36BC5497.74B2@pcez.com>, Little Rascal <darswan@pcez.com> writes:
|> Ahmad Jabbarzadeh wrote:
|> > 
|> > I am using a parallel program on a number of DEC ALPHA workstations. Th
|> > eprogram is written ion FORTRAN 90. The program was OK few days ago but now I
|> > am getting the following message]
|> > 
|> > libpvm [t40002]: pvm_mkbuf(): Malloc failed
|> > 
|> > And then program stops. I know this message appears when memory allocation is
|> > failed and no buffer can be made on the system. I deleted some files on the
|> > disk to provide the necessary space but the problem still persist. I have run
|> > the problem for bigger memory requirements in the past with no problem and  I
|> > am puzzeled what the real reason might be. I appreciate any hints and thoughts
|> > that can help me to solve the problem please email me on
|> > 
|> > ahmadj@tiny.mech.eng.usyd.edu.au
|> > 
|> > regards
|> > Ahmad
|> You will run into this problem in other languages also.  A good place to
|> start is the mkbuf() routine. The error simply states that there was
|> probably not enough ram to create the buffer size stated. Check how big
|> this buffer is set for. C will do this also.  
|> 
|> 
|> Darrell..... up to my ears in inodes again...

It may also be that the shared memory pool has been exhausted.  On DEC
Alpha boxes, processes that use shared memory sometimes leave that memory
allocated after the processes die.  

To see who is using shared memory, use the command "ipcs".  If it's you :-),
you can use the "ipcfree" command to free up shared memory.

-Greg

Greg Tomaschke
tomaschke@nospam.llnl.gov

Remove nospam. to reply.

