All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcelo Tosatti <mtosatti@redhat.com>
To: Florian Schmidt <flosch@nutanix.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
	Zhao Liu <zhao1.liu@intel.com>,
	qemu-devel@nongnu.org
Subject: Re: [RFC PATCH 2/2] Add HvExtCallGetBootZeroedMemory
Date: Mon, 20 Apr 2026 12:01:02 -0300	[thread overview]
Message-ID: <aeY/rmwBQp5F/wPf@tpad> (raw)
In-Reply-To: <80e6ecc4-eac6-40ee-aaf8-da60daaf96d4@nutanix.com>

On Mon, Apr 20, 2026 at 10:25:43AM +0100, Florian Schmidt wrote:
> Hi Marcelo,
> 
> On 2026-04-17 06:51, Marcelo Tosatti wrote:
> > Is this to improve boot time of very large guests ?
> 
> It depends a bit on how you define "boot time". It won't make a difference
> if you measure the time it takes to create the VM until you start the vCPUs.
> It may even make a huge difference if you measure the time until a user can
> first log in.
> 
> What it will do is reduce the time the guest spends on writing memory,
> mostly in the background, to zero out all pages it has gotten from the
> hypervisor. The main advantage (other than saving CPU cycles that are
> effectively wasted on an unneeded operation) is that if you don't
> pre-allocate all the VMs memory, then the VM won't touch all pages after
> boot, keeping the RSS down until the memory is actually used. That's for
> example useful if you overcommit/oversubscribe VM memory.
> 
> Cheers,
> Florian

Hi Florian,

That is useful!



  reply	other threads:[~2026-04-22 16:31 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-12 11:31 [RFC PATCH 0/2] Support for Hyper-V's HvExtCallGetBootZeroedMemory() Florian Schmidt
2026-01-12 11:31 ` [RFC PATCH 1/2] Add HvExtCallQueryCapabilities Florian Schmidt
2026-01-12 11:31 ` [RFC PATCH 2/2] Add HvExtCallGetBootZeroedMemory Florian Schmidt
2026-04-16 12:47   ` Paolo Bonzini
2026-04-16 15:33     ` Florian Schmidt
2026-04-16 16:04       ` Paolo Bonzini
2026-04-20 10:51         ` Florian Schmidt
2026-04-21 22:46           ` Paolo Bonzini
2026-05-05 15:57             ` Florian Schmidt
2026-04-23  2:16       ` Marcelo Tosatti
2026-04-17  5:51     ` Marcelo Tosatti
2026-04-20  9:25       ` Florian Schmidt
2026-04-20 15:01         ` Marcelo Tosatti [this message]
2026-02-02 14:26 ` [RFC PATCH 0/2] Support for Hyper-V's HvExtCallGetBootZeroedMemory() Florian Schmidt
2026-02-23 11:23   ` Florian Schmidt

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=aeY/rmwBQp5F/wPf@tpad \
    --to=mtosatti@redhat.com \
    --cc=flosch@nutanix.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=zhao1.liu@intel.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.