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

Re: [Xen-devel] Scheduler stats and some doubts


  • To: Marco Tizzoni <marco.tizzoni@xxxxxxxxx>
  • From: Jean Guyader <jean.guyader@xxxxxxxxx>
  • Date: Sun, 13 Sep 2009 02:27:19 +0100
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Sat, 12 Sep 2009 18:27:46 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=BqgGamwDoFMRgenOhKguIiEHnmHaSSvJKwIirzj4XNFi/gJ5Ir5C0MUraAPeD3QP1t H1uV+xu1Yua+ItYh9RWzvyRTENqWA9TM1iJmB1hFagMBgGCS6Ym5GQyjZbJv5AGZUHEy ilPqkyKrF0oGJ9cFq6a1wAVk/L0AoNu4WYa94=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi,

2009/9/12 Marco Tizzoni <marco.tizzoni@xxxxxxxxx>:
> Hello,
> someone can tell me how to enable scheduler statistics and how to display 
> them?
>
> I found this comment:
>
> ---------------------------------------
> /*
>  * CSCHED_STATS
>  *
>  * Manage very basic per-vCPU counters and stats.
>  *
>  * Useful for debugging live systems. The stats are displayed
>  * with runq dumps ('r' on the Xen console).
>  */
> #ifdef PERF_COUNTERS
> #define CSCHED_STATS
> #endif
> ---------------------------------------
>
> I've just enabled this in Rules.mk:
> ---------------------------------------
> verbose       ?= y
> perfc         ?= y
> perfc_arrays  ?= y
> ---------------------------------------
>
> now xenperf works but I don't know how to access the "Xen console".
>

The perf counters are a debug key. You can access the xen console via serial
by doing CTRL+A-CTRL+A, then h. You might need to enable debug
for perf counters.

You can also invoke a debug key using xm directly.

Jean

> Also, not related to this issue, I'm interested in accounting how many
> ticks the net backend driver spends in rx/tx.
> Can it make sense using the getrusage() function at start/end of
> net_rx_action()/net_tx_action() or it can lead to unconsistent
> accounting?
>
> Is there a better way?
>
> Any suggestions are welcome.
>
> Thanks in advance.
> Marco
>

_______________________________________________
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®.