[SOLVED] RAM usage by unknown sources not traceable via regular tools (meminfo, smem)
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.
RAM usage by unknown sources not traceable via regular tools (meminfo, smem)
Hi all,
I do see lot of memory (RAM) usage by some unknown source & is not listed by any of these cached, buffer, slab, kernel stack, vmallocUsed, anon or applications. I used smem tool so far & also enabled kmemleak. But not much luck yet.
Total RAM size is 16G & we carve out around 2.3G for a different purpose (not available to linux).
I used these fields to calculate total usage, which typically give closer value to MemTotal in normal cases. Here I see ~6.5G is missing.
My linux kernel is 2.6.32.11 (comparatively old) & I am clueless how to track this GAP. It would be a great help if you could share some pointers in this context. Any specific open source tool which could be useful in my case?
Thanks for your reply teckk. I did memory usage calculation for all my processes, but nothing adds up to the total usage (at least closer to that).
Other than Slab & VmallocUsed, is there any other parameter which could give some hint about kernel memory leak?
ps_mem seems to be quite useful, I will keep this running at frequent intervals.
Memory allocation via alloc_pages() without proper book-keeping could lead to such situation where we cannot track
memory usage from /proc/meminfo dump.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.