Skip to contentSkip to conversation

Floating point vs Integer performance

DISCUSSION Benjamin Prosnitz 3 participants 3 messages Mar 12, 2007 – Mar 13, 2007 KVM

lore
Share & tools
lore
#0 lore raw

I ran some benchmarks inside of KVM-12 on my system and outside of KVM (no virtualization on my system). I found that floating point performance when running both with and without KVM was approximately the same, but integer performance in KVM was about 25% of what I get when running the test outside of KVM. These were tests using Dhrystone 2 and Double Precision Whetstone on a Core 2 Duo T7200 processor.

Any thoughts on why the integer and floating point performance appears to differ so much?

Benjamin Prosnitz

-------------------------------------------------------------------------
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

#1 lore raw
Quoted 11 lines · Benjamin Prosnitz

I ran some benchmarks inside of KVM-12 on my system and outside of KVM (no virtualization on my system). I found that floating point performance when running both with and without KVM was approximately the same, but integer performance in KVM was about 25% of what I get when running the test outside of KVM. These were tests using Dhrystone 2 and Double Precision Whetstone on a Core 2 Duo T7200 processor.

Any thoughts on why the integer and floating point performance appears to differ so much?

Perhaps the integer benchmarks thrash the mmu cache. Try raising KVM_NUM_MMU_PAGES to 1024.

4MB per VM lowmem is a lot, but if it helps many workloads, it's worth it.

Signature · 8 lines
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


-------------------------------------------------------------------------
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
#2 lore raw
In reply to Benjamin Prosnitz

Hi!

Quoted 9 lines · Benjamin Prosnitz

I ran some benchmarks inside of KVM-12 on my system and outside of KVM (no virtualization on my system). I found that floating point performance when running both with and without KVM was approximately the same, but integer performance in KVM was about 25% of what I get when running the test outside of KVM. These were tests using Dhrystone 2 and Double Precision Whetstone on a Core 2 Duo T7200 processor.

Any thoughts on why the integer and floating point performance appears to differ so much?

I guess it's the benchmark. In contrast to its FP counterpart, Dhrystone doesn't crunch numbers most of the time. It also performs lots of string operations, for example (memory access == slow).

Signature · 8 lines
Michael "Tired" Riepe <[email protected]>
X-Tired: Each morning I get up I die a little

-------------------------------------------------------------------------
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