1753793 Members
7212 Online
108799 Solutions
New Discussion юеВ

Re: shared memory usgae,

 
SOLVED
Go to solution
aruns_s
Frequent Advisor

shared memory usgae,

Hi,
would u please help me in monitoring shared memory usgae in hp-ux, I believe ipcs is the comman, but no idea how to interpret the o/p.

many thanks
4 REPLIES 4
Dennis Handly
Acclaimed Contributor
Solution

Re: shared memory usgae,

Try: ipcs -ma
See ipcs(1) for what the columns mean.
The important things are the size(SEGSZ), owner and ID.
Senthil Prabu.S_1
Trusted Contributor

Re: shared memory usgae,

Hi,
ipcs-m should help you.

This gives you info about memory id, along with it key, owner and group
For more info, read man pages.


HTH,
Prabu.S
One man's "magic" is another man's engineering. "Supernatural" is a null word.
Arunvijai_4
Honored Contributor

Re: shared memory usgae,

Hi Arun,

Check this out : ftp://hprc.external.hp.com/memory.htm#shared_memory

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Reshma Malusare
Trusted Contributor

Re: shared memory usgae,

Hi arun,
ipcs --> displays certain information about active interprocess communication facilities. With no options, ipcs displays information in short format for the message queues, shared memory segments, and semaphores that are currently active in the system.

Now here you want to monitor shared memory so use -m option.
-m --> Display information about active shared memory segments
-a -->Display all columns

Output --->
1] T --> Facility type:
m=Shared memory segment
q=Message queue
s=Semaphore
2] ID --> The identifier for the facility entry.
3]KEY --> The key used as an argument to create the facility entry.
4]MODE -->The facility access modes and flags.
5]OWNER -->The login name of the owner of the facility entry.
6]GROUP -->The group name of the group of the owner of the facility entry.
7]CREATOR -->The login name of the creator of the facility entry.
8]CGROUP -->The group name of the group of the creator of the facility entry.
9]CBYTES -->The number of bytes in messages currently outstanding on the associated message queue.
10]QNUM -->The number of messages currently outstanding on the associated message queue.
11]QBYTES -->The maximum number of bytes allowed in messages outstanding on the associated message queue.
12]LSPID -->The process ID of the last process to send a message to the associated message queue.
13]LRPID -->The process ID of the last process to receive a message from the associated message queue.
14]STIME -->The time the last msgsnd() message was sent to the associated message queue.
15]RTIME -->The time the last msgrcv() message was received from the associated message queue.
16]CTIME -->The time when the associated facility entry was created or changed.
17]NATTCH -->The number of processes attached to the associated shared memory segment.
18]SEGSZ -->The size of the associated shared memory segment.
19]CPID -->The process ID of the creating process of the shared memory segment.
20]LPID -->The process ID of the last process to attach or detach the shared memory segment.
21]ATIME -->The time the last shmat() attach was completed to the associated shared memory segment.
22]DTIME --> The time the last shmdt() detach was completed on the associated shared memory segment.
23]NSEMS -->The number of semaphores in the set associated with the semaphore entry.
24]OTIME -->The time the last semop() semaphore operation was completed on the set associated with the semaphore entry.

Thansk & Regards
Reshma