public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Linux does not use more than the startup RAM under Hyper-V with dynamic memory enabled
@ 2014-03-06  6:20 Brian Wong
  2014-03-06  6:24 ` Brian Wong
  0 siblings, 1 reply; 8+ messages in thread
From: Brian Wong @ 2014-03-06  6:20 UTC (permalink / raw)
  To: linux-kernel

I'm new to LKML, so please don't be too hard on me :)

I'm running Gentoo Linux under Microsoft Client Hyper-V on Windows 8.1 
Pro, and I've noticed some odd behavior with respect to dynamic memory 
(aka memory ballooning). The system will never use more than the startup 
memory defined in the vitual machine's settings.

For example, if I set the startup memory to 512 MB, and enable dynamic 
memory with a minimum of 512 MB and a maximum of 8192 MB, the system 
will never allocate than 512 MB of physical memory, despite Hyper-V 
assigning more memory to the VM and the added memory being visible in 
the output of "free" and "htop". Attempting to use more memory causes 
the system to start paging to swap, rather than actually allocating the 
memory above the startup memory assigned to the VM.

The kernel is built with the full set of Hyper-V drivers, including the 
key "Microsoft Hyper-V Balloon Driver" as well as memory hot-add and 
hot-remove functionality. This is happening with both the Gentoo-patched 
3.10.32 kernel and the vanilla 3.12.5 kernel. The host machine has a 
total of 24 GB of memory.

For now, I am working around the issue by starting the VM with the 
startup memory set to the maximum and letting Hyper-V take the usused 
memory back when it is not in use. The VM will then get the extra memory 
when it needs it.

Have I encountered a bug in the Hyper-V balloon driver?

-- 
Brian Wong
http://www.fierydragonlord.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-03-07  9:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-06  6:20 Linux does not use more than the startup RAM under Hyper-V with dynamic memory enabled Brian Wong
2014-03-06  6:24 ` Brian Wong
2014-03-06 10:07   ` Linux does not use more than the startup RAM under Hyper-V with dynamic memory enabled RE: [PATCH 2/2] Drivers: hv: balloon: Online the hot-added memory "in context" Re: [PATCH 1/1] Drivers: hv: Victor Miasnikov
2014-03-06 10:23     ` KY Srinivasan
2014-03-06 11:13       ` Victor Miasnikov
2014-03-06 18:11         ` Brian Wong
2014-03-06 18:25           ` Jeff Leung
2014-03-07  9:51             ` Victor Miasnikov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox