xref: /freebsd/usr.bin/ipcs/ipcs.1 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
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.\"
30f0085ed6SRuslan Ermilov.Dd March 24, 2004
3149fbc2acSDoug Rabson.Dt "IPCS" 1
32ed403116SRuslan Ermilov.Os
3349fbc2acSDoug Rabson.Sh NAME
3449fbc2acSDoug Rabson.Nm ipcs
3549fbc2acSDoug Rabson.Nd report System V interprocess communication facilities status
3649fbc2acSDoug Rabson.Sh SYNOPSIS
3700bbaadcSPhilippe Charnier.Nm
38b15abeffSDima Dorfman.Op Fl abcmopqstMQSTy
39aae483c5STim J. Robbins.Op Fl C Ar core
40aae483c5STim J. Robbins.Op Fl N Ar system
41f18a58b5SRuslan Ermilov.Op Fl u Ar user
4249fbc2acSDoug Rabson.Sh DESCRIPTION
4349fbc2acSDoug RabsonThe
4400bbaadcSPhilippe Charnier.Nm
45e8937ba0SPhilippe Charnierutility provides information on System V interprocess communication
4649fbc2acSDoug Rabson(IPC) facilities on the system.
4749fbc2acSDoug Rabson.Pp
4849fbc2acSDoug RabsonThe options are as follows:
4949fbc2acSDoug Rabson.Bl -tag -width Ds
5049fbc2acSDoug Rabson.It Fl a
5149fbc2acSDoug RabsonShow the maximum amount of information possible when
5249fbc2acSDoug Rabsondisplaying active semaphores, message queues,
5349fbc2acSDoug Rabsonand shared memory segments.
5449fbc2acSDoug Rabson(This is shorthand for specifying the
5549fbc2acSDoug Rabson.Fl b ,
5649fbc2acSDoug Rabson.Fl c ,
5749fbc2acSDoug Rabson.Fl o ,
5849fbc2acSDoug Rabson.Fl p ,
5949fbc2acSDoug Rabsonand
6049fbc2acSDoug Rabson.Fl t
6149fbc2acSDoug Rabsonoptions.)
6249fbc2acSDoug Rabson.It Fl b
6349fbc2acSDoug RabsonShow the maximum allowed sizes for active semaphores, message queues,
646a3e8b0aSRuslan Ermilovand shared memory segments.
656a3e8b0aSRuslan ErmilovThe
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,
776a3e8b0aSRuslan Ermilovand shared memory segments.
786a3e8b0aSRuslan ErmilovThe
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,
846a3e8b0aSRuslan Ermilovand shared memory segments.
856a3e8b0aSRuslan ErmilovThe
8649fbc2acSDoug Rabson.Dq process ID information
8749fbc2acSDoug Rabsonis the last process to send a message to or receive a message from
8849fbc2acSDoug Rabsona message queue,
8949fbc2acSDoug Rabsonthe process that created a semaphore, or the last process to attach
9049fbc2acSDoug Rabsonor detach a shared memory segment.
9149fbc2acSDoug Rabson.It Fl q
9249fbc2acSDoug RabsonDisplay information about active message queues.
9349fbc2acSDoug Rabson.It Fl s
9449fbc2acSDoug RabsonDisplay information about active semaphores.
9549fbc2acSDoug Rabson.It Fl t
9649fbc2acSDoug RabsonShow access times for active semaphores, message queues,
976a3e8b0aSRuslan Ermilovand shared memory segments.
986a3e8b0aSRuslan ErmilovThe access times is the time
9949fbc2acSDoug Rabsonof the last control operation on an IPC object,
10049fbc2acSDoug Rabsonthe last send or receive of a message,
10149fbc2acSDoug Rabsonthe last attach or detach of a shared memory segment,
10249fbc2acSDoug Rabsonor the last operation on a semaphore.
103aae483c5STim J. Robbins.It Fl C Ar core
104aae483c5STim J. RobbinsExtract values associated with the name list from the specified
105aae483c5STim J. Robbinscore instead of the default
106fa7f4291SRuslan Ermilov.Pa /dev/kmem .
107b15abeffSDima DorfmanImplies
108b15abeffSDima Dorfman.Fl y .
10949fbc2acSDoug Rabson.It Fl M
11049fbc2acSDoug RabsonDisplay system information about shared memory.
111aae483c5STim J. Robbins.It Fl N Ar system
112aae483c5STim J. RobbinsExtract the name list from the specified system instead of the
113aae483c5STim J. Robbinsdefault
114fa7f4291SRuslan Ermilov.Pa /boot/kernel/kernel .
115b15abeffSDima DorfmanImplies
116b15abeffSDima Dorfman.Fl y .
11749fbc2acSDoug Rabson.It Fl Q
11849fbc2acSDoug RabsonDisplay system information about messages queues.
11949fbc2acSDoug Rabson.It Fl S
12049fbc2acSDoug RabsonDisplay system information about semaphores.
12149fbc2acSDoug Rabson.It Fl T
12249fbc2acSDoug RabsonDisplay system information about shared memory, message queues
123d301a38dSEivind Eklundand semaphores.
124b15abeffSDima Dorfman.It Fl y
125b15abeffSDima DorfmanUse the
126b15abeffSDima Dorfman.Xr kvm 3
127b15abeffSDima Dorfmaninterface instead of the
128b15abeffSDima Dorfman.Xr sysctl 3
129b15abeffSDima Dorfmaninterface to extract the required information.
130b15abeffSDima DorfmanIf
131b15abeffSDima Dorfman.Nm
132b15abeffSDima Dorfmanis to operate on the running system,
133b15abeffSDima Dorfmanusing
134b15abeffSDima Dorfman.Xr kvm 3
135b15abeffSDima Dorfmanwill require read privileges to
136b15abeffSDima Dorfman.Pa /dev/kmem .
1374d2e8e5fSBosko Milekic.It Fl u Ar user
1384d2e8e5fSBosko MilekicDisplay information about IPC mechanisms owned by
1394d2e8e5fSBosko Milekic.Pa user .
1404d2e8e5fSBosko MilekicUser specification can be in the form of a numeric UID or
1414d2e8e5fSBosko Milekica login name.
14249fbc2acSDoug Rabson.El
14349fbc2acSDoug Rabson.Pp
14449fbc2acSDoug RabsonIf none of the
14549fbc2acSDoug Rabson.Fl M ,
14649fbc2acSDoug Rabson.Fl m ,
14749fbc2acSDoug Rabson.Fl Q ,
14849fbc2acSDoug Rabson.Fl q ,
14949fbc2acSDoug Rabson.Fl S ,
15049fbc2acSDoug Rabsonor
15149fbc2acSDoug Rabson.Fl s
15249fbc2acSDoug Rabsonoptions are specified, information about all active IPC facilities is
15349fbc2acSDoug Rabsonlisted.
15449fbc2acSDoug Rabson.Sh RESTRICTIONS
15549fbc2acSDoug RabsonSystem data structures may change while
15600bbaadcSPhilippe Charnier.Nm
15749fbc2acSDoug Rabsonis running; the output of
15800bbaadcSPhilippe Charnier.Nm
15949fbc2acSDoug Rabsonis not guaranteed to be consistent.
16049fbc2acSDoug Rabson.Sh FILES
1611063e126SJosef Karthauser.Bl -tag -width /boot/kernel/kernel -compact
16249fbc2acSDoug Rabson.It Pa /dev/kmem
16349fbc2acSDoug Rabsondefault kernel memory
1641063e126SJosef Karthauser.It Pa /boot/kernel/kernel
16549fbc2acSDoug Rabsondefault system name list
16649fbc2acSDoug Rabson.El
16749fbc2acSDoug Rabson.Sh SEE ALSO
16849fbc2acSDoug Rabson.Xr ipcrm 1
169306005e7SPhilippe Charnier.Sh AUTHORS
170*2b7af31cSBaptiste Daroussin.An Thorsten Lockert Aq Mt tholo@sigmasoft.com
1716c7216dfSRuslan Ermilov.Sh BUGS
1726c7216dfSRuslan ErmilovThis manual page is woefully incomplete, because it does not
1736c7216dfSRuslan Ermilovat all attempt to explain the information printed by
1746c7216dfSRuslan Ermilov.Nm .
175