- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- shared memory
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2003 07:11 PM
10-15-2003 07:11 PM
shared memory
kmeminfo
shminfo
procsize
and glance
how can i fined all the processes who are attached to a single share memory segment ??
I want it to be sorted in this order(by shared memory id).
thnx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2003 07:24 PM
10-15-2003 07:24 PM
Re: shared memory
Sorting by id is a little trickier, as the first 3 lines are header info, and will mess up the sort.
Here's one way:
--
ipcs -am|awk '
(NR <= 3) {print}
(NR >3 ) {print >> "/tmp/ipcs.out"}
END { system ("sort -n -k 3,3 /tmp/ipcs.out && rm /tmp/ipcs.out") }
'
--
see man ipcs
--
Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2003 07:29 PM
10-15-2003 07:29 PM
Re: shared memory
ipcs -ma show only the shared memory regions their id's and the pid of the creator.
i want to see in a giving time which processes are mapped to this regions
thanx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2003 07:46 PM
10-15-2003 07:46 PM
Re: shared memory
ipcs -ma will give you the number of attached processes under the NATTCH col, but I know of no way to list each process.
You could write a C program to do this, using the shmctl() call.
With any luck, someone will have already done this.
Try the porting centre at http://hpux.connect.org.uk/
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2003 08:48 PM
10-15-2003 08:48 PM
Re: shared memory
if some one know where i can find such a utility it will be great.
thanx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2003 08:54 PM
10-15-2003 08:54 PM
Re: shared memory
#ipcs -ma
shows all process attached to shared memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2003 08:57 PM
10-15-2003 08:57 PM
Re: shared memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2003 09:25 PM
10-15-2003 09:25 PM
Re: shared memory
Also you can use shminfo
get it from
ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/programs/shminfo/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2003 10:47 PM
10-15-2003 10:47 PM