From: Anshuman Khandual <khandual@linux.vnet.ibm.com>
To: Bharata B Rao <bharata@linux.vnet.ibm.com>, qemu-devel@nongnu.org
Cc: Nathan Fontenot <nfont@linux.vnet.ibm.com>,
qemu-ppc@nongnu.org, mdroth@linux.vnet.ibm.com,
david@gibson.dropbear.id.au
Subject: Re: [Qemu-devel] [RFC PATCH v0] spapr: Disable memory hotplug when HTAB size is insufficient
Date: Mon, 24 Aug 2015 10:04:31 +0530 [thread overview]
Message-ID: <55DA9ED7.3010604@linux.vnet.ibm.com> (raw)
In-Reply-To: <1440387111-23689-1-git-send-email-bharata@linux.vnet.ibm.com>
On 08/24/2015 09:01 AM, Bharata B Rao wrote:
> The hash table size allocated to guest depends on the maxmem size.
> If the host isn't able to allocate the required hash table size but
> instead allocates less than the optimal requested size, then it will
> not be possible to grow the RAM until maxmem via memory hotplug.
> Attempts to hotplug memory till maxmem could fail and this failure
> isn't being currently handled gracefully by the guest kernel thereby
> causing guest kernel oops.
>
> This should eventually get fixed when we move to completely in-kernel
> memory hotplug instead of the current method where userspace tool drmgr
> drives the hotplug. Until the in-kernel memory hotplug is available
> for PowerKVM, disable memory hotplug when requested hash table size
> isn't allocated.
Even when the in-kernel memory hotplug will be available on PKVM,
it still makes sense to disable memory hotplug when the hash table
size received from host is not sufficient for the permissible/
requested maximum memory size of the guest. Whats the point of
enabling memory hotplug when we know it cannot fulfill all the
memory hotplug request.
IIUC, the hash table size received from the host some times can
be greater than what is required for the current memory size and
less than max hot pluggable memory on the guest. With this patch
in that case we will disable memory hotplug but then why use hash
table size which is bigger than required for the current memory
size. We will not be doing *any* memory hotplug at all afterwards,
so lets shrink the hash page size to what is just required for
the current memory requested by the guest and save some RAM
on the system.
next prev parent reply other threads:[~2015-08-24 4:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-24 3:31 [Qemu-devel] [RFC PATCH v0] spapr: Disable memory hotplug when HTAB size is insufficient Bharata B Rao
2015-08-24 4:34 ` Anshuman Khandual [this message]
2015-09-02 3:28 ` Bharata B Rao
2015-09-03 2:34 ` David Gibson
2015-09-03 18:50 ` Nathan Fontenot
2015-09-04 15:33 ` Michael Roth
2015-09-04 15:49 ` Nathan Fontenot
2015-09-04 16:12 ` Michael Roth
2015-09-09 9:06 ` Anshuman Khandual
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=55DA9ED7.3010604@linux.vnet.ibm.com \
--to=khandual@linux.vnet.ibm.com \
--cc=bharata@linux.vnet.ibm.com \
--cc=david@gibson.dropbear.id.au \
--cc=mdroth@linux.vnet.ibm.com \
--cc=nfont@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.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;
as well as URLs for NNTP newsgroup(s).