Skip to contentSkip to conversation

faster boot with -no-kvm?

DISCUSSION David Abrahams 3 participants 11 messages Apr 12, 2007 – May 6, 2007 4 messages not in the archive KVM

lore
Share & tools
lore
#0 lore raw

When I start my Windows VM with -no-kvm, it seems to boot much more quickly than without. Also there's a long period, right after the VM changes its screen resolution from the 640x480 used for Windows' boot screen to 1280x1024, where the VM's screen goes all white. Is this all normal?

Signature · 12 lines
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Don't Miss BoostCon 2007! ==> http://www.boostcon.com


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 5 lines

When I start my Windows VM with -no-kvm, it seems to boot much more quickly than without. Also there's a long period, right after the VM changes its screen resolution from the 640x480 used for Windows' boot screen to 1280x1024, where the VM's screen goes all white. Is this all normal?

I think the longer boot time with kvm might be caused by the slow white Screen drawing.
Avi solved it elegantly by aliasing the mmio memory to regular ram. There was no official kvm release so you'll need to get update from the git.
Maybe it's a good reason for a new fresh release.

Quoted 10 lines

--
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Don't Miss BoostCon 2007! ==> http://www.boostcon.com

-----------------------------------------------------------------------

--

Quoted 5 lines

Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVD

EV

Quoted 4 lines

_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

#3 lore raw
Quoted 6 lines · Dor Laor
Quoted 5 lines

When I start my Windows VM with -no-kvm, it seems to boot much more quickly than without. Also there's a long period, right after the VM changes its screen resolution from the 640x480 used for Windows' boot screen to 1280x1024, where the VM's screen goes all white. Is this all normal?

Quoted 6 lines

I think the longer boot time with kvm might be caused by the slow white Screen drawing.
Avi solved it elegantly by aliasing the mmio memory to regular ram. There was no official kvm release so you'll need to get update from the git.
Maybe it's a good reason for a new fresh release.

I'm all for getting as much good stuff released as possible before the ubuntu feisty beta cycle ends :)

Signature · 12 lines
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Don't Miss BoostCon 2007! ==> http://www.boostcon.com


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
#4 lore raw
In reply to a message not in the archive
Quoted 2 lines · David Abrahams

When I start my Windows VM with -no-kvm, it seems to boot much more quickly than without.

You probably have acpi enabled in Windows. This causes massive slowdowns in kvm; the real fix will unfortunately require you to upgrade your hardware.

There is a workaround:

My Computer -> Properties -> Hardware -> Device Manager -> [Whatever's under
Computer, unless it's "Standard PC"] -> Properties -> Update Driver -> Not at this time -> Next -> Install
from a list -> Next -> Don't search -> Next -> Standard PC -> Next.

"Standard PC" is the noacpi HAL.

Quoted 5 lines

Also there's a long period, right after the VM
changes its screen resolution from the 640x480 used for Windows' boot screen to 1280x1024, where the VM's screen goes all white. Is this all normal?

That will be gone in kvm-19.

Signature · 8 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
#5 lore raw
Quoted 7 lines · Avi Kivity
Quoted 2 lines · David Abrahams

When I start my Windows VM with -no-kvm, it seems to boot much more quickly than without.

You probably have acpi enabled in Windows. This causes massive slowdowns in kvm; the real fix will unfortunately require you to upgrade your hardware.

My physical hardware? Which part?

Is starting the vm with -no-acpi insufficient? I just realized, I haven't been doing that.

Quoted 9 lines

There is a workaround:

My Computer -> Properties -> Hardware -> Device Manager -> [Whatever's under
Computer, unless it's "Standard PC"] -> Properties -> Update Driver -> Not at this time -> Next -> Install
from a list -> Next -> Don't search -> Next -> Standard PC -> Next.

"Standard PC" is the noacpi HAL.

I'll try that, thanks.

Quoted 7 lines
Quoted 5 lines

Also there's a long period, right after the VM
changes its screen resolution from the 640x480 used for Windows' boot screen to 1280x1024, where the VM's screen goes all white. Is this all normal?

That will be gone in kvm-19.

OK, as long as it's well understood :)

Signature · 12 lines
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Don't Miss BoostCon 2007! ==> http://www.boostcon.com


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

A message that is not in the archive (sent off-list or not yet received): [email protected]

#7 lore raw
Quoted 8 lines · David Abrahams
Quoted 5 lines · Avi Kivity
Quoted 3 lines · David Abrahams

When I start my Windows VM with -no-kvm, it seems to boot much more quickly than without.

Quoted 7 lines
Quoted 4 lines

You probably have acpi enabled in Windows. This causes massive slowdowns in kvm; the real fix will unfortunately require you to upgrade your hardware.

My physical hardware? Which part?

The part that currently doesn't virtualize the apic tpr: the cpu.

It happens that Windows in acpi mode likes to bang on this register quite a lot, and that the penalty for accessing this register is several microseconds (instead of nanoseconds). Most of the time in a (virtual) Windows boot is spent on reading and writing this register.

Quoted 3 lines

Is starting the vm with -no-acpi insufficient? I just realized, I haven't been doing that.

It won't help if Windows wants acpi, I think.

Signature · 8 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
#8 lore raw
In reply to Avi Kivity
Quoted 9 lines · Avi Kivity

There is a workaround:

My Computer -> Properties -> Hardware -> Device Manager -> [Whatever's under
Computer, unless it's "Standard PC"] -> Properties -> Update Driver -> Not at this time -> Next -> Install
from a list -> Next -> Don't search -> Next -> Standard PC -> Next.

"Standard PC" is the noacpi HAL.

OK, tried that. The first reboot hung early in the process, with Windows' bootup progress indicator doing nothing. I better start backing up my VM!

A subsequent reboot went much faster. Wow, the virtual machine really blazes now! Wish I'd known about that earlier, thanks!

Signature · 12 lines
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Don't Miss BoostCon 2007! ==> http://www.boostcon.com


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

A message that is not in the archive (sent off-list or not yet received): [email protected]

#10 lore raw
Quoted 11 lines · David Abrahams
Quoted 8 lines · Avi Kivity

There is a workaround:

My Computer -> Properties -> Hardware -> Device Manager -> [Whatever's under
Computer, unless it's "Standard PC"] -> Properties -> Update Driver -> Not at this time -> Next -> Install
from a list -> Next -> Don't search -> Next -> Standard PC -> Next.

Quoted 7 lines
Quoted 2 lines

"Standard PC" is the noacpi HAL.

OK, tried that. The first reboot hung early in the process, with Windows' bootup progress indicator doing nothing. I better start backing up my VM!

That's worrying.

Quoted 3 lines

A subsequent reboot went much faster. Wow, the virtual machine really blazes now! Wish I'd known about that earlier, thanks!

Looks like something the wiki wants to know about too.

Signature · 8 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
#11 lore raw
Quoted 20 lines · Avi Kivity
Quoted 11 lines · David Abrahams
Quoted 8 lines · Avi Kivity

There is a workaround:

My Computer -> Properties -> Hardware -> Device Manager -> [Whatever's under
Computer, unless it's "Standard PC"] -> Properties -> Update Driver -> Not at this time -> Next -> Install
from a list -> Next -> Don't search -> Next -> Standard PC -> Next.

Quoted 7 lines
Quoted 2 lines

"Standard PC" is the noacpi HAL.

OK, tried that. The first reboot hung early in the process, with Windows' bootup progress indicator doing nothing. I better start backing up my VM!

Quoted 7 lines

That's worrying.

Quoted 3 lines

A subsequent reboot went much faster. Wow, the virtual machine really blazes now! Wish I'd known about that earlier, thanks!

Looks like something the wiki wants to know about too.

Seems like it's already there:
http://kvm.qumranet.com/kvmwiki/Windows_ACPI_Workaround

It doesn't seem all that easy to find some things on the wiki. I wish I knew what to suggest that would improve things, but I don't.

Signature · 12 lines
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Don't Miss BoostCon 2007! ==> http://www.boostcon.com


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

A message that is not in the archive (sent off-list or not yet received): [email protected]

#13 lore raw
Quoted 5 lines · David Abrahams
Quoted 5 lines
Quoted 5 lines

A subsequent reboot went much faster. Wow, the virtual machine really blazes now! Wish I'd known about that earlier, thanks!

Quoted 9 lines
Quoted 2 lines

Looks like something the wiki wants to know about too.

Seems like it's already there:
http://kvm.qumranet.com/kvmwiki/Windows_ACPI_Workaround

It doesn't seem all that easy to find some things on the wiki. I wish I knew what to suggest that would improve things, but I don't.

Well, I wrote that page as a reaction to that conversation, so it isn't surprising you couldn't find it before.

Signature · 8 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
#14 lore raw
In reply to a message not in the archive
Quoted 11 lines · David Abrahams
Quoted 7 lines
Quoted 5 lines

A subsequent reboot went much faster. Wow, the virtual machine really blazes now! Wish I'd known about that earlier, thanks!

Looks like something the wiki wants to know about too.

It doesn't seem all that easy to find some things on the wiki. I wish I knew what to suggest that would improve things, but I don't.

Oh, and the real fix is not to add documentation, but to have the vm creation gui have a check box for (or even automatically detect) Windows, whereupon it would add the -no-acpi option when launching the installer.

Signature · 8 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/