Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
My question is ps -aux shows 13.8272 while used shows 15.58 GB
So any idea how I can identify 15.58-13.82=1.76 GB utilized by which part of OS.
In case of solaris we have below command to check the Memory Distribution. Is there any command in linux which can show me percentage of Memory Distribution.
There is also cat /proc/meminfo, which is a notion fairly unique to Linux.
The "pseudo-files" in /proc and /sys are in fact not physical files at all.
Memory allocation in a running system is always dynamic (constantly changing), and also, always lazy. The system will happily allocate "more than it needs," and "lazily, never get around to cleaning anything up," unless and until actual memory-pressure manifests itself. The system loves to have 100% of the available physical memory resource in use at one time, and it's also lazy about virtual-memory allocations as well. It doesn't care about memory that you've asked for as long as that memory is all-zeroes or untouched.
As they say in Perl circles, "laziness is a virtue." The system is carefully designed to be this way.
Last edited by sundialsvcs; 04-27-2012 at 09:54 AM.
Also, you're totaling up the RSS of processes. This doesn't account for the kernel, loaded modules, and a lot of other areas that are non-process oriented.
Also, I'm not sure how the memory accounting is done for shared pages.
As sundialsvcs pointed out, memory accounting is always what I would call fuzzy. Trying to reconcile the different memory reports in Linux, for those that have wanted to, has always been problematic. For the rest of us, it's not a problem.
I hadn't looked at /proc/meminfo for a long time, so the output on Fedora 17 running the 3.3.2 kernel somewhat surprised me. It's almost more than I'd want to know . . .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.