Operating System - HP-UX
1836599 Members
2249 Online
110102 Solutions
New Discussion

IPC resources for non-existent process still reported by ipcs

 
Fedon Kadifeli
Super Advisor

IPC resources for non-existent process still reported by ipcs

When I run an "ipcs -a" command I see many IPC (memory, queue, semaphore) resources still reported. However I know that there are no processes using these resources and for example for shared memories I see NATTCH=0.

Is this a bug?

3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: IPC resources for non-existent process still reported by ipcs

Its probably not a bug.

At least not an OS bug you are hinting toward.

It could be the proceses where not shut down cleanly, leaving the shared memory alloocated.

It could be poor application programming that has created the dreaded memory leak. !!!

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
Fedon Kadifeli
Super Advisor

Re: IPC resources for non-existent process still reported by ipcs

I knew that when a process exits, dies or killed, all the resources it created are deleted provided these are not used by other processes.

How am I supposed to do this "garbage collection?"
Fedon Kadifeli
Super Advisor

Re: IPC resources for non-existent process still reported by ipcs

I removed the resources manually using "ipcrm". After all those years I have forgotten this command! :)