LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   shared memory not removing properly. (https://www.linuxquestions.org/questions/linux-newbie-8/shared-memory-not-removing-properly-774178/)

kingston 12-08-2009 03:54 AM

shared memory not removing properly.
 
Hi all,
I am using some geophysics applications and the data volumes are too high. sometimes my system used hang and i used to kill the X session. while i respawn the application, and while loading the data it used to say that the project was still in use. In IRIX if i fire the "ipcs -a" command it will list the shared memory objects. I can remove by "ipcrm -m shmemid".

But in RHEL 5, these commands are working but its not getting removed from memory. If i fire the "ipcs -a" command, again it shows the same shared memory id and size of the project.

How to flush these shared memory things from system?. my system has 64 GB RAM, 102 GB swap space and Intel Xeon X5450 @ 3.00 GHz

KingstoN

Web31337 12-08-2009 04:47 AM

probably it's because you didn't killed a process that was actually using that data. so while it's still there data may not be available.

kingston 12-09-2009 03:19 AM

i killed all the processes first...then only i tried with ipcrm command
but still problem persists...

Valery Reznic 12-09-2009 02:42 PM

Quote:

Originally Posted by kingston (Post 3785166)
i killed all the processes first...then only i tried with ipcrm command
but still problem persists...

Shared memory not removed while there is a t least one process taht attached to each.

Are you sure that all processes that uses shared memory killed ?

Did ipcrm give any error message ?

kingston 12-10-2009 12:42 AM

sure...i killed all the processes. ipcrm too didnt give any error message. the moment when i give "ipcrm -m 68686868". immediately i got the prompt. But if i check with "ipcs -a" command, the same process with the id is still there.

Valery Reznic 12-10-2009 01:32 AM

Quote:

Originally Posted by kingston (Post 3786244)
sure...i killed all the processes. ipcrm too didnt give any error message. the moment when i give "ipcrm -m 68686868". immediately i got the prompt. But if i check with "ipcs -a" command, the same process with the id is still there.

Try to run ipcrm under strace and post output


All times are GMT -5. The time now is 08:19 PM.