1835451 Members
2873 Online
110078 Solutions
New Discussion

Memory segments

 
SOLVED
Go to solution
Hugo Wilhelmus
Advisor

Memory segments

I do a ipcs -mbob and see (part):

m 11793 .. D-rw-rw-rw owner group 31 4290772992

This memory-segment is Deleted but there are still 31 process attached. It is not possible
to delete this segment without cousing any trouble to the system ? Can one see what 31 process are attached ? Do they actual use this segment ?
8 REPLIES 8
John Poff
Honored Contributor

Re: Memory segments

Hi,

Your memory segment is flagged for deletion [see the upper case D in the flags] but it won't go away until the 31 processes attached to it are done.

You'll probably need a tool like Glance or lsof to actually figure out what processes have attached to that memory segment.

JP
James A. Donovan
Honored Contributor

Re: Memory segments

Are these possibly httpd processes? Apache will leave a "dead" memory segment like this. Run ps -ef|grep httpd|wc -l. If it equals 31, then thats the source...
Remember, wherever you go, there you are...
Sundar_7
Honored Contributor

Re: Memory segments

Hi,

Use the attached shminfo.sh to find out the processes attached to the shared memory segment.

Once downloaded in to ur system, run the script which will extract a binary.

# /root/tools/shminfo -s 11793

-- Sundar
Learn What to do ,How to do and more importantly When to do ?
Hugo Wilhelmus
Advisor

Re: Memory segments

Hello Sundar,

Can't get your attachment ... !
Is it possible to put the source
directly into your message ?
T G Manikandan
Honored Contributor

Re: Memory segments

Hugo Wilhelmus
Advisor

Re: Memory segments

There's an access denied error at
ftp://hprc.external.hp.com/sysadmin/programs/shminfo/. Can i use my HP login ?
T G Manikandan
Honored Contributor

Re: Memory segments

check the attached zip
T G Manikandan
Honored Contributor
Solution

Re: Memory segments

ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/programs/shminfo/


Try now