[SOLVED] Does htop and free -m show ballooned memory?
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
I have a machine (ubuntu) on cloud, it uses ballooning for memory sharing. I have 12G ram, and my server processes size is about 1.5G, and mysql buffer and caches are not more than 4G. but htop and free -m show about 11G of memory usage, which is weird in case of my server. my best guess is that my memory is being used by other machines on that server, plus, landscape-sysinfo says:
Quote:
System load: 0.09 Processes: 104
Usage of /: 52.8% of 7.64GB Users logged in: 1 Memory usage: 13%
and mysql is really running slow... So I want to make sure how much ram ONLY MY SERVER is using... Is htop and free -m showing the ballooned memory plus my usage?? It mathematically really works about my server...
Thanks
*I reported your other thread for closure. Please do not create threads for the sake of adjusting the thread title: instead report that thread (see the report button) for modification instead. Ballooning means the guest OS has a guaranteed minimum amount of RAM at its disposal and a maximum. If less memory is used the host system will relaim unused memory. AFAIK use of such a driver should not be visible or have any visible effects inside the guest OS. If MySQL is slow then IMHO you first should diagnose why it is slow instead of pointing to RAM.
On the contrary I would expect a balloon driver to simply allocate memory and drive up the memory pressure on the guest. The smarts is in being able to tell the host that there are reclaimable pages - the host "steals" them for someone else, but the guest still sees them as allocated to the driver.
As other processes need (real) pages the host sees that as page demand (probably initiated by the balloon driver), and hands back (some of) the pages. The driver can then release them back to the free pool as seen by the guest OS.
All guesswork on my part, I haven't looked into it too closely as I don't have a requirement - what does /proc/meminfo look like ?.
Big thanks unSpawn. It really should work the way you mentioned, but it does not. The system report shows that 8G of memory is balloon used and this is the exact amount of memory we have lost, and honestly, our system cannot take it back when it needs it. I think we have some issue with our client driver for ubuntu, last night, I was reading that it should be updated.. We are tracking the problem, I still don't know why htop is showing this balloon, I read other people's posts with same problem, they have all mentioned that htop shows it (as you said, it shouldn't, it has to be transparent to our system)I let people here know about the results.
Virtual machines display increased memory usage in vmware-guestd and vmwareservice.exe. The memory footprint of the process continues to increase until the available memory is drained and the process cannot allocate any memory. This issue is more prominent when the guest operating system has a large number of IP addresses associated with it.
Dear LQ-players, it WAS ballooning, if you have such problem that htop or any memory monitor shows strange usage, check your balloon share and try to upgrade it. Also, fragmented tables have a big impact on memory, we saved about 1G of RAM by optimizing them.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.