Linux - NewbieThis 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!
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.
Let's say a server has a limit of 25MB RAM on each user. How can I check the amount of RAM my process uses? I assume I would use ps, but there are so many fields there. There is also a limit of 10% CPU Usage. How would I check that? I would assume it's the CPU% field in ps, but I just want to double check.
One thing to bear in mind is... Linux is "lazy." If there is no "pressure" being exerted on the memory subsystem at this particular moment, then Linux is not going to go out of its way to "clean house." If, and (only...) when actual pressure starts to develop, Linux will start snooping-around for things to get rid of or to "steal."
So, absent any sources of "pressure," the memory-allotment for any particular process might well appear to be much larger than such a process might be if actual pressure existed.