LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-08-2009, 03:54 AM   #1
kingston
Member
 
Registered: Mar 2008
Location: Bengaluru, India
Distribution: RHEL 5.5, Solaris 5.10
Posts: 215
Blog Entries: 1

Rep: Reputation: 21
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
 
Old 12-08-2009, 04:47 AM   #2
Web31337
Member
 
Registered: Sep 2009
Location: Russia
Distribution: Gentoo, LFS
Posts: 399
Blog Entries: 71

Rep: Reputation: 65
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.
 
Old 12-09-2009, 03:19 AM   #3
kingston
Member
 
Registered: Mar 2008
Location: Bengaluru, India
Distribution: RHEL 5.5, Solaris 5.10
Posts: 215

Original Poster
Blog Entries: 1

Rep: Reputation: 21
i killed all the processes first...then only i tried with ipcrm command
but still problem persists...
 
Old 12-09-2009, 02:42 PM   #4
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by kingston View Post
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 ?
 
Old 12-10-2009, 12:42 AM   #5
kingston
Member
 
Registered: Mar 2008
Location: Bengaluru, India
Distribution: RHEL 5.5, Solaris 5.10
Posts: 215

Original Poster
Blog Entries: 1

Rep: Reputation: 21
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.
 
Old 12-10-2009, 01:32 AM   #6
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by kingston View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does /dev/shm reduce memory available for non-shared memory segments? mightyscotchpine Linux - Server 1 09-22-2009 06:58 PM
Properly removing SATA hard drives(hot-swap) galapogos Linux - Hardware 3 08-26-2009 02:40 AM
Linux shared memory segment access problem and x86 Virtual Memory layout. regmee Linux - Kernel 1 08-23-2008 12:11 AM
Difference between resident memory,shared memory and virtual memory in system monitor mathimca05 Linux - Newbie 1 11-11-2007 04:05 AM
is shared memory expandable in memory size? Thinking Programming 4 08-16-2005 09:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration