From: Anthony Liguori <anthony@codemonkey.ws>
To: Nikola Ciprich <extmaillist@linuxbox.cz>
Cc: kvm-devel@lists.sourceforge.net
Subject: Re: performance tuning, problem with paravirtualized clock
Date: Sun, 06 Apr 2008 17:33:23 -0500 [thread overview]
Message-ID: <47F94FB3.7010208@codemonkey.ws> (raw)
In-Reply-To: <47F94D90.2040701@linuxbox.cz>
Nikola Ciprich wrote:
> Anthony Liguori wrote:
>> You won't see a gain with tmpfs. Make sure you reserve huge pages
>> first. For a 1GB guest, you'll need something like:
>>
>> echo 540 > /proc/sys/vm/nr_hugepages
>>
>> When you create a VM, you need a bit more memory than 1GB for
>> per-guest overhead. That's why I reserve 540 instead of 512. You
>> can probably get away with 530 really.
>>
>> Check that it succeeded by cat'ing /proc/meminfo.
>>
> Well, I tried various values now, and booting fails immediately:
> Decompressing Linux...
It's very likely that you won't be able to allocate enough pages to run
a guest if your system has been running sufficient long and memory is
highly fragmented.
If you cat /proc/meminfo and HugePages_Free is much less than 540,
you're not going to be able to create a 1GB guest. Unfortunately, you
won't get a failure until the guest tries to use memory.
The only solution is to reboot and reserve huge pages early before they
get fragmented.
Regards,
Anthony Liguori
> invalid compressed format (err=1)
>
> -- System halted
>
>
> weird...
> anyways I'll also give fresh kvm-65 a try now :)
>
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
next prev parent reply other threads:[~2008-04-06 22:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-06 19:56 performance tuning, problem with paravirtualized clock Nikola Ciprich
2008-04-06 20:38 ` Anthony Liguori
2008-04-06 21:57 ` Nikola Ciprich
2008-04-06 22:08 ` Anthony Liguori
2008-04-06 22:24 ` Nikola Ciprich
2008-04-06 22:33 ` Anthony Liguori [this message]
2008-04-06 20:49 ` Dor Laor
2008-04-06 22:25 ` Nikola Ciprich
2008-04-07 4:14 ` Avi Kivity
2008-04-07 15:41 ` Marcelo Tosatti
2008-04-07 20:47 ` Nikola Ciprich
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=47F94FB3.7010208@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=extmaillist@linuxbox.cz \
--cc=kvm-devel@lists.sourceforge.net \
/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