64 bit guest much faster ?
Hello,
I have a simple question (sorry I'm a kvm beginner):
Is it right that a 64bit guest (8 CPUs, 16GB) is
much faster than a 32bit guest (8 CPUs, 16GB PAE).
(kvm guest and kvm host are Ubuntu 9.04, 2.6.28-15-server, kvm 1:84+dfsg-0ubuntu12.3). eg "dpkg-reconfigure initramfs-tools" runs twice as fast on the 64bit guest.
Thanks
Stefan
Quoted 10 lines · Stefan
Hello,
I have a simple question (sorry I'm a kvm beginner):
Is it right that a 64bit guest (8 CPUs, 16GB) is
much faster than a 32bit guest (8 CPUs, 16GB PAE).
(kvm guest and kvm host are Ubuntu 9.04, 2.6.28-15-server, kvm 1:84+dfsg-0ubuntu12.3). eg "dpkg-reconfigure initramfs-tools" runs twice as fast on the 64bit guest.
There shouldn't be that much of a difference.
Signature · 1 line
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
Quoted 6 lines · Stefan
Hello,
I have a simple question (sorry I'm a kvm beginner):
Is it right that a 64bit guest (8 CPUs, 16GB) is much faster than a 32bit guest (8 CPUs, 16GB PAE).
^^^^
Yes. With *that* much memory the 32bit guest struggles with address space limitations (32bit -> 4G), whereas the 64bit guest doesn't.
With up to 1G you shouldn't see a noticable difference. But the more highmem the 32bit guest uses the higher is the penalty. Especially without ept/npt as every kmap() of a high page is a roundtrip to the hypervisor then.
cheers,
Gerd
Quoted 4 lines · Gerd Hoffmann
Quoted 3 lines · Stefan
Hello,
Quoted 8 lines
Quoted 3 lines
I have a simple question (sorry I'm a kvm beginner):
Is it right that a 64bit guest (8 CPUs, 16GB) is much faster than a 32bit guest (8 CPUs, 16GB PAE).^^^^Yes. With *that* much memory the 32bit guest struggles with address space limitations (32bit -> 4G), whereas the 64bit guest doesn't.
With up to 1G you shouldn't see a noticable difference. But the more highmem the 32bit guest uses the higher is the penalty. Especially without ept/npt as every
kmap()of a high page is a roundtrip to the hypervisor then.
Oh yes, without ept/npt the slowdown should indeed be significant with this much memory.
Signature · 1 line
error compiling committee.c: too many arguments to function
Quoted 8 lines · Avi Kivity
Quoted 7 lines · Gerd Hoffmann
Quoted 6 lines · Stefan
Hello,
I have a simple question (sorry I'm a kvm beginner):
Is it right that a 64bit guest (8 CPUs, 16GB) is much faster than a 32bit guest (8 CPUs, 16GB PAE).
Quoted 6 lines
Quoted 4 lines
^^^^Yes. With *that* much memory the 32bit guest struggles with address space limitations (32bit -> 4G), whereas the 64bit guest doesn't.
With up to 1G you shouldn't see a noticable difference. But the more highmem the 32bit guest uses the higher is the penalty. Especially without ept/npt as every
kmap()of a high page is a roundtrip to the hypervisor then.Oh yes, without ept/npt the slowdown should indeed be significant with this much memory.
How it is with 4Gb guest/mem without PAE (I mean, with CONFIG_HIGHMEM_4G=y)? Or even 2Gb? In case of npt or without.
Can we construct a sort of a table of expected slowdowns (not in numbers but just in terms "significant", "minor" etc) of running <4Gb or >4Gb (and <1Gb and >1Gb if that makes significant diffencece) 32bit guests with and without npt and 64bit guests, please? I guess it's quite interesting to many users.
From the above it looks like it's better to run 64bit kernel in the 32bit guest in these situations too.
I haven't measured it, just because it never occured to me that there MAY be any difference. But I've only non-npt hardware here at the moment.
Thanks!
/mjt
Quoted 6 lines · Michael Tokarev
Quoted 1 line
Oh yes, without ept/npt the slowdown should indeed be significant with this much memory.
How it is with 4Gb guest/mem without PAE (I mean, with
CONFIG_HIGHMEM_4G=y)? Or even 2Gb? In case of npt or without.
It'll be slow. Just use x86_64 with > 1GB.
Quoted 5 lines
Can we construct a sort of a table of expected slowdowns (not in numbers but just in terms "significant", "minor" etc) of running <4Gb or >4Gb (and <1Gb and >1Gb if that makes significant diffencece) 32bit guests with and without npt and 64bit guests, please? I guess it's quite interesting to many users.
These tables will be useless, it greatly depends on workload.
Signature · 1 line
error compiling committee.c: too many arguments to function