qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] default guest RAM size?
Date: Tue, 5 Mar 2013 09:53:50 +0000	[thread overview]
Message-ID: <20130305095349.GA6039@redhat.com> (raw)
In-Reply-To: <51358208.1020409@msgid.tls.msk.ru>

On Tue, Mar 05, 2013 at 09:26:32AM +0400, Michael Tokarev wrote:
> For many years, qemu defaults to 128Mb of guest RAM size.
> Today, this is just too small, and many OSes fails to boot
> with this size, more, they fail to produce any reasonable
> messages either (eg, windows7 just crashes at startup).
> 
> Some distributions (eg ubuntu) had a local patch to increase
> this value, for years.

Out of interest, what do they change it too ?

> Maybe it's time to increase the default RAM size a bit?
> Make it arch-specific if needs to be ?

As with pretty much all QEMU hardware defaults, the default RAM
size is always going to be a tradeoff between compatibility and
optimization for specific use case. I can understand that the
current RAM setting is useless for pretty much all x86 currently
shipping "retail" operating systems (ie the ubuntu, fedora, windows,
etc of today), but that's not really the only thing to worry about
when invoking QEMU. People invoking QEMU manually have to care
about many other aspects of hardware configuration that are going
to be OS specific.

I think rather than asking the narrow question of whether we need
to increase the default RAM, we need to have a clear statement on
what target the default QEMU machine setup is aiming at.

If answer to that is that we're aiming to offer parity with current
state of the art desktop hardware specs, then clearly we should be
changing the RAM and other aspects over time to keep up. But it
could be that our aim is to just not change the default hardware
ever and explicitly state that this is a job for a layer above
QEMU to solve.

We've had similar requests periodically against libvirt to say
we should default to hardware model XYZ, or hardware config ABC.
In the end we've always pointed out that by changing the defaults
you never really solve the problem - you are just moving the
problem from one person to a different person. The concept of
virtual hardware defaults is just impossible to get right, since
this is fundamentally something that has a different answer for
every OS out there.

This is what motivated the creation of the libosinfo project. It aims
to provide a database of all the various OS specific metadata for use
by such higher level tools, and API to query this database. Included
in the metadata it maintains are the minimum, and recommended resource
settings for RAM, CPU count and disk storage for that OS, recommended
default hardware devices, location of ISO images / install trees, ISO
image signatures, release/eol dates, and much more besides.

So now when anyone askes for a change in libvirt defaults we just tell
them that the app using libvirt should be picking the OS specific
settings from libosinfo or a similar kind of source. So far only the
GNOME boxes app is using libosinfo, but I'm intending to make both
virt-manager and OpenStack use it too.

NB libosinfo has no dependency on libvirt at all - its only dep is on
GLib, so we can use GObject introspection to expose the library to
many different languages.

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

      parent reply	other threads:[~2013-03-05  9:54 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-05  5:26 [Qemu-devel] default guest RAM size? Michael Tokarev
2013-03-05  5:40 ` Peter Maydell
2013-03-05  6:07   ` 陳韋任 (Wei-Ren Chen)
2013-03-05  6:09     ` Peter Maydell
2013-03-06  3:59       ` Rob Landley
2013-03-06 18:34         ` Peter Maydell
2013-03-06 18:47           ` Daniel P. Berrange
2013-03-06 18:42             ` Michael Tokarev
2013-03-07  1:21           ` Rob Landley
2013-03-07  1:29             ` Peter Maydell
2013-03-06  9:28   ` Markus Armbruster
2013-03-07  2:38   ` Anthony Liguori
2013-03-07  3:40     ` [Qemu-devel] propose to implement ower device li guang
2013-03-07 13:41       ` Wenchao Xia
2013-03-11  0:34         ` li guang
2013-03-05  9:53 ` Daniel P. Berrange [this message]

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=20130305095349.GA6039@redhat.com \
    --to=berrange@redhat.com \
    --cc=mjt@tls.msk.ru \
    --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).