09-07-2008
ipcs Help
hi,
I need help with ipcs command on Solaris. What does it do and what are options b,m,o,q does. Here is the sample output of ipcs -oq and ipcs -bm
IPC status from <running system> as of Sun Sep 7 23:07:59 GMT 2008
T ID KEY MODE OWNER GROUP CBYTES QNUM
Message Queues:
q 8197 0x4000 -Rrw-rw-rw- hlrhlp other 0 0
q 8198 0x1501 --rw-rw-rw- hlrhlp other 548 2
q 8199 0x1504 --rw-rw-rw- hlrhlp other 201 67
IPC status from <running system> as of Sun Sep 7 23:09:12 GMT 2008
T ID KEY MODE OWNER GROUP SEGSZ
Shared Memory:
m 1 0x5002865c --rw-r--r-- root root 4
m 2 0x851117 --rw-rw---- root archys 766344
m 3 0 --rw-rw---- root archys 10240
m 4 0 --rw-rw---- root archys 199501604
m 5 0 --rw-rw---- root archys 6097184
m 6 0 --rw-rw---- root archys 6097184
Can somebody plz explain it to me. Thanks
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Does anyone know how to set the variables with the ipcs command?
I need to set the following variables:
Shared memory segments
message queues
semaphore arrays
all of these (1 Reply)
Discussion started by: Deuce
1 Replies
2. Programming
I am using SUN 0S 5.7.
My application has a dozen programs running in this machine, each instance of a program having 2 POSIX message queues for itself. Totally around 90 POSIX message queues.
Another small application uses a SYSTEM V shared memory and a message queue.
We face a problem... (1 Reply)
Discussion started by: Deepa
1 Replies
3. Programming
Hi,
With reference to the thread below:
https://www.unix.com/showthread.php?s=&threadid=13247
I have the same program on Cygwin ( unfortuantely win ;( )
My program runs ( offcourse with undesired output)
The semget does not give any error, tho I have trapped in case if there is one.... (0 Replies)
Discussion started by: linuxpenguin
0 Replies
4. AIX
hello
i'm running on aix 5300-08-02-0822 hacmp 4
when i run ipcs command there is nio output.
some one got this problem?
best regards
ariec (1 Reply)
Discussion started by: ariec
1 Replies
5. AIX
I am trying to run myApplication which allocates Some amount of shared memory at startup.
It failed because not available shared memory are available.
But when i ran,
ipcs -m
it is displaying empty(i.e no shared memory allocated in system.)
Why "ipcs -m" is displaying empty ?
... (5 Replies)
Discussion started by: ashokd001
5 Replies
6. UNIX for Advanced & Expert Users
Hi,
I read the ipcs man page and am still very confused.
Basically, I just want to know whether the output from the ipcs command below means these are the current "TOTAL" memory usage in bytes on the server? Is this correct?
Thanks in advance.
ipcs command output below:
# ipcs... (2 Replies)
Discussion started by: newbie_01
2 Replies
7. Solaris
How to clear IPCS queue count in server? (2 Replies)
Discussion started by: Arasu123
2 Replies
8. Solaris
Hello All,
We have a working script which identifies and kills ipcs resources which havent been correctly killed during normal shutdowns.
It is working fine and dandy however there are some issues now.
Environment:
SunOS 5.10 Generic_148888-03 sun4u sparc SUNW,SPARC-Enterprise
... (4 Replies)
Discussion started by: icalderus
4 Replies
9. UNIX for Advanced & Expert Users
The ipcs -q command output includes a MODE column which tells user if the process is waiting on read or write on the queue. I used this in scripts on many systems (Solaris, AIX, SCO)
a snippet from man
MODE (all)
The facility access modes and flags: The mode consists of
11... (2 Replies)
Discussion started by: migurus
2 Replies
10. UNIX for Advanced & Expert Users
Hi,
we have multiple database instances running on solaris server like db1, db2 and db3. Below shown ipcs -pmb shared memory segment output. Using cpid value I want to relate to the database instances db1, db2 and db3. Please let me know how to do this?
$ ipcs -pmb
IPC status from <running... (9 Replies)
Discussion started by: baladelaware73
9 Replies
IPCS(1) Linux Programmer's Manual IPCS(1)
NAME
ipcs - provide information on ipc facilities
SYNOPSIS
ipcs [-asmq] [-tclup]
ipcs [-smq] -i id
ipcs -h
DESCRIPTION
ipcs provides information on the ipc facilities for which the calling process has read access.
The -i option allows a specific resource id to be specified. Only information on this id will be printed.
Resources may be specified as follows:
-m shared memory segments
-q message queues
-s semaphore arrays
-a all (this is the default)
The output format may be specified as follows:
-t time
-p pid
-c creator
-l limits
-u summary
SEE ALSO
ipcrm(1), ipcmk(1)
CONFORMING TO
The Linux ipcs utility is not fully compatible to the POSIX ipcs utility. The Linux version does not support the -b and -o options, but
does support the -l and -u options not defined by POSIX. The portable application shall not use the -a, -b, -o, -l, and -u options.
AUTHOR
krishna balasubramanian (balasub@cis.ohio-state.edu)
AVAILABILITY
The ipcs command is part of the util-linux-ng package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.
Linux 0.99 9 October 1993 IPCS(1)