WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] more profiling

To: James Harper <james.harper@xxxxxxxxxxxxxxxx>, Andy Grover <andy.grover@xxxxxxxxxx>
Subject: RE: [Xen-devel] more profiling
From: "Santos, Jose Renato G" <joserenato.santos@xxxxxx>
Date: Mon, 3 Mar 2008 19:24:43 +0000
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 03 Mar 2008 11:38:56 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D0131AF5D@trantor>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AEC6C66638C05B468B556EA548C1A77D0131AF31@trantor> <AEC6C66638C05B468B556EA548C1A77D0131AF34@trantor> <C7B67062D31B9E459128006BAAD0DC3D0753CEC544@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <AEC6C66638C05B468B556EA548C1A77D0131AF35@trantor> <C7B67062D31B9E459128006BAAD0DC3D0753D4CB61@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <AEC6C66638C05B468B556EA548C1A77D0131AF5D@trantor>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Ach6wj+maafveOiCSzitY54bCV1UyQAFngGQAAfOF9AACjpIIABt/jjgAAH8D7AAIJCP4A==
Thread-topic: [Xen-devel] more profiling
> -----Original Message-----
> From: James Harper [mailto:james.harper@xxxxxxxxxxxxxxxx]
> Sent: Sunday, March 02, 2008 7:48 PM
> To: Santos, Jose Renato G; Andy Grover
> Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
> Subject: RE: [Xen-devel] more profiling
>
> > In my experiments I also see overheads on issuing and
> revoking grants
> > due to the use of atomic operations, but these are much
> less expensive
> > than copying an entire packet as you do on the TX path. I
> am surprised
> > with your results.
> > Can you give more details about your configuration and how you are
> > comparing the cost of copy versus issuing grants on TX.
>
> I think you are right in saying that the issuing and revoking
> of grants is due to the use of atomic operations. Having
> looked into it some more, it looks like KeAcquireSpinlock
> (the windows lock operation) is fairly expensive.
>
> Under windows, it is the code that gets the next free ref
> that is protected by spinlocks. I believe that if we only get
> the ref once, but then reuse that ref over and over, then
> we'd get a lot better performace.
>

  Yes. Avoiding the spinlock should improve performance. Definetely, it should 
be a win on the RX path. But is it worth in the TX path, if you now have to 
copy the packet? Do you have experimental data showing that copying is better 
than the spinlock? I don't have much experience with Windows but I think this 
would be very surprising...

Regards

Renato

> James
>

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

<Prev in Thread] Current Thread [Next in Thread>