Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
*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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.