xref: /freebsd/usr.bin/ipcs/ipcs.1 (revision f18a58b58901b09a179494152f107e76077317cc)
149fbc2acSDoug Rabson.\"
249fbc2acSDoug Rabson.\" Copyright (c) 1994 SigmaSoft, Th. Lockert
349fbc2acSDoug Rabson.\" All rights reserved.
449fbc2acSDoug Rabson.\"
549fbc2acSDoug Rabson.\" Redistribution and use in source and binary forms, with or without
649fbc2acSDoug Rabson.\" modification, are permitted provided that the following conditions
749fbc2acSDoug Rabson.\" are met:
849fbc2acSDoug Rabson.\" 1. Redistributions of source code must retain the above copyright
949fbc2acSDoug Rabson.\"    notice, this list of conditions and the following disclaimer.
1049fbc2acSDoug Rabson.\" 2. Redistributions in binary form must reproduce the above copyright
1149fbc2acSDoug Rabson.\"    notice, this list of conditions and the following disclaimer in the
1249fbc2acSDoug Rabson.\"    documentation and/or other materials provided with the distribution.
1349fbc2acSDoug Rabson.\" 3. All advertising materials mentioning features or use of this software
1449fbc2acSDoug Rabson.\"    must display the following acknowledgement:
1549fbc2acSDoug Rabson.\"      This product includes software developed by SigmaSoft, Th. Lockert.
1649fbc2acSDoug Rabson.\" 3. The name of the author may not be used to endorse or promote products
1749fbc2acSDoug Rabson.\"    derived from this software without specific prior written permission
1849fbc2acSDoug Rabson.\"
1949fbc2acSDoug Rabson.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
2049fbc2acSDoug Rabson.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
2149fbc2acSDoug Rabson.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2249fbc2acSDoug Rabson.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2349fbc2acSDoug Rabson.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2449fbc2acSDoug Rabson.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2549fbc2acSDoug Rabson.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2649fbc2acSDoug Rabson.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2749fbc2acSDoug Rabson.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2849fbc2acSDoug Rabson.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2949fbc2acSDoug Rabson.\"
30c3aac50fSPeter Wemm.\" $FreeBSD$
3149fbc2acSDoug Rabson.\"
32f0085ed6SRuslan Ermilov.Dd March 24, 2004
3349fbc2acSDoug Rabson.Dt "IPCS" 1
34ed403116SRuslan Ermilov.Os
3549fbc2acSDoug Rabson.Sh NAME
3649fbc2acSDoug Rabson.Nm ipcs
3749fbc2acSDoug Rabson.Nd report System V interprocess communication facilities status
3849fbc2acSDoug Rabson.Sh SYNOPSIS
3900bbaadcSPhilippe Charnier.Nm
40b15abeffSDima Dorfman.Op Fl abcmopqstMQSTy
41aae483c5STim J. Robbins.Op Fl C Ar core
42aae483c5STim J. Robbins.Op Fl N Ar system
43f18a58b5SRuslan Ermilov.Op Fl u Ar user
4449fbc2acSDoug Rabson.Sh DESCRIPTION
4549fbc2acSDoug RabsonThe
4600bbaadcSPhilippe Charnier.Nm
47e8937ba0SPhilippe Charnierutility provides information on System V interprocess communication
4849fbc2acSDoug Rabson(IPC) facilities on the system.
4949fbc2acSDoug Rabson.Pp
5049fbc2acSDoug RabsonThe options are as follows:
5149fbc2acSDoug Rabson.Bl -tag -width Ds
5249fbc2acSDoug Rabson.It Fl a
5349fbc2acSDoug RabsonShow the maximum amount of information possible when
5449fbc2acSDoug Rabsondisplaying active semaphores, message queues,
5549fbc2acSDoug Rabsonand shared memory segments.
5649fbc2acSDoug Rabson(This is shorthand for specifying the
5749fbc2acSDoug Rabson.Fl b ,
5849fbc2acSDoug Rabson.Fl c ,
5949fbc2acSDoug Rabson.Fl o ,
6049fbc2acSDoug Rabson.Fl p ,
6149fbc2acSDoug Rabsonand
6249fbc2acSDoug Rabson.Fl t
6349fbc2acSDoug Rabsonoptions.)
6449fbc2acSDoug Rabson.It Fl b
6549fbc2acSDoug RabsonShow the maximum allowed sizes for active semaphores, message queues,
6649fbc2acSDoug Rabsonand shared memory segments.  The
6749fbc2acSDoug Rabson.Dq maximum allowed size
6849fbc2acSDoug Rabsonis the maximum number of bytes in a message on a message queue,
6949fbc2acSDoug Rabsonthe size of a shared memory segment,
70e83201b4SWolfram Schneideror the number of semaphores in a set of semaphores.
7149fbc2acSDoug Rabson.It Fl c
7249fbc2acSDoug RabsonShow the creator's name and group for active semaphores, message queues,
7349fbc2acSDoug Rabsonand shared memory segments.
7449fbc2acSDoug Rabson.It Fl m
7549fbc2acSDoug RabsonDisplay information about active shared memory segments.
7649fbc2acSDoug Rabson.It Fl o
7749fbc2acSDoug RabsonShow outstanding usage for active message queues,
7849fbc2acSDoug Rabsonand shared memory segments.  The
7949fbc2acSDoug Rabson.Dq outstanding usage
8049fbc2acSDoug Rabsonis the number of messages in a message queue, or the number
8149fbc2acSDoug Rabsonof processes attached to a shared memory segment.
8249fbc2acSDoug Rabson.It Fl p
8349fbc2acSDoug RabsonShow the process ID information for active semaphores, message queues,
8449fbc2acSDoug Rabsonand shared memory segments.  The
8549fbc2acSDoug Rabson.Dq process ID information
8649fbc2acSDoug Rabsonis the last process to send a message to or receive a message from
8749fbc2acSDoug Rabsona message queue,
8849fbc2acSDoug Rabsonthe process that created a semaphore, or the last process to attach
8949fbc2acSDoug Rabsonor detach a shared memory segment.
9049fbc2acSDoug Rabson.It Fl q
9149fbc2acSDoug RabsonDisplay information about active message queues.
9249fbc2acSDoug Rabson.It Fl s
9349fbc2acSDoug RabsonDisplay information about active semaphores.
9449fbc2acSDoug Rabson.It Fl t
9549fbc2acSDoug RabsonShow access times for active semaphores, message queues,
9649fbc2acSDoug Rabsonand shared memory segments.  The access times is the time
9749fbc2acSDoug Rabsonof the last control operation on an IPC object,
9849fbc2acSDoug Rabsonthe last send or receive of a message,
9949fbc2acSDoug Rabsonthe last attach or detach of a shared memory segment,
10049fbc2acSDoug Rabsonor the last operation on a semaphore.
101aae483c5STim J. Robbins.It Fl C Ar core
102aae483c5STim J. RobbinsExtract values associated with the name list from the specified
103aae483c5STim J. Robbinscore instead of the default
104fa7f4291SRuslan Ermilov.Pa /dev/kmem .
105b15abeffSDima DorfmanImplies
106b15abeffSDima Dorfman.Fl y .
10749fbc2acSDoug Rabson.It Fl M
10849fbc2acSDoug RabsonDisplay system information about shared memory.
109aae483c5STim J. Robbins.It Fl N Ar system
110aae483c5STim J. RobbinsExtract the name list from the specified system instead of the
111aae483c5STim J. Robbinsdefault
112fa7f4291SRuslan Ermilov.Pa /boot/kernel/kernel .
113b15abeffSDima DorfmanImplies
114b15abeffSDima Dorfman.Fl y .
11549fbc2acSDoug Rabson.It Fl Q
11649fbc2acSDoug RabsonDisplay system information about messages queues.
11749fbc2acSDoug Rabson.It Fl S
11849fbc2acSDoug RabsonDisplay system information about semaphores.
11949fbc2acSDoug Rabson.It Fl T
12049fbc2acSDoug RabsonDisplay system information about shared memory, message queues
121d301a38dSEivind Eklundand semaphores.
122b15abeffSDima Dorfman.It Fl y
123b15abeffSDima DorfmanUse the
124b15abeffSDima Dorfman.Xr kvm 3
125b15abeffSDima Dorfmaninterface instead of the
126b15abeffSDima Dorfman.Xr sysctl 3
127b15abeffSDima Dorfmaninterface to extract the required information.
128b15abeffSDima DorfmanIf
129b15abeffSDima Dorfman.Nm
130b15abeffSDima Dorfmanis to operate on the running system,
131b15abeffSDima Dorfmanusing
132b15abeffSDima Dorfman.Xr kvm 3
133b15abeffSDima Dorfmanwill require read privileges to
134b15abeffSDima Dorfman.Pa /dev/kmem .
1354d2e8e5fSBosko Milekic.It Fl u Ar user
1364d2e8e5fSBosko MilekicDisplay information about IPC mechanisms owned by
1374d2e8e5fSBosko Milekic.Pa user .
1384d2e8e5fSBosko MilekicUser specification can be in the form of a numeric UID or
1394d2e8e5fSBosko Milekica login name.
14049fbc2acSDoug Rabson.El
14149fbc2acSDoug Rabson.Pp
14249fbc2acSDoug RabsonIf none of the
14349fbc2acSDoug Rabson.Fl M ,
14449fbc2acSDoug Rabson.Fl m ,
14549fbc2acSDoug Rabson.Fl Q ,
14649fbc2acSDoug Rabson.Fl q ,
14749fbc2acSDoug Rabson.Fl S ,
14849fbc2acSDoug Rabsonor
14949fbc2acSDoug Rabson.Fl s
15049fbc2acSDoug Rabsonoptions are specified, information about all active IPC facilities is
15149fbc2acSDoug Rabsonlisted.
15249fbc2acSDoug Rabson.Sh RESTRICTIONS
15349fbc2acSDoug RabsonSystem data structures may change while
15400bbaadcSPhilippe Charnier.Nm
15549fbc2acSDoug Rabsonis running; the output of
15600bbaadcSPhilippe Charnier.Nm
15749fbc2acSDoug Rabsonis not guaranteed to be consistent.
15849fbc2acSDoug Rabson.Sh BUGS
15949fbc2acSDoug RabsonThis manual page is woefully incomplete, because it does not
16049fbc2acSDoug Rabsonat all attempt to explain the information printed by
1618fe908efSRuslan Ermilov.Nm .
16249fbc2acSDoug Rabson.Sh FILES
1631063e126SJosef Karthauser.Bl -tag -width /boot/kernel/kernel -compact
16449fbc2acSDoug Rabson.It Pa /dev/kmem
16549fbc2acSDoug Rabsondefault kernel memory
1661063e126SJosef Karthauser.It Pa /boot/kernel/kernel
16749fbc2acSDoug Rabsondefault system name list
16849fbc2acSDoug Rabson.El
16949fbc2acSDoug Rabson.Sh SEE ALSO
17049fbc2acSDoug Rabson.Xr ipcrm 1
171306005e7SPhilippe Charnier.Sh AUTHORS
172306005e7SPhilippe Charnier.An Thorsten Lockert Aq tholo@sigmasoft.com
173