qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] High speed polling


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] High speed polling
Date: Wed, 15 Jun 2011 07:22:22 +0100

On Tue, Jun 14, 2011 at 11:32 PM, Clay Andreasen <address@hidden> wrote:
> I have a network device simulation that I am connecting to multiple
> instances of Qemu (nodes) via a shared memory queue.  It works pretty well
> as
> long as all of the nodes are initiating communication but when one node is
> passive, it must poll to get packets.  So far the fastest I have been able
> to
> get it to poll is about every 2M emulated clocks.
> This is with CONFIG_HIGH_RES_TIMERS and CONFIG_NO_HZ on the host.
> I also set MIN_TIMER_REARM_NS in qemu-timer.c to 100000.
> Is there some way to increase the polling rate by about an order of
> magnitude?

Without more details it's hard to say what is going on:

Running an x86 guest?  Are you using ./configure --enable-io-thread?
It sounds like you may not be using KVM?  How many vcpus are running
on the host in total compared to the number of logical CPUs on the
host?

You haven't given details on how you are polling in the guest.  Are
you running a polling loop in ring 0 or is the guest running a
full-blown OS and polling from userspace?

Why are you polling in the first place - to minimize latency?

Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]