[prev in list] [next in list] [prev in thread] [next in thread] 

List:       amanda-hackers
Subject:    Re: Dangling shared memory segments
From:       Brad Guillory <round () baileylink ! net>
Date:       2000-09-15 23:32:23
[Download RAW message or body]

I sometime have shared memory problems and I clean them up with this command.

ipcrm `ipcs -o | perl -ne ' { m/^m\s+(\d+)\s+(\d+)\s+\S+\s+operator \
operator\s+(\d)$/; print "-m $1 " if ($2 eq 0 and $3 eq 0) }'

I am considering putting this in my cron to run on the weekend.  Checking
that amanda is not currently running.  If someone has any input about
doing this please let me know.

BMG

On Fri, Sep 15, 2000 at 12:44:01AM -0700, Chris Miller wrote:
> 
> Hello,
> 	Is this problem specific to 2.5 or does it apply to earlier
> versions as well? I've run into a similar problem with Amanda-2.4.1p1
> under BSDi 4.1. It seems to work fine with the generic kernel, but using a
> patched kernel I get "taper: FATAL shmget: Cannot allocate memory".
> Perhaps this is just a coincidence due to the intermittant nature of the
> problem. I've found a few suggestions in the bsdi-users archives at
> nexial.nl for kernel tweaks to eliminate shmget errors pertaining to an
> unrelated (to amanda) program, but no one seemed to understand what each
> of the variables did and posted what looked to be guesses both in variable
> names and values that were all over the place. We use a mixture of BSDi
> 3.1 and 4.1 machines and due to the various builds of amanda included with
> the OS versions, and the fact I wanted specific compile options
> (--with-amandahosts, etc), I compiled amanda myself. I did notice that the
> included version of Amanda-2.4.1p1 in BSDi 4.1 does not use HAVE_SYSVSHM
> (hmmm, wonder why).
> 
> Regards,
> Chris
> 
> Chris Miller
> NetGate Internet
> 
> On Tue, 18 Jul 2000, John R. Jackson wrote:
> 
> > > There seems to be a bug in server-src/taper.c.
> > 
> > Yup.  Thanks for the patch.  It's been applied to the current source tree.
> > 
> > > Patrik
> > 
> > John R. Jackson, Technical Software Specialist, jrj@purdue.edu
> > 
> 
> 

-- 
    __O    |     Information wants to be free!     |     __O    Bike
  _-\<,_   |  FreeBSD:The Power to Serve (easily)  |   _-\<,_    to
 (_)/ (_)  | OpenBSD:The Power to Serve (securely) |  (_)/ (_)  Work


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic