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

[Xen-devel] RE: Rather slow time of Pin in Windows with GPL PV driver


  • To: "MaoXiaoyun" <tinnycloud@xxxxxxxxxxx>
  • From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
  • Date: Thu, 10 Mar 2011 17:27:06 +1100
  • Cc: xen devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 09 Mar 2011 22:28:06 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Acve3kAiJZJduml+Qr66YN40iA+eswAAJ3Mg
  • Thread-topic: Rather slow time of Pin in Windows with GPL PV driver

> 
> It looks like KeSetTargetProcessorDpc(&xi->rx_dpc, 0) set the rx_dpc
in VCPU0
> only,
> and in fact interrput for xennet are distributed across all VCPUS.
> 
> By using IntFiltr from http://support.microsoft.com/kb/252867
> to set interrupt affinity to VCPU0 only, without
KeSetTargetProcessorDpc
> commentted, we get quite stable ping time too., which is less than 1ms
> 
> So I think this is the problem.
>  KeSetTargetProcessorDpc should be discard.
> 

Ah. So when the cpu for the irq is different to the cpu for the dpc, you
get the extra delay. That makes sense. It would also explain why XP
didn't seem to see the same problem as I think the IRQ is directed to
CPU0 there... I've been looking for the docs on what's different and
can't find anything.

If you can confirm that you have no problems with removing
KeSetTargetProcessorDpc I'll remove it, at least for >W2003 builds until
I find the docs about what NDIS expects to do on what CPU.

James



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.