From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Liu Subject: Re: Interesting observation with network event notification and batching Date: Sun, 16 Jun 2013 13:46:23 +0100 Message-ID: <20130616124623.GB31044@zion.uk.xensource.com> References: <20130612101451.GF2765@zion.uk.xensource.com> <20130614185303.GC21280@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20130614185303.GC21280@phenom.dumpdata.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Konrad Rzeszutek Wilk Cc: Wei Liu , ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, xen-devel@lists.xen.org, annie.li@oracle.com, andrew.bennieston@citrix.com List-Id: xen-devel@lists.xenproject.org On Fri, Jun 14, 2013 at 02:53:03PM -0400, Konrad Rzeszutek Wilk wrote: [...]> > How do you get it to do more HYPERVISR_xen_version? Did you just add > a (for i = 1024; i>0;i--) hypervisor_yield(); > Here are the figures to replace HYPERVISOR_xen_version(0, NULL) with HYPERVISOR_sched_op(SCHEDOP_yield, NULL). 64 HYPERVISOR_sched_op(SCHEDOP_yield, NULL), throughput 5.15G/s, average slots per tx 25 128 HYPERVISOR_sched_op(SCHEDOP_yield, NULL), throughput 7.75G/s, average slots per tx 26 512 HYPERVISOR_sched_op(SCHEDOP_yield, NULL), throughput 1.74G/s, average slots per tx 18 1024 HYPERVISOR_sched_op(SCHEDOP_yield, NULL), throughput 998M/s, average slots per tx 18 Please note that Dom0 and DomU runs on different PCPUs. I think this kind of behavior has something to do with scheduler. But down to the bottom we should really fix notification mechanism. Wei.