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!
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.
When running the top command I'm able to see the {%} of Memory being as well as others used by the system. At the very top it lists out how much memory I have total, being used, how much is free and finally the buffers.
I want to figure out why the {%} of memeory being used does not equal the KB it's displaying.
Is there a command I can run that will display what the Process Memory Usage is?
I tried the pmap -d PID and it returned a usage list.
There are lots of threads here (and elsewhere) about this. Linux uses shared libraries - they are only loaded (in memory) once, but generally counted for every user (process).
For the pmap, you need to supply the numeric pid of interest, not the literal string PID.
Ok -- my bad -- I should have check the Similiar threads -- I found some useful information.
SO after chatting with the user what I really want to see is the %MEM in a different form other then the percentage.
I would like to see a number in KB, MG etc... Is that possible?
SO - the RES field is the actual (KB, MB etc) getting used by that particular PID. The %MEM just converts what the RES is?
How can I determine how much RAM is being used by one PID?
FOR EXAMPLE: “255592k total” is total memory in the system; “167568K used” is the part of the RAM that currently contains information; “88024k free” is the part of RAM that contains no information; “25068K buffers and 85724k cached” is the buffered and cached data for IO.
used - (buffers + cached) = X but that's for all programs. How can I determine it for one...
Nope. Memory usage is a can of worms. Go get ps_mem.py and run that - if you want some good background look at the (python) code; even just the comments.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.