Re: [net-next RFC V5 3/5] virtio: intorduce an API to set affinity for a virtqueue

2012-08-09 Thread Avi Kivity
On 08/09/2012 06:13 PM, Paolo Bonzini wrote: > Il 05/07/2012 12:29, Jason Wang ha scritto: >> Sometimes, virtio device need to configure irq affiniry hint to maximize the >> performance. Instead of just exposing the irq of a virtqueue, this patch >> introduce an API to set the affinity for a virtqu

Re: [net-next RFC V5 3/5] virtio: intorduce an API to set affinity for a virtqueue

2012-08-09 Thread Paolo Bonzini
Il 30/07/2012 08:27, Paolo Bonzini ha scritto: >> > Did you set the affinity manually in your experiments, or perhaps >> > there >> > is a difference between scsi and networking... (interrupt mitigation?) >> > >> > You need to run irqbalancer in guest to make it actually work. Do y

Re: [net-next RFC V5 3/5] virtio: intorduce an API to set affinity for a virtqueue

2012-08-09 Thread Paolo Bonzini
Il 05/07/2012 12:29, Jason Wang ha scritto: > Sometimes, virtio device need to configure irq affiniry hint to maximize the > performance. Instead of just exposing the irq of a virtqueue, this patch > introduce an API to set the affinity for a virtqueue. > > The api is best-effort, the affinity hin

Re: [net-next RFC V5 3/5] virtio: intorduce an API to set affinity for a virtqueue

2012-07-29 Thread Paolo Bonzini
Il 29/07/2012 22:40, Michael S. Tsirkin ha scritto: >> > Did you set the affinity manually in your experiments, or perhaps there >> > is a difference between scsi and networking... (interrupt mitigation?) > > You need to run irqbalancer in guest to make it actually work. Do you? Yes, of course, n

Re: [net-next RFC V5 3/5] virtio: intorduce an API to set affinity for a virtqueue

2012-07-29 Thread Michael S. Tsirkin
On Fri, Jul 27, 2012 at 04:38:11PM +0200, Paolo Bonzini wrote: > Il 05/07/2012 12:29, Jason Wang ha scritto: > > Sometimes, virtio device need to configure irq affiniry hint to maximize the > > performance. Instead of just exposing the irq of a virtqueue, this patch > > introduce an API to set the

Re: [net-next RFC V5 3/5] virtio: intorduce an API to set affinity for a virtqueue

2012-07-27 Thread Paolo Bonzini
Il 05/07/2012 12:29, Jason Wang ha scritto: > Sometimes, virtio device need to configure irq affiniry hint to maximize the > performance. Instead of just exposing the irq of a virtqueue, this patch > introduce an API to set the affinity for a virtqueue. > > The api is best-effort, the affinity hin

[net-next RFC V5 3/5] virtio: intorduce an API to set affinity for a virtqueue

2012-07-05 Thread Jason Wang
Sometimes, virtio device need to configure irq affiniry hint to maximize the performance. Instead of just exposing the irq of a virtqueue, this patch introduce an API to set the affinity for a virtqueue. The api is best-effort, the affinity hint may not be set as expected due to platform support,