xref: /freebsd/usr.bin/ipcs/ipcs.1 (revision 1063e12617314d2f57516f4554764a7bf2f1131d)
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.\"
3249fbc2acSDoug Rabson.Dd June 18, 1994
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
4149fbc2acSDoug Rabson.Op Fl C Ar system
4249fbc2acSDoug Rabson.Op Fl N Ar core
4349fbc2acSDoug Rabson.Sh DESCRIPTION
4449fbc2acSDoug RabsonThe
4500bbaadcSPhilippe Charnier.Nm
46e8937ba0SPhilippe Charnierutility provides information on System V interprocess communication
4749fbc2acSDoug Rabson(IPC) facilities on the system.
4849fbc2acSDoug Rabson.Pp
4949fbc2acSDoug RabsonThe options are as follows:
5049fbc2acSDoug Rabson.Bl -tag -width Ds
5149fbc2acSDoug Rabson.It Fl a
5249fbc2acSDoug RabsonShow the maximum amount of information possible when
5349fbc2acSDoug Rabsondisplaying active semaphores, message queues,
5449fbc2acSDoug Rabsonand shared memory segments.
5549fbc2acSDoug Rabson(This is shorthand for specifying the
5649fbc2acSDoug Rabson.Fl b ,
5749fbc2acSDoug Rabson.Fl c ,
5849fbc2acSDoug Rabson.Fl o ,
5949fbc2acSDoug Rabson.Fl p ,
6049fbc2acSDoug Rabsonand
6149fbc2acSDoug Rabson.Fl t
6249fbc2acSDoug Rabsonoptions.)
6349fbc2acSDoug Rabson.It Fl b
6449fbc2acSDoug RabsonShow the maximum allowed sizes for active semaphores, message queues,
6549fbc2acSDoug Rabsonand shared memory segments.  The
6649fbc2acSDoug Rabson.Dq maximum allowed size
6749fbc2acSDoug Rabsonis the maximum number of bytes in a message on a message queue,
6849fbc2acSDoug Rabsonthe size of a shared memory segment,
69e83201b4SWolfram Schneideror the number of semaphores in a set of semaphores.
7049fbc2acSDoug Rabson.It Fl c
7149fbc2acSDoug RabsonShow the creator's name and group for active semaphores, message queues,
7249fbc2acSDoug Rabsonand shared memory segments.
7349fbc2acSDoug Rabson.It Fl m
7449fbc2acSDoug RabsonDisplay information about active shared memory segments.
7549fbc2acSDoug Rabson.It Fl o
7649fbc2acSDoug RabsonShow outstanding usage for active message queues,
7749fbc2acSDoug Rabsonand shared memory segments.  The
7849fbc2acSDoug Rabson.Dq outstanding usage
7949fbc2acSDoug Rabsonis the number of messages in a message queue, or the number
8049fbc2acSDoug Rabsonof processes attached to a shared memory segment.
8149fbc2acSDoug Rabson.It Fl p
8249fbc2acSDoug RabsonShow the process ID information for active semaphores, message queues,
8349fbc2acSDoug Rabsonand shared memory segments.  The
8449fbc2acSDoug Rabson.Dq process ID information
8549fbc2acSDoug Rabsonis the last process to send a message to or receive a message from
8649fbc2acSDoug Rabsona message queue,
8749fbc2acSDoug Rabsonthe process that created a semaphore, or the last process to attach
8849fbc2acSDoug Rabsonor detach a shared memory segment.
8949fbc2acSDoug Rabson.It Fl q
9049fbc2acSDoug RabsonDisplay information about active message queues.
9149fbc2acSDoug Rabson.It Fl s
9249fbc2acSDoug RabsonDisplay information about active semaphores.
9349fbc2acSDoug Rabson.It Fl t
9449fbc2acSDoug RabsonShow access times for active semaphores, message queues,
9549fbc2acSDoug Rabsonand shared memory segments.  The access times is the time
9649fbc2acSDoug Rabsonof the last control operation on an IPC object,
9749fbc2acSDoug Rabsonthe last send or receive of a message,
9849fbc2acSDoug Rabsonthe last attach or detach of a shared memory segment,
9949fbc2acSDoug Rabsonor the last operation on a semaphore.
10049fbc2acSDoug Rabson.It Fl C Ar system
10149fbc2acSDoug RabsonExtract the name list from the specified system instead of the
10249fbc2acSDoug Rabsondefault
1031063e126SJosef Karthauser.Dq Pa /boot/kernel/kernel .
104b15abeffSDima DorfmanImplies
105b15abeffSDima Dorfman.Fl y .
10649fbc2acSDoug Rabson.It Fl M
10749fbc2acSDoug RabsonDisplay system information about shared memory.
10849fbc2acSDoug Rabson.It Fl N Ar core
10949fbc2acSDoug RabsonExtract values associated with the name list from the specified
11049fbc2acSDoug Rabsoncore instead of the default
11149fbc2acSDoug Rabson.Dq Pa /dev/kmem .
112b15abeffSDima DorfmanImplies
113b15abeffSDima Dorfman.Fl y .
11449fbc2acSDoug Rabson.It Fl Q
11549fbc2acSDoug RabsonDisplay system information about messages queues.
11649fbc2acSDoug Rabson.It Fl S
11749fbc2acSDoug RabsonDisplay system information about semaphores.
11849fbc2acSDoug Rabson.It Fl T
11949fbc2acSDoug RabsonDisplay system information about shared memory, message queues
120d301a38dSEivind Eklundand semaphores.
121b15abeffSDima Dorfman.It Fl y
122b15abeffSDima DorfmanUse the
123b15abeffSDima Dorfman.Xr kvm 3
124b15abeffSDima Dorfmaninterface instead of the
125b15abeffSDima Dorfman.Xr sysctl 3
126b15abeffSDima Dorfmaninterface to extract the required information.
127b15abeffSDima DorfmanIf
128b15abeffSDima Dorfman.Nm
129b15abeffSDima Dorfmanis to operate on the running system,
130b15abeffSDima Dorfmanusing
131b15abeffSDima Dorfman.Xr kvm 3
132b15abeffSDima Dorfmanwill require read privileges to
133b15abeffSDima Dorfman.Pa /dev/kmem .
13449fbc2acSDoug Rabson.El
13549fbc2acSDoug Rabson.Pp
13649fbc2acSDoug RabsonIf none of the
13749fbc2acSDoug Rabson.Fl M ,
13849fbc2acSDoug Rabson.Fl m ,
13949fbc2acSDoug Rabson.Fl Q ,
14049fbc2acSDoug Rabson.Fl q ,
14149fbc2acSDoug Rabson.Fl S ,
14249fbc2acSDoug Rabsonor
14349fbc2acSDoug Rabson.Fl s
14449fbc2acSDoug Rabsonoptions are specified, information about all active IPC facilities is
14549fbc2acSDoug Rabsonlisted.
14649fbc2acSDoug Rabson.Sh RESTRICTIONS
14749fbc2acSDoug RabsonSystem data structures may change while
14800bbaadcSPhilippe Charnier.Nm
14949fbc2acSDoug Rabsonis running; the output of
15000bbaadcSPhilippe Charnier.Nm
15149fbc2acSDoug Rabsonis not guaranteed to be consistent.
15249fbc2acSDoug Rabson.Sh BUGS
15349fbc2acSDoug RabsonThis manual page is woefully incomplete, because it does not
15449fbc2acSDoug Rabsonat all attempt to explain the information printed by
1558fe908efSRuslan Ermilov.Nm .
15649fbc2acSDoug Rabson.Sh FILES
1571063e126SJosef Karthauser.Bl -tag -width /boot/kernel/kernel -compact
15849fbc2acSDoug Rabson.It Pa /dev/kmem
15949fbc2acSDoug Rabsondefault kernel memory
1601063e126SJosef Karthauser.It Pa /boot/kernel/kernel
16149fbc2acSDoug Rabsondefault system name list
16249fbc2acSDoug Rabson.El
16349fbc2acSDoug Rabson.Sh SEE ALSO
16449fbc2acSDoug Rabson.Xr ipcrm 1
165306005e7SPhilippe Charnier.Sh AUTHORS
166306005e7SPhilippe Charnier.An Thorsten Lockert Aq tholo@sigmasoft.com
167