xref: /freebsd/usr.bin/ipcs/ipcs.1 (revision 6a3e8b0adc8c622ae61275a94d5d869980a68069)
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,
666a3e8b0aSRuslan Ermilovand shared memory segments.
676a3e8b0aSRuslan ErmilovThe
6849fbc2acSDoug Rabson.Dq maximum allowed size
6949fbc2acSDoug Rabsonis the maximum number of bytes in a message on a message queue,
7049fbc2acSDoug Rabsonthe size of a shared memory segment,
71e83201b4SWolfram Schneideror the number of semaphores in a set of semaphores.
7249fbc2acSDoug Rabson.It Fl c
7349fbc2acSDoug RabsonShow the creator's name and group for active semaphores, message queues,
7449fbc2acSDoug Rabsonand shared memory segments.
7549fbc2acSDoug Rabson.It Fl m
7649fbc2acSDoug RabsonDisplay information about active shared memory segments.
7749fbc2acSDoug Rabson.It Fl o
7849fbc2acSDoug RabsonShow outstanding usage for active message queues,
796a3e8b0aSRuslan Ermilovand shared memory segments.
806a3e8b0aSRuslan ErmilovThe
8149fbc2acSDoug Rabson.Dq outstanding usage
8249fbc2acSDoug Rabsonis the number of messages in a message queue, or the number
8349fbc2acSDoug Rabsonof processes attached to a shared memory segment.
8449fbc2acSDoug Rabson.It Fl p
8549fbc2acSDoug RabsonShow the process ID information for active semaphores, message queues,
866a3e8b0aSRuslan Ermilovand shared memory segments.
876a3e8b0aSRuslan ErmilovThe
8849fbc2acSDoug Rabson.Dq process ID information
8949fbc2acSDoug Rabsonis the last process to send a message to or receive a message from
9049fbc2acSDoug Rabsona message queue,
9149fbc2acSDoug Rabsonthe process that created a semaphore, or the last process to attach
9249fbc2acSDoug Rabsonor detach a shared memory segment.
9349fbc2acSDoug Rabson.It Fl q
9449fbc2acSDoug RabsonDisplay information about active message queues.
9549fbc2acSDoug Rabson.It Fl s
9649fbc2acSDoug RabsonDisplay information about active semaphores.
9749fbc2acSDoug Rabson.It Fl t
9849fbc2acSDoug RabsonShow access times for active semaphores, message queues,
996a3e8b0aSRuslan Ermilovand shared memory segments.
1006a3e8b0aSRuslan ErmilovThe access times is the time
10149fbc2acSDoug Rabsonof the last control operation on an IPC object,
10249fbc2acSDoug Rabsonthe last send or receive of a message,
10349fbc2acSDoug Rabsonthe last attach or detach of a shared memory segment,
10449fbc2acSDoug Rabsonor the last operation on a semaphore.
105aae483c5STim J. Robbins.It Fl C Ar core
106aae483c5STim J. RobbinsExtract values associated with the name list from the specified
107aae483c5STim J. Robbinscore instead of the default
108fa7f4291SRuslan Ermilov.Pa /dev/kmem .
109b15abeffSDima DorfmanImplies
110b15abeffSDima Dorfman.Fl y .
11149fbc2acSDoug Rabson.It Fl M
11249fbc2acSDoug RabsonDisplay system information about shared memory.
113aae483c5STim J. Robbins.It Fl N Ar system
114aae483c5STim J. RobbinsExtract the name list from the specified system instead of the
115aae483c5STim J. Robbinsdefault
116fa7f4291SRuslan Ermilov.Pa /boot/kernel/kernel .
117b15abeffSDima DorfmanImplies
118b15abeffSDima Dorfman.Fl y .
11949fbc2acSDoug Rabson.It Fl Q
12049fbc2acSDoug RabsonDisplay system information about messages queues.
12149fbc2acSDoug Rabson.It Fl S
12249fbc2acSDoug RabsonDisplay system information about semaphores.
12349fbc2acSDoug Rabson.It Fl T
12449fbc2acSDoug RabsonDisplay system information about shared memory, message queues
125d301a38dSEivind Eklundand semaphores.
126b15abeffSDima Dorfman.It Fl y
127b15abeffSDima DorfmanUse the
128b15abeffSDima Dorfman.Xr kvm 3
129b15abeffSDima Dorfmaninterface instead of the
130b15abeffSDima Dorfman.Xr sysctl 3
131b15abeffSDima Dorfmaninterface to extract the required information.
132b15abeffSDima DorfmanIf
133b15abeffSDima Dorfman.Nm
134b15abeffSDima Dorfmanis to operate on the running system,
135b15abeffSDima Dorfmanusing
136b15abeffSDima Dorfman.Xr kvm 3
137b15abeffSDima Dorfmanwill require read privileges to
138b15abeffSDima Dorfman.Pa /dev/kmem .
1394d2e8e5fSBosko Milekic.It Fl u Ar user
1404d2e8e5fSBosko MilekicDisplay information about IPC mechanisms owned by
1414d2e8e5fSBosko Milekic.Pa user .
1424d2e8e5fSBosko MilekicUser specification can be in the form of a numeric UID or
1434d2e8e5fSBosko Milekica login name.
14449fbc2acSDoug Rabson.El
14549fbc2acSDoug Rabson.Pp
14649fbc2acSDoug RabsonIf none of the
14749fbc2acSDoug Rabson.Fl M ,
14849fbc2acSDoug Rabson.Fl m ,
14949fbc2acSDoug Rabson.Fl Q ,
15049fbc2acSDoug Rabson.Fl q ,
15149fbc2acSDoug Rabson.Fl S ,
15249fbc2acSDoug Rabsonor
15349fbc2acSDoug Rabson.Fl s
15449fbc2acSDoug Rabsonoptions are specified, information about all active IPC facilities is
15549fbc2acSDoug Rabsonlisted.
15649fbc2acSDoug Rabson.Sh RESTRICTIONS
15749fbc2acSDoug RabsonSystem data structures may change while
15800bbaadcSPhilippe Charnier.Nm
15949fbc2acSDoug Rabsonis running; the output of
16000bbaadcSPhilippe Charnier.Nm
16149fbc2acSDoug Rabsonis not guaranteed to be consistent.
16249fbc2acSDoug Rabson.Sh BUGS
16349fbc2acSDoug RabsonThis manual page is woefully incomplete, because it does not
16449fbc2acSDoug Rabsonat all attempt to explain the information printed by
1658fe908efSRuslan Ermilov.Nm .
16649fbc2acSDoug Rabson.Sh FILES
1671063e126SJosef Karthauser.Bl -tag -width /boot/kernel/kernel -compact
16849fbc2acSDoug Rabson.It Pa /dev/kmem
16949fbc2acSDoug Rabsondefault kernel memory
1701063e126SJosef Karthauser.It Pa /boot/kernel/kernel
17149fbc2acSDoug Rabsondefault system name list
17249fbc2acSDoug Rabson.El
17349fbc2acSDoug Rabson.Sh SEE ALSO
17449fbc2acSDoug Rabson.Xr ipcrm 1
175306005e7SPhilippe Charnier.Sh AUTHORS
176306005e7SPhilippe Charnier.An Thorsten Lockert Aq tholo@sigmasoft.com
177