LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-22-2013, 10:22 AM   #1
samanka80
Member
 
Registered: Aug 2012
Posts: 85

Rep: Reputation: Disabled
Question Does htop and free -m show ballooned memory?


Hello.

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

PS:

I have discussed it here too:

http://www.linuxquestions.org/questi...fo-4175470473/

I really needed to change the tread subject, but it didn't work, and now I can't delete the previous thread... any help with that will be appreciated.

Last edited by samanka80; 07-22-2013 at 10:24 AM.
 
Old 07-23-2013, 01:58 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
*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.
 
1 members found this post helpful.
Old 07-23-2013, 04:17 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,141

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
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 ?.
 
Old 07-23-2013, 05:19 AM   #4
samanka80
Member
 
Registered: Aug 2012
Posts: 85

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-23-2013, 05:41 AM   #5
samanka80
Member
 
Registered: Aug 2012
Posts: 85

Original Poster
Rep: Reputation: Disabled
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.

http://serverfault.com/questions/475...ry-consumption
 
Old 07-24-2013, 01:47 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Thanks for replying there's a fix!
 
Old 07-24-2013, 03:48 PM   #7
samanka80
Member
 
Registered: Aug 2012
Posts: 85

Original Poster
Rep: Reputation: Disabled
I am still not sure that it is our problem. We are waiting for changes, will update here, I am not announcing this as solved.
 
Old 08-27-2013, 03:35 AM   #8
samanka80
Member
 
Registered: Aug 2012
Posts: 85

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Live DVD runs out of memory - using swap - free memory doesn't help at upgrade .... LiNuXkOlOnIe Linux - Distributions 3 06-09-2013 09:35 PM
free, top and htop show different memory usage wulp Linux - General 2 07-13-2011 12:22 AM
Application Virtual address space memory allocation - memory does not get free chamara82 Linux - General 4 01-01-2011 08:19 PM
Htop vs 'top' vs 'free' disparity schachwizard Ubuntu 2 09-22-2010 04:33 PM
Why doesnt top or free show swap memory usage ? exceed1 Linux - General 15 08-03-2009 08:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration