public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Brian Wong <draconicpenguin1@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: Re: Linux does not use more than the startup RAM under Hyper-V with dynamic memory enabled
Date: Thu, 06 Mar 2014 01:24:09 -0500	[thread overview]
Message-ID: <53181489.6040000@yahoo.com> (raw)
In-Reply-To: <531813B4.7060205@yahoo.com>

On 3/6/2014 1:20 AM, Brian Wong wrote:
> 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?
>

Just a correction: the vanilla kernel version is 3.13.5, not 3.12.5. 
Sorry for any confusion.

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

  reply	other threads:[~2014-03-06  6:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53181489.6040000@yahoo.com \
    --to=draconicpenguin1@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox