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-ia64-devel

RE: [Xen-devel] unnecessary VCPU migration happens again

To: "Emmanuel Ackaouy" <ack@xxxxxxxxxxxxx>
Subject: RE: [Xen-devel] unnecessary VCPU migration happens again
From: "Xu, Anthony" <anthony.xu@xxxxxxxxx>
Date: Wed, 20 Dec 2006 11:26:41 +0800
Cc: "Petersson, Mats" <Mats.Petersson@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 19 Dec 2006 19:26:45 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AccjTAvsACaOiE63Rbmop28y8XrlowAmdMcA
Thread-topic: [Xen-devel] unnecessary VCPU migration happens again
Emmanuel Ackaouy write on 2006年12月19日 17:00:
> On Dec 19, 2006, at 8:02, Xu, Anthony wrote:
> Can you dump the credit scheduler stat counter before and after you
> run the
> benchmark? (^A^A^A on the dom0/hypervisor console to switch to the
> hypervisor
> and then type the "r" key to dump scheduler info). That along with an
> idea of the
> elapsed time between the two stat samples would be handy.

Hi Emmanuel,

I got the dump scheduler info.

The evironment is,
Two sockects, two cores per sockect.
Dom0 is UP,
DomVTI is 2 VCPU SMP,
There are 4 physical CPUs,
There are 3 VCPUs totally.

We run Kernel Build on VTI domain.
>make -j3

Before running KB

(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to 
Xen).
(XEN) *** Serial input -> Xen (type 'CTRL-a' three times to switch input to 
DOM0).
(XEN) Scheduler: SMP Credit Scheduler (credit)
(XEN) info:
(XEN)   ncpus              = 4
(XEN)   master             = 0
(XEN)   credit             = 1200
(XEN)   credit balance     = 0
(XEN)   weight             = 0
(XEN)   runq_sort          = 12233
(XEN)   default-weight     = 256
(XEN)   msecs per tick     = 10ms
(XEN)   credits per tick   = 100
(XEN)   ticks per tslice   = 3
(XEN)   ticks per acct     = 3
(XEN) idlers: 0xf
(XEN) stats:
(XEN)   schedule                       = 4521191
(XEN)   acct_run                       = 12233
(XEN)   acct_no_work                   = 26827
(XEN)   acct_balance                   = 7
(XEN)   acct_reorder                   = 0
(XEN)   acct_min_credit                = 0
(XEN)   acct_vcpu_active               = 4197
(XEN)   acct_vcpu_idle                 = 4197
(XEN)   vcpu_sleep                     = 16
(XEN)   vcpu_wake_running              = 140923
(XEN)   vcpu_wake_onrunq               = 0
(XEN)   vcpu_wake_runnable             = 2016395
(XEN)   vcpu_wake_not_runnable         = 0
(XEN)   vcpu_park                      = 0
(XEN)   vcpu_unpark                    = 0
(XEN)   tickle_local_idler             = 2016206
(XEN)   tickle_local_over              = 2
(XEN)   tickle_local_under             = 39
(XEN)   tickle_local_other             = 0
(XEN)   tickle_idlers_none             = 0
(XEN)   tickle_idlers_some             = 204
(XEN)   load_balance_idle              = 2432213
(XEN)   load_balance_over              = 132
(XEN)   load_balance_other             = 0
(XEN)   steal_trylock_failed           = 12730
(XEN)   steal_peer_idle                = 1197122
(XEN)   migrate_queued                 = 169
(XEN)   migrate_running                = 213
(XEN)   dom_init                       = 4
(XEN)   dom_destroy                    = 1
(XEN)   vcpu_init                      = 9
(XEN)   vcpu_destroy                   = 2
(XEN) active vcpus:
(XEN) NOW=0x000001114A1FE784
(XEN) CPU[00]  tick=117181, sort=12233, sibling=0x1, core=0x5
(XEN)   run: [32767.0] pri=-64 flags=0 cpu=0
(XEN) CPU[01]  tick=117189, sort=12233, sibling=0x2, core=0xa
(XEN)   run: [32767.1] pri=-64 flags=0 cpu=1
(XEN) CPU[02]  tick=117196, sort=12233, sibling=0x4, core=0x5
(XEN)   run: [32767.2] pri=-64 flags=0 cpu=2
(XEN) CPU[03]  tick=117176, sort=12233, sibling=0x8, core=0xa
(XEN)   run: [32767.3] pri=-64 flags=0 cpu=3


After running KB

(XEN) Scheduler: SMP Credit Scheduler (credit)
(XEN) info:
(XEN)   ncpus              = 4
(XEN)   master             = 0
(XEN)   credit             = 1200
(XEN)   credit balance     = 0
(XEN)   weight             = 0
(XEN)   runq_sort          = 42999
(XEN)   default-weight     = 256
(XEN)   msecs per tick     = 10ms
(XEN)   credits per tick   = 100
(XEN)   ticks per tslice   = 3
(XEN)   ticks per acct     = 3
(XEN) idlers: 0xf
(XEN) stats:
(XEN)   schedule                       = 8233816
(XEN)   acct_run                       = 42999
(XEN)   acct_no_work                   = 28931
(XEN)   acct_balance                   = 47
(XEN)   acct_reorder                   = 0
(XEN)   acct_min_credit                = 0
(XEN)   acct_vcpu_active               = 9963
(XEN)   acct_vcpu_idle                 = 9963
(XEN)   vcpu_sleep                     = 16
(XEN)   vcpu_wake_running              = 240904
(XEN)   vcpu_wake_onrunq               = 0
(XEN)   vcpu_wake_runnable             = 3697995
(XEN)   vcpu_wake_not_runnable         = 0
(XEN)   vcpu_park                      = 0
(XEN)   vcpu_unpark                    = 0
(XEN)   tickle_local_idler             = 3697336
(XEN)   tickle_local_over              = 18
(XEN)   tickle_local_under             = 148
(XEN)   tickle_local_other             = 0
(XEN)   tickle_idlers_none             = 0
(XEN)   tickle_idlers_some             = 669
(XEN)   load_balance_idle              = 4394421
(XEN)   load_balance_over              = 503
(XEN)   load_balance_other             = 0
(XEN)   steal_trylock_failed           = 23268
(XEN)   steal_peer_idle                = 3014315
(XEN)   migrate_queued                 = 533
(XEN)   migrate_running                = 743
(XEN)   dom_init                       = 4
(XEN)   dom_destroy                    = 1
(XEN)   vcpu_init                      = 9
(XEN)   vcpu_destroy                   = 2
(XEN) active vcpus:
(XEN) NOW=0x000001F7232EB867
(XEN) CPU[00]  tick=215790, sort=42999, sibling=0x1, core=0x5
(XEN)   run: [32767.0] pri=-64 flags=0 cpu=0
(XEN) CPU[01]  tick=215843, sort=42999, sibling=0x2, core=0xa
(XEN)   run: [32767.1] pri=-64 flags=0 cpu=1
(XEN) CPU[02]  tick=215843, sort=42999, sibling=0x4, core=0x5
(XEN)   run: [32767.2] pri=-64 flags=0 cpu=2
(XEN) CPU[03]  tick=215775, sort=42999, sibling=0x8, core=0xa
(XEN)   run: [32767.3] pri=-64 flags=0 cpu=3



--Anthony

> 
> Cheers,
> Emmanuel.

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