- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ipcs -ma has many NATTACH zeros
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
06-13-2007 09:41 PM
06-13-2007 09:41 PM
ipcs -ma has many NATTACH zeros
i have a server which is heavily swapping..with hpux 11iv2...8gb RAM ..rx 4640..
#swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 16000 4849 11151 30% 0 - 1 /dev/vg00/lvol2
dev 16000 4837 11163 30% 0 - 1 /dev/vg00/lvol12
reserve - 20169 -20169
memory 8180 4308 3872 53%
total 40180 34163 6017 85% - 0 -
And also the o/p of ipcs -ma attached herewith.
Somewhere i had read that NATTACH -zeros should be removed which r result of many kill-9's..which is very much possible here b'coz before i joined here everyone used to kill aprocess by kill -9 only..However i have now advised them to use kill -15 now...
But hos do i release those shared memory segments now..??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2007 10:14 PM
06-13-2007 10:14 PM
Re: ipcs -ma has many NATTACH zeros
I don't see any date entries indicating they were old. Unless it only keeps the time of day? But what use would that be??
It would have been helpful to pipe that to:
ipcs -ma | sort -k6,6
I'm not sure if those no-entry for DTIME indicate that a kill 9 was done?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2007 10:21 PM
06-13-2007 10:21 PM
Re: ipcs -ma has many NATTACH zeros
Here's the o/p of the requireed command :->
ipcs -ma | sort -k6,6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2007 04:58 PM
06-14-2007 04:58 PM
Re: ipcs -ma has many NATTACH zeros
Your original .txt file was easier to fiddle with than this .doc. I then only looked at the NATTACH == 0.
It looks like you have a bunch of no-entry for DTIME, most likely indicating that a kill 9 was done. Or sloppy programming.
>>Unless it only keeps the time of day? But what use would that be??
It appears that ipcs only prints the time of day! I filed an enhancement request to include a date with the time, CR JAGag42853:
ipcs -ma, add option to report ATIME, etc as date
I've also attached a simple C source that will give the expanded dates for each segment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2007 08:00 PM
06-14-2007 08:00 PM
Re: ipcs -ma has many NATTACH zeros
I have attached herewith the required ouput with ur C program..
Regards,
Boomer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2007 08:52 PM
06-14-2007 08:52 PM
Re: ipcs -ma has many NATTACH zeros
(I expected the output to be obvious. :-)
0 0x412811f0 0 348 02-16|13:15 02-16|13:15 02-16|13:15
139 0x741cc1a2 0 6 03-26|17:06 03-26|17:06 02-16|13:30
140 0x741cc1a3 0 6 03-26|17:06 03-26|17:06 02-16|13:30
142 0x741cc1a5 0 6 03-26|17:06 03-26|17:06 02-16|13:30
32905 0x741cc1a0 0 28244 05-15|13:24 05-15|13:24 02-16|13:30
These were detached in Feb/Mar and May by root, leave alone.
164088 0x73099eef 0 41 02-23|16:09 NO-ENTRY 02-23|15:46
196855 0x73099eee 0 1 02-23|16:09 NO-ENTRY 02-23|15:46
196859 0x7309cd3a 0 196100 02-23|16:01 NO-ENTRY 02-23|15:46
229622 0x73098770 0 1850 02-23|16:03 NO-ENTRY 02-23|15:46
262394 0x7309cd39 0 4204 02-23|16:01 NO-ENTRY 02-23|15:46
327929 0x7309cd38 0 28 02-23|16:01 NO-ENTRY 02-23|15:46
These were created in Feb by fnsonls and were never detached. These old ones are likely to have been left due to kill 9.
You can then look at the other NO-ENTRY ones:
16580730 0x73b5cf89 0 4204 05-15|13:24 NO-ENTRY 05-15|12:49
This was left in May
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2007 10:28 PM
06-20-2007 10:28 PM
Re: ipcs -ma has many NATTACH zeros
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2007 05:17 PM
07-16-2007 05:17 PM
Re: ipcs -ma has many NATTACH zeros
printf(" %02d-%02d|%02d:%02d", p->tm_mon + 1,
(Adds 1 to p->tm_mon.)