07-25-2008
Use the "ipcs" command, which lists all IPC facilities on your system: semaphores, shared memory segments, etc.
I'd suggest reading the man page of "ipcs", which is pretty instructive and contains several useful examples of how use the vast array of options ipcs has.
I hope this helps.
bakunin
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
One of my Solaris 8 machines hd was about to die. So I used g4u to create an image of the 9gb drive and I put it in a 36gb drive. That solved my dieing hd problem.
But....
How do I get my machine to see the unused 27gb of space?
Any help would be greatly appreciated. (1 Reply)
Discussion started by: Spyzic
1 Replies
2. AIX
Hi,
How do I query for unused partition in AIX 4.3 with DAS and SAA storage?
I know most unix administrator don't put all the capacity on the system at once.
thanks,
vene (1 Reply)
Discussion started by: venerayan
1 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
Can you please let me know how to delete any files that have not been accessed in the past 28 days in a directory.
Thanks,
Arun (3 Replies)
Discussion started by: arunkumar_mca
3 Replies
4. HP-UX
Hello,
I have a system with HP-UX 11.23 installed on it. There are ~36GB of unused space on the HDD. I did a very basic installation, and it created the usual volume group /dev/vg00. When I look at the output of ioscan -funC disk, I see this (and more, but irrelevant to this post):
disk ... (1 Reply)
Discussion started by: goon12
1 Replies
5. Solaris
i Have alloted 20G in my vmware for solaris 10, upon installation, and some distribution of disk space to /,/opt,swap i just use 19G.
Can i still use the 1G? How? how to see the 1G? that i did not use? how can i use it?
appreciate your responce (17 Replies)
Discussion started by: kenshinhimura
17 Replies
6. AIX
Hi,
In our AIX 5.2 server , we have one unused ethernet adapter which doesn't have cable connection . For this interface , we are getting alerts in errpt .
Could you suggesthow to stop this alert ? And sametime i would like to keep this device in ODM .
Is there... (1 Reply)
Discussion started by: sekarsamy
1 Replies
7. AIX
We have a system and we have modified the /etc/ind.conf and the
/etc/services and the /etc/rc.tcpip file to turn off specific applications.
I need to know what is the correct procedure for locking down unused
ports that still appear to be in a listen mode even... (1 Reply)
Discussion started by: admaix
1 Replies
8. Programming
Hello,
When creating shared memory in C, should be remove shared memory with shmctl function when don't need it. If it didn't remove, occupied shared memory stay and remain.
If we create shared memory repeatedly without removing unusable shared memory, /dev/shm will full.
Does Unix or... (1 Reply)
Discussion started by: pronetin
1 Replies
9. UNIX for Advanced & Expert Users
Hi guys...
The first active code line in AudioScope.sh is set -u .
This causes a complete exit if a variable is used/found but has not been allocated at the start of the program.
However, apart from writing code to do the task, is there a switch to to check which variables have been... (17 Replies)
Discussion started by: wisecracker
17 Replies
LEARN ABOUT OPENDARWIN
ipcs
IPCS(1) User Commands IPCS(1)
NAME
ipcs - show information on IPC facilities
SYNOPSIS
ipcs [options]
DESCRIPTION
ipcs shows information on the inter-process communication facilities for which the calling process has read access. By default it shows
information about all three resources: shared memory segments, message queues, and semaphore arrays.
OPTIONS
-i, --id id
Show full details on just the one resource element identified by id. This option needs to be combined with one of the three
resource options: -m, -q or -s.
-h, --help
Display help text and exit.
-V, --version
Display version information and exit.
Resource options
-m, --shmems
Write information about active shared memory segments.
-q, --queues
Write information about active message queues.
-s, --semaphores
Write information about active semaphore sets.
-a, --all
Write information about all three resources (default).
Output formats
Of these options only one takes effect: the last one specified.
-c, --creator
Show creator and owner.
-l, --limits
Show resource limits.
-p, --pid
Show PIDs of creator and last operator.
-t, --time
Write time information. The time of the last control operation that changed the access permissions for all facilities, the time of
the last msgsnd(2) and msgrcv(2) operations on message queues, the time of the last shmat(2) and shmdt(2) operations on shared mem-
ory, and the time of the last semop(2) operation on semaphores.
-u, --summary
Show status summary.
Representation
These affect only the -l (--limits) option.
-b, --bytes
Print sizes in bytes.
--human
Print sizes in human-readable format.
SEE ALSO
ipcmk(1), ipcrm(1), msgrcv(2), msgsnd(2), semget(2), semop(2), shmat(2), shmdt(2), shmget(2)
CONFORMING TO
The Linux ipcs utility is not fully compatible to the POSIX ipcs utility. The Linux version does not support the POSIX -a, -b and -o
options, but does support the -l and -u options not defined by POSIX. A 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 package and is available from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util-
linux/>.
util-linux July 2014 IPCS(1)