Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Apr 2002 08:59:38 +1000 (EST)
From:      callum.gibson@db.com
To:        hackers@freebsd.org
Subject:   ipcrm/shmctl failure
Message-ID:  <20020408225938.2069.qmail@merton.aus.deuba.com>

next in thread | raw e-mail | index | archive | help
Hi,
I'm running FreeBSD 4.5-RELEASE on 2 machines. Yesterday one of them
ran out of shared memory segments (used by wine, X11 and mozilla).
Fine, clean them up. However although I could list them with ipcs,
the vast majority could not be removed, even as root with ipcrm failing
with "Invalid argument". I also have a program which implements ipcrm
(en masse) with shmctl(2) and it fails similarly (EINVAL). In short I
could only clear these by rebooting.

My other machine has been up only 13 hours and already there are a number of
shared memory segments I can't get rid of.

The only other thing that could be relevant is that I do use the linux
mozilla so perhaps it has something to do with creation of the shm
under linux emulation? (I did try running a linux ipcrm binary just
in case - same error.) This may be a red herring because as far as I
can tell the nonremovable ones this morning were created by X (I only
ran a few xterms, xclock, xload).

Also the manpage mentions a file-based implementation. Where are the
files kept? With this in mind, the only other thing I might mention is
that I have an mfs /tmp (on both machines).

I can't see any previous mention of this on questions, hackers or current
nor in the PR database. Has anyone else seen this? It should be easy to
repeat I would have thought as I'm not doing anything unusual.

    C

Callum Gibson                               callum.gibson@db.com
Global Markets IT, Deutsche Bank, Australia       61 2 9258 1620
### The opinions in this message are mine and not Deutsche's ###

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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