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 network tests with xenoprofile this time

To: "Santos, Jose Renato G" <joserenato.santos@xxxxxx>
Subject: Re: [Xen-devel] More network tests with xenoprofile this time
From: Andrew Theurer <habanero@xxxxxxxxxx>
Date: Tue, 21 Jun 2005 21:22:20 -0500
Cc: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, "Turner, Yoshio" <yoshio_turner@xxxxxx>, Aravind Menon <aravind.menon@xxxxxxx>, G John Janakiraman <john@xxxxxxxxxxxxxxxxxxx>, William Cohen <wcohen@xxxxxxxxxx>
Delivery-date: Wed, 22 Jun 2005 02:21:24 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <6C21311CEE34E049B74CC0EF339464B924B3E0@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: <6C21311CEE34E049B74CC0EF339464B924B3E0@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 0.8 (Windows/20040913)
FWIW, I took a look at find_domain_by_id() and swapped out the rw lock with a spin lock for domlist_lock. The time spent in the this function was reduced by 18%. This function was certainly not the "hottest" one I recorded while running netperf, but every little bit helps I suppose. Below are before/after xenoprofile snippets:

before:

547036   6.32      xen-unstable-syms mask_and_ack_level_ioapic_irq
510448   5.90      xen-unstable-syms end_level_ioapic_irq
463386   5.35 vmlinux-2.6.11-xen0-up      net_tx_action
371072   4.29                 tg3.ko      tg3_interrupt
261341   3.02      xen-unstable-syms  find_domain_by_id
237601   2.75      xen-unstable-syms          hypercall
228649   2.64 vmlinux-2.6.11-xen0-up         nf_iterate
215634   2.49      xen-unstable-syms do_update_va_mapping
214077   2.47 vmlinux-2.6.11-xen0-up      net_rx_action

after:

549276   6.35      xen-unstable-syms mask_and_ack_level_ioapic_irq
511693   5.91      xen-unstable-syms end_level_ioapic_irq
466873   5.39 vmlinux-2.6.11-xen0-up      net_tx_action
375702   4.34                 tg3.ko      tg3_interrupt
239219   2.76      xen-unstable-syms          hypercall
230641   2.67 vmlinux-2.6.11-xen0-up         nf_iterate
220480   2.55      xen-unstable-syms do_update_va_mapping
217472   2.51                 tg3.ko             tg3_rx
217029   2.51 vmlinux-2.6.11-xen0-up      net_rx_action
214271   2.48      xen-unstable-syms  find_domain_by_id

Has anyone thought about using read-copy-update in Xen?

I plan on looking at the two irq functions next.

-Andrew





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