1844882 Members
3122 Online
110233 Solutions
New Discussion

Re: Shared memory

 
Sonison James
Frequent Advisor

Shared memory

Hello,

I wish to find the shared physical and shared virtual memory for the system. ipcs -m seems to be reporting shared memory but I am unable to interpret the memory as physical shared memory or virtual shared memory. Is there any special interpretation of the MODE bits that will help me?
Any help will be highly appreciated.

Thanks in advance
Sonison James
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Shared memory

This doc might help:
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90689/B2355-90689_top.html&con=/hpux/onlinedocs/B2355-90689/00/01/147-con.html&toc=/hpux/onlinedocs/B2355-90689/00/01/147-toc.html&searchterms=ipcs&queryid=20030929-094311

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
James Murtagh
Honored Contributor

Re: Shared memory

Hi Sonison,

If you use the following options :

# ipcs -mob

you will see the segment size of the shared memory segments. I would just take the segment size to be the physical and virtual figure - all processes attaching to this segment will do so at the same virtual address, at least on pa-risc. Of course, not all physical pages may have been paged in but the above should suffice. Also, this will only show sys-v shared memory segments - you won't see memory mapped files, shared libraries or text sharing segments. You can ask HP for the shminfo utility for this, or the link to the public ftp site is freely available on the forum.

Cheers,

James.
Mark Grant
Honored Contributor

Re: Shared memory

I wasn't actually aware you could have virtual shared memory but the mode bits don't suggest that you can.
Never preceed any demonstration with anything more predictive than "watch this"
Sonison James
Frequent Advisor

Re: Shared memory

Hello,

Thanks for the info shared. I found this link http://groups.google.com/groups?q=pst_length&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=ZVv9a.15%244R1.14%40news.cpqcorp.net&rnum=2
I hope I can use the same logic as is used by Mike Stroyan (stroyan@hpstryn.fc.hp.com)

Thanks and regards
Sonison James