From: Dave Hansen <haveblue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
To: Izik Eidus <izike-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Cc: kvm-devel <kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: Slow Kernel Boot
Date: Mon, 07 Jan 2008 15:03:16 -0800 [thread overview]
Message-ID: <1199746996.9834.37.camel@localhost> (raw)
In-Reply-To: <4782ABCA.2090303-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
On Tue, 2008-01-08 at 00:46 +0200, Izik Eidus wrote:
> Dave Hansen wrote:
> > On Tue, 2008-01-08 at 00:16 +0200, Izik Eidus wrote:
> >
> >> Dave Hansen wrote:
> >>
> >>> With kvm-44, I thought my kernel was freezing during boot if I gave it
> >>> 1G of RAM. But, it boots fine with 512M.
> >>>
> >>> So, I instrumented the kernel, and found out that it is just taking a
> >>> long time to memset a 58MB area of memory for mem_map[]. It appears to
> >>> be taking a mmio_exit for every access of every byte of memory. The end
> >>> result is a ~100kbps memset() speed. Yes, 100 kilobytes/sec.
> >>>
> >>> I just tried kvm from git, and the kernel doesn't even get that far. I
> >>> see this in debugfs
> >>>
> >>> insn_emulation:1393985
> >>>
> >>> even before I get a single kernel message. And it keeps going up, fast.
> >>> I can get the kernel to boot just fine if I give it less than 896MB of
> >>> RAM.
> >>>
> >>> kvm-44 boots long enough for me to see a really funky e820 table:
> >>>
> >>> BIOS-provided physical RAM map:
> >>> BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
> >>> BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
> >>> BIOS-e820: 00000000000e8000 - 0000000000100000 (reserved)
> >>> BIOS-e820: 0000000000100000 - 00000000fffbd000 (usable)
> >>> BIOS-e820: 00000000fffbd000 - 00000000ffff0000 (reserved)
> >>>
> >>> Note that this is with '-m 1G'!! It looks to me like one of those
> >>> sections is basically from 0x100000 up to ~4G and *usable*. That
> >>> doesn't look right.
> >>>
> >>>
> >> yea it really dont look right, it look like it for some reason map the
> >> whole memory up untill the bios to the kernel as memory
> >> it even map it on the pci hole so...
> >> hrmmm, very weird,
> >>
> >> what is your host info (32/64 amd/intel kernel...)?
> >>
> >
> > 64-bit intel host, kernel 2.6.24-rc5
> >
> > Running kvm's current git userspace with modules from the same version.
> >
> >
> >> and what is the
> >> guest info (kernel 32/64...) ?
> >>
> >
> > 32-bit 2.6.23-rc6-mm1
> >
> >
> >> and what happen if you run it with -no-kvm ?
> >>
> >
> > Both current -git and kvm-44 seem to lock up at early kernel boot before
> > even early printk is available. But, GRUB comes up in both cases.
> >
> > -no-kvm doesn't seem to change things at all.
> >
> > -- Dave
> >
> >
> when you see the grub how much memory is it saying you have?
GNU GRUB version 0.97 (639K lower / 4193279K upper memory)
> how can i get the image that you are using?
The disk images? I made them myself and I've been using them for quite
a while. Probably a year or more.
> (i dont know if it will be too much to ask, but if you run it with pure
> qemu (from qemu.org) is it working?)
Ahhh. I'm using the ubuntu one, and it does the same thing. I guess
that means I found a qemu bug.
> for some reason the e820 return a really false values for your guest...
> i would have suggest to check if you have the latest kvm bios(not in
> your physical computer bios) but it cannot be the problem as that you
> dont run it with more than 3.something giga...
Yeah, I just updated the BIOSes. They're right out of KVM's git repo.
-- Dave
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
next prev parent reply other threads:[~2008-01-07 23:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-07 22:05 Slow Kernel Boot Dave Hansen
2008-01-07 22:16 ` Izik Eidus
[not found] ` <4782A4AF.6020902-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-07 22:46 ` Dave Hansen
2008-01-07 22:46 ` Izik Eidus
[not found] ` <4782ABCA.2090303-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-07 23:03 ` Dave Hansen [this message]
2008-01-08 6:42 ` Amit Shah
[not found] ` <200801081212.53737.amit.shah-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-08 13:01 ` Amit Shah
[not found] ` <200801081831.54465.amit.shah-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-08 12:54 ` Izik Eidus
2008-01-08 13:18 ` Amit Shah
2008-01-08 19:13 ` Dave Hansen
2008-01-08 19:26 ` Daniel P. Berrange
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=1199746996.9834.37.camel@localhost \
--to=haveblue-r/jw6+rmf7hqt0dzr+alfa@public.gmane.org \
--cc=izike-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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