1745971 Members
4428 Online
108724 Solutions
New Discussion юеВ

Regarding Message Queue

 
SOLVED
Go to solution
Kavita Poonia
Regular Advisor

Regarding Message Queue

Hello Techies,

I need to know the present value of Message Queue on a HP-UX server.

Please let me know how to see that ?

Thanks & regards,
Kavita
5 REPLIES 5
Solution

Re: Regarding Message Queue

Do you mean how to see what message queues are on the current system?

ipcs -q

will tell you that

or are you interested in the kernel parameters associated with message queues and their current values? (like msgmap, msgmax, msgmnb, msgmni, msgseg, msgssz, msgtql)? For these you can use either kmtune (11iv1) or kctune (11iv2/11iv3) to determine their current value, depedning on what version of the OS you are on.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Kavita Poonia
Regular Advisor

Re: Regarding Message Queue

Hello Duncan,

Thanks a lot for your reply.

No I want to see what is the present value of message queue on a server. As we have received an alert that IPC Message Queue is 10% of value of kernel parameter msgtql so I want to verify the current value of Message Queue.

Thanks & regards,
Kavita
OldSchool
Honored Contributor

Re: Regarding Message Queue

"verify the current value of Message Queue."

then you'll have to define what you mean by the above, as it isn't clear.

you can either see what's on the queues currently w/ the ipc command (noted above), or you can check the various kernel parms (also noted above).

the message you got indicates that the queue, at that time, had reached 10% of the total limit set in set by msgtql.

not sure what else you might be looking for.
Dennis Handly
Acclaimed Contributor

Re: Regarding Message Queue

For 11.23, you can use kcusage(1m).
Sajjad Sahir
Honored Contributor

Re: Regarding Message Queue

Hi Kavitha

u can use ipcs for it and please see Message queues are implemented as linked lists of data stored in shared memory. The message queue itself contains a series of data structures, one for each message, each of which identifies the address, type, and size of the message plus a pointer to the next message in the queue.
IPC messages require the following memory space allocations:
Space in the kernel area for message identifiers.
Shared memory space for message queues.
Shared memory space for message headers

thanks and regards

Sajjad Sahir