Skip to contentSkip to conversation

Qemu as a System Simulator

Qemu-devel Andrea Pellegrini 3 participants 3 messages Jan 6, 2009 – Jan 7, 2009

lore
Share & tools
lore
#0 lore raw

Hi all,
for my research in Computer Architecture I need to build a full multiprocessor system simulator where I can modify the interconnect between the CPUs and evaluate its performance. I saw that many cycle accurate simulators are based on Qemu and I was wondering if anyone has experience and thinks that is possible to modify Qemu to support multiple interconnect (such as bus, mesh, NoC). Thank you very much,
~Andrea Pellegrini

#1 lore raw
Quoted 6 lines · Andrea Pellegrini

for my research in Computer Architecture I need to build a full multiprocessor system simulator where I can modify the interconnect between the CPUs and evaluate its performance.
I saw that many cycle accurate simulators are based on Qemu and I was wondering if anyone has experience and thinks that is possible to modify Qemu to support multiple interconnect (such as bus, mesh, NoC).

qemu is not the right simulator to evaluate most kind of performance metrics (the only thing you can do is instruction set usage, instruction counts, memory traces, and the likes). I wonder where you saw cycle accurate simulators using qemu :-)

Laurent

#2 lore raw
In reply to Andrea Pellegrini
Quoted 1 line · Andrea Pellegrini

I saw that many cycle accurate simulators are based on Qemu and I was wondering if anyone has experience and thinks that is possible to modify Qemu to support multiple interconnect (such as bus, mesh, NoC).

It's true that some simulation methodologies use Qemu for functional (correctness) simulation. This is only a small part of a fully functional "cycle-accurate" simulator. See the
FPGA-Accelerated Simulation Technologies (FAST) work by
Derek Chiou's group:
http://users.ece.utexas.edu/~derek/FAST.html
(I doubt you'll ever see any of their Qemu-related code released)

You can also use Qemu to generate traces for use in simulation. In some cases, especially on RISC architectures like MIPS, you can estimate CPI and similar metrics and get results using Qemu that are similar to those generated by "cycle-accurate" simulators like SESC. See my paper here for more info on that:
http://www.csl.cornell.edu/~vince/papers/wddd08/index.html

What you describe though would involve adding a lot of extra code to Qemu.
Qemu is set up for fast emulation of binaries, not for architectural research. There isn't any built in cache or cache-coherence simulation, let alone any sort of idea of inter-chip interconnects.

So to answer your question, I do think it is possible to use Qemu in the way you describe. Unfortunately I don't think it's practical or likely to happen any time soon.

Vince