1753774 Members
6508 Online
108799 Solutions
New Discussion юеВ

ipcrm

 
SOLVED
Go to solution
Luigi Manto
Occasional Contributor

ipcrm

Hi everyone! I would just like to ask what are the guidelines that one should follow when executing ipcrm? How would you know if it safe to remove a certain memory segment or other information displayed with ipcs?

Thanks in advance!
3 REPLIES 3
Alexander M. Ermes
Honored Contributor
Solution

Re: ipcrm

Hi there.
You have to identify the memory segment absolutely sure.
If you refer to databases segements, you should start the databases with a unique user for easier identification.
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Varghese Mathew
Trusted Contributor

Re: ipcrm

Hi,

Just adding to the previous answer..

Verify the segemnts' usage, status etc by issuing:
#ipcs -mab
Sometimes (rarely) what happens is, the mode for a process shows the segemtn is detached and actually it is not, HP says it is fixed in their next version 11i.
To release some part of share memory segement you can do the same in the database level as well.

Like in Informix you can release some portion of caught memory by issuing
#onmode -f

Before issuing the command ipcrm you need to be very careful about the significance of the process etc..

Cheers !!!
Mathew

Cheers !!!
Bill Hassell
Honored Contributor

Re: ipcrm

In general, you should be able to remove any segment where NATTCH=0 and KEY=0x000000. The rest will require some handwork to see if they can be safely removed.


Bill Hassell, sysadmin