Re: [PATCH net-next v2 9/9] xen-netback: Aggregate TX unmap operations

2013-12-16 Thread Zoltan Kiss
On 13/12/13 15:44, Wei Liu wrote: On Thu, Dec 12, 2013 at 11:48:17PM +, Zoltan Kiss wrote: Unmapping causes TLB flushing, therefore we should make it in the largest possible batches. However we shouldn't starve the guest for too long. So if the guest has space for at least two big packets an

Re: [PATCH net-next v2 9/9] xen-netback: Aggregate TX unmap operations

2013-12-13 Thread Wei Liu
On Thu, Dec 12, 2013 at 11:48:17PM +, Zoltan Kiss wrote: > Unmapping causes TLB flushing, therefore we should make it in the largest > possible batches. However we shouldn't starve the guest for too long. So if > the guest has space for at least two big packets and we don't have at least a > qu

[PATCH net-next v2 9/9] xen-netback: Aggregate TX unmap operations

2013-12-12 Thread Zoltan Kiss
Unmapping causes TLB flushing, therefore we should make it in the largest possible batches. However we shouldn't starve the guest for too long. So if the guest has space for at least two big packets and we don't have at least a quarter ring to unmap, delay it for at most 1 milisec. Signed-off-by: