qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Tiziano Müller" <tiziano.mueller@stepping-stone.ch>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Memory ballooning: wrong size?
Date: Sat, 29 Sep 2012 20:01:51 +0200	[thread overview]
Message-ID: <1348941711.6449.7.camel@storm> (raw)

Hi everyone

A look through recent changes didn't reveal anything (or I missed it),
so please excuse me if this is already fixed, but with qemu-1.1.1 and
guest linux kernels 3.3.x and 3.5.0 the size of the memory qemu sets
via memory ballooning and what the guest sees do not match:

hmp: `balloon 1024` -> `grep MemTotal /proc/meminfo`: 904565 kB

where I would rather expect 1019768 (which is what one would get with
'-m 1024' only).

The factor is constant 1/1024 with "-m 4096" but seems to change
depending on the (maximum) memory set via "-m ...".

I first expected libvirt to be the culprit here, but manually modifying
the balloon via monitor passthrough revealed that something between qemu
and guest virtio must go wrong.

Any ideas? What do/did I miss?

Thanks in advance,
Tiziano

-- 
stepping stone GmbH
Neufeldstrasse 9
CH-3012 Bern
Telefon: +41 31 332 53 63
www.stepping-stone.ch
tiziano.mueller@stepping-stone.ch

                 reply	other threads:[~2012-09-29 18:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1348941711.6449.7.camel@storm \
    --to=tiziano.mueller@stepping-stone.ch \
    --cc=qemu-devel@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).