The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Shared memory in shared library DreamWarrior High Level Programming 12 05-30-2007 01:33 PM
memory sharing - not shared memory - elzalem High Level Programming 9 05-02-2007 04:45 AM
Shared Memory segments catwomen HP-UX 2 02-28-2006 06:07 AM
Shared memory shortage but lots of unused memory cjcamaro UNIX for Advanced & Expert Users 1 10-13-2004 02:10 PM
Shared Memory Jayathirtha UNIX for Advanced & Expert Users 3 03-03-2003 08:30 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-17-2008
Registered User
 

Join Date: Jun 2005
Location: Middletown, PA
Posts: 57
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
HP-UX Trying to Understand Shared Memory Segments

I am fairly new to HP-UX and trying to get a better understanding of the operating system. While poking around a bit I find myself questioning whether I should be concerned about Shared Memory segments with missing CPID and LPID? For example:

ipcs -mp
IPC status from /dev/kmem as of Mon Mar 17 12:36:43 2008
T ID KEY MODE OWNER GROUP CPID LPID
Shared Memory:
m 0 0x411c0846 --rw-rw-rw- root root 720 720
m 1 0x4e0c0002 --rw-rw-rw- root root 720 720
m 2 0x4120127e --rw-rw-rw- root root 720 732
m 48643 0x5e10000b --rw------- root root 2495 2495

The 720 PID is not found any longer. Is this necessarily a problem? The main reason I ask is that we have another server, much busier than this machine and while trying to identify how much shared memory is being used by various processes I have encountered other segments with missing CPID and LPID. Thanks in advance.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-17-2008
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,252
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Not necessarily a problem, but probably a problem. A shared memory segment will not go away until explicitly removed. Most likely the process died without cleaning up. This is often caused by newbie sysadmins who jump into "kill -9". "ipcs -mb" will tell you how much memory is being consumed. "ipcrm" can get rid of it.
Reply With Quote
  #3 (permalink)  
Old 03-17-2008
Registered User
 

Join Date: Jun 2005
Location: Middletown, PA
Posts: 57
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Thank you Sir

We have a few "kill -9" sysadmins. This is something I will continue keeping my eye on. Thanks for the info.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes


The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
421 service not available, remote server has closed connection ^m automate ftp autosys awk trim bash eval bash for loop boot: cannot open kernel/sparcv9/unix command copy/move folder in unix curses.h cut command in unix daemon process find grep find mtime find null character in a unix file from ip can we get machine name +unix glance unix grep multiple lines grep or grep recursive inaddr_any inappropriate ioctl for device lynx javascript mailx attachment mget mtime perl array length ping port remove first character from string in k shell replace space by comma , perl script scp recursive segmentation fault(coredump) sftp script snoop unix stale nfs file handle syn_sent tar exclude tar extract to folder test: argument expected unix unix .profile unix forum unix forums unix internals unix interview questions unix mtime unix simulator unix.com vi substitute while loop within while loop shell script


All times are GMT -7. The time now is 12:34 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101