LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-01-2007, 12:21 PM   #1
haru_preet
LQ Newbie
 
Registered: Apr 2007
Posts: 1

Rep: Reputation: 0
Question Unable to free/release memory.


Hello All
im working on linux enterprise, the prolem is when i use ipcs to see the no of processes, i find root holding more than 10-12 ids. Is there any thing tweeking cron possible so i can push/enforce tht root releases memory is any thing else can be done.

plz suggest
 
Old 04-02-2007, 01:24 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
*DANGER* *DANGER* *DANGER*
ipcrm can be used to remove ipcs structures
*DANGER* *DANGER* *DANGER*

However you can do a lot of damage removing these things if they are in active use. You need to be SURE that they are not before you remove them.

If programs are stopped properly then things are NOT left in ipcs tables. It is only things dying or being killed with signal 9 (kill -9 or kill -SIGKILL) that leaves this kind of stuff there. Unless this is what's happening then what you have in ipcs IS in active use and should not be deleted.

If you (or one of your users or scripts) isn't doing a lot of kill -9 it is MUCH better to troubleshoot why the application is dying and leaving garbage behind than to work on cleaning it up.

I'd suggest you do a fresh reboot and check to see what is in ipcs after you've started all your applications. That way you'll know what is "usually" there and can use that as a basis for comparision later if you suspect there is too much there.

By the way the biggest memory hog is is of course shared memory segments. Unless you're running a database (Oracle, MySQL) these typically aren't very large. If you are running a database you want them to be fairly large (at least for Oracle) but need to control them from the DB startup rather than the OS. (e.g. for Oracle reduce the size of the SGA if you feel it is eating up all your memory).
 
  


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 free( ) immediatly free the memory? Rayven Programming 24 11-06-2006 02:24 AM
how to release the virtual memory of pthread? jorain Linux - Server 7 10-06-2006 01:35 AM
Memory release Kvetch Linux - General 1 08-16-2006 05:02 PM
Memory release nicola54 Linux - General 7 06-17-2005 09:04 PM
How do you release memory? Paul12 Linux - General 1 08-22-2001 04:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:57 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