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-bugs

[Xen-bugs] [Bug 1672] New: xenpm start, statistics displayed incorrectly

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 1672] New: xenpm start, statistics displayed incorrectly.
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Mon, 18 Oct 2010 19:32:01 -0700
Delivery-date: Mon, 18 Oct 2010 19:32:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-bugs-request@lists.xensource.com?subject=help>
List-id: Xen Bugzilla <xen-bugs.lists.xensource.com>
List-post: <mailto:xen-bugs@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bugs@xxxxxxxxxxxxxxxxxx
Sender: xen-bugs-bounces@xxxxxxxxxxxxxxxxxxx
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1672

           Summary: xenpm start, statistics displayed incorrectly.
           Product: Xen
           Version: unstable
          Platform: x86
        OS/Version: Linux-2.6
            Status: NEW
          Severity: major
          Priority: P2
         Component: Hypervisor
        AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
        ReportedBy: dkar4700@xxxxxxxxxxxxxxxxx


The processor is an Intel quad core processor, first three cores are running on
ondemand and the remaining core is running on powersave govenor. To get the
average cpu frequency â??xenpm start 5â?? command was executed ( Results are
list below ). Although the cpu 3 is running on lowest frequency which is P11
100%, the Avg Frequency is reported as 2199360 Hz. There is only one vm running
with 4 vcpus. All 4 cores are utilized evenly while stats were gathering.

1)If cpu 3 was running 100% on P11 state the average cpu frequency should be
around 1197000 ? ( If the reported figure is correct, could someone please shed
some light on how it is calculated )

2)The notation is also should also be on Hz not KHz on the average Freq ?

Please let me know if anymore information is necessary.

CPU3:   Residency(ms)           Avg Res(ms)
  C0    3525    (70.49%)        0.36
  C1    1060    (21.19%)        0.12
  C2    43      ( 0.87%)        0.23
  C3    372     ( 7.45%)        0.44

  P0    0       ( 0.00%)
  P1    0       ( 0.00%)
  P2    0       ( 0.00%)
  P3    0       ( 0.00%)
  P4    0       ( 0.00%)
  P5    0       ( 0.00%)
  P6    0       ( 0.00%)
  P7    0       ( 0.00%)
  P8    0       ( 0.00%)
  P9    0       ( 0.00%)
  P10   0       ( 0.00%)
  P11   3479    (100.00%)
  Avg freq      2199360 KHz

Related information.

uname -a
Linux 96 2.6.32-5-xen-686 #1 SMP Sat Sep 18 06:00:14 UTC 2010 i686 GNU/Linux

dpkg -l | grep -i xen
ii  libc6-xen                         2.11.2-6                    Embedded GNU
C Library: Shared libraries [Xen version]
ii  libxenstore3.0                    4.0.1-1                     Xenstore
communications library for Xen
ii  linux-image-2.6.32-5-xen-686      2.6.32-23                   Linux 2.6.32
for modern PCs, Xen dom0 support
ii  xen-hypervisor-4.0-amd64          4.0.1-1                     The Xen
Hypervisor on AMD64
ii  xen-tools                         4.2-1                       Tools to
manage Xen virtual servers
ii  xen-utils-4.0                     4.0.1-1                     XEN
administrative tools
ii  xen-utils-common                  4.0.0-1                     XEN
administrative tools - common files
ii  xenstore-utils                    4.0.1-1                     Xenstore
utilities for Xen


xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  2041     4     r-----     80.4
vm1                                          1   128     4     -b----   3618.2



xenpm start 5
Timeout set to 5 seconds
Start sampling, waiting for CTRL-C or SIGINT or SIGALARM signal ...
Elapsed time (ms): 5000

CPU0:   Residency(ms)           Avg Res(ms)
  C0    3492    (69.84%)        0.35
  C1    1025    (20.51%)        0.11
  C2    80      ( 1.60%)        0.39
  C3    402     ( 8.05%)        0.55

  P0    1696    (49.26%)
  P1    98      ( 2.87%)
  P2    124     ( 3.63%)
  P3    316     ( 9.18%)
  P4    123     ( 3.58%)
  P5    156     ( 4.55%)
  P6    184     ( 5.36%)
  P7    91      ( 2.65%)
  P8    200     ( 5.83%)
  P9    72      ( 2.09%)
  P10   94      ( 2.73%)
  P11   284     ( 8.27%)
  Avg freq      2224640 KHz

CPU1:   Residency(ms)           Avg Res(ms)
  C0    3534    (70.68%)        0.35
  C1    1057    (21.14%)        0.11
  C2    104     ( 2.09%)        0.52
  C3    304     ( 6.09%)        0.45

  P0    0       ( 0.00%)
  P1    0       ( 0.00%)
  P2    0       ( 0.00%)
  P3    0       ( 0.00%)
  P4    0       ( 0.00%)
  P5    0       ( 0.00%)
  P6    0       ( 0.00%)
  P7    0       ( 0.00%)
  P8    0       ( 0.00%)
  P9    0       ( 0.00%)
  P10   0       ( 0.00%)
  P11   3489    (100.00%)
  Avg freq      2199360 KHz

CPU2:   Residency(ms)           Avg Res(ms)
  C0    3510    (70.18%)        0.35
  C1    1130    (22.60%)        0.12
  C2    50      ( 1.01%)        0.26
  C3    310     ( 6.22%)        0.42

  P0    0       ( 0.00%)
  P1    0       ( 0.00%)
  P2    0       ( 0.00%)
  P3    0       ( 0.00%)
  P4    0       ( 0.00%)
  P5    0       ( 0.00%)
  P6    0       ( 0.00%)
  P7    0       ( 0.00%)
  P8    0       ( 0.00%)
  P9    0       ( 0.00%)
  P10   0       ( 0.00%)
  P11   3464    (100.00%)
  Avg freq      2199360 KHz

CPU3:   Residency(ms)           Avg Res(ms)
  C0    3525    (70.49%)        0.36
  C1    1060    (21.19%)        0.12
  C2    43      ( 0.87%)        0.23
  C3    372     ( 7.45%)        0.44

  P0    0       ( 0.00%)
  P1    0       ( 0.00%)
  P2    0       ( 0.00%)
  P3    0       ( 0.00%)
  P4    0       ( 0.00%)
  P5    0       ( 0.00%)
  P6    0       ( 0.00%)
  P7    0       ( 0.00%)
  P8    0       ( 0.00%)
  P9    0       ( 0.00%)
  P10   0       ( 0.00%)
  P11   3479    (100.00%)
  Avg freq      2199360 KHz

cat /proc/cpuinfo 
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 30
model name      : Intel(R) Xeon(R) CPU           X3440  @ 2.53GHz
stepping        : 5
cpu MHz         : 2527.012
cache size      : 8192 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat clflush
acpi mmx fxsr sse sse2 ss ht nx constant_tsc nonstop_tsc aperfmperf pni est
ssse3 sse4_1 sse4_2 popcnt hypervisor ida
bogomips        : 5054.02
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 30
model name      : Intel(R) Xeon(R) CPU           X3440  @ 2.53GHz
stepping        : 5
cpu MHz         : 2527.012
cache size      : 8192 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat clflush
acpi mmx fxsr sse sse2 ss ht nx constant_tsc nonstop_tsc aperfmperf pni est
ssse3 sse4_1 sse4_2 popcnt hypervisor ida
bogomips        : 5054.02
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 2
vendor_id       : GenuineIntel
cpu family      : 6
model           : 30
model name      : Intel(R) Xeon(R) CPU           X3440  @ 2.53GHz
stepping        : 5
cpu MHz         : 2527.012
cache size      : 8192 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat clflush
acpi mmx fxsr sse sse2 ss ht nx constant_tsc nonstop_tsc aperfmperf pni est
ssse3 sse4_1 sse4_2 popcnt hypervisor ida
bogomips        : 5054.02
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 3
vendor_id       : GenuineIntel
cpu family      : 6
model           : 30
model name      : Intel(R) Xeon(R) CPU           X3440  @ 2.53GHz
stepping        : 5
cpu MHz         : 2527.012
cache size      : 8192 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat clflush
acpi mmx fxsr sse sse2 ss ht nx constant_tsc nonstop_tsc aperfmperf pni est
ssse3 sse4_1 sse4_2 popcnt hypervisor ida
bogomips        : 5054.02
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:




xen dmesg
-bash: xen: command not found
root@96:/etc/xen# xm dmesg
(XEN) Xen version 4.0.1 (Debian 4.0.1-1) (waldi@xxxxxxxxxx) (gcc version 4.4.5
20100728 (prerelease) (Debian 4.4.4-8) ) Fri Sep  3 15:18:21 UTC 2010
(XEN) Bootloader: GRUB 1.98+20100804-4
(XEN) Command line: placeholder
(XEN) Video information:
(XEN)  VGA is text mode 80x25, font 8x16
(XEN)  VBE/DDC methods: V2; EDID transfer time: 1 seconds
(XEN) Disc information:
(XEN)  Found 1 MBR signatures
(XEN)  Found 1 EDD information structures
(XEN) Xen-e820 RAM map:
(XEN)  0000000000000000 - 000000000009c000 (usable)
(XEN)  000000000009c000 - 00000000000a0000 (reserved)
(XEN)  00000000000e0000 - 0000000000100000 (reserved)
(XEN)  0000000000100000 - 000000007dd83000 (usable)
(XEN)  000000007dd83000 - 000000007de33000 (reserved)
(XEN)  000000007de33000 - 000000007f68f000 (usable)
(XEN)  000000007f68f000 - 000000007f6df000 (reserved)
(XEN)  000000007f6df000 - 000000007f7df000 (ACPI NVS)
(XEN)  000000007f7df000 - 000000007f7ff000 (ACPI data)
(XEN)  000000007f7ff000 - 000000007f800000 (usable)
(XEN)  000000007f800000 - 0000000080000000 (reserved)
(XEN)  00000000ff800000 - 0000000100000000 (reserved)
(XEN)  0000000100000000 - 0000000180000000 (usable)
(XEN) ACPI: RSDP 000FDFD0, 0024 (r2 IBM   )
(XEN) ACPI: XSDT 7F7FE120, 007C (r1 IBM    FOXHOLLW        0       1000013)
(XEN) ACPI: FACP 7F7FB000, 00F4 (r4 IBM    FOXHOLLW        0 IBM   1000013)
(XEN) ACPI: DSDT 7F7F8000, 2765 (r1 IBM    FOXHOLLW        3 IBM   1000013)
(XEN) ACPI: FACS 7F712000, 0040
(XEN) ACPI: TCPA 7F7FD000, 0064 (r0                        0             0)
(XEN) ACPI: APIC 7F7F7000, 00D2 (r2 IBM    FOXHOLLW        0 IBM   1000013)
(XEN) ACPI: MCFG 7F7F6000, 003C (r1 IBM    FOXHOLLW        1 IBM   1000013)
(XEN) ACPI: SLIC 7F7F5000, 0176 (r1 IBM    FOXHOLLW        0 IBM   1000013)
(XEN) ACPI: HPET 7F7F4000, 0038 (r1 IBM    FOXHOLLW        1 IBM   1000013)
(XEN) ACPI: SSDT 7F7F3000, 0113 (r2 IBM    CPUSCOPE     4000 IBM   1000013)
(XEN) ACPI: SSDT 7F7F2000, 084C (r2 IBM    PSTATEPM     4000 IBM   1000013)
(XEN) ACPI: SSDT 7F7F1000, 0362 (r2 IBM    CPUCSTAT     4000 IBM   1000013)
(XEN) ACPI: ERST 7F7F0000, 0230 (r1 IBM    FOXHOLLW        1 IBM   1000013)
(XEN) ACPI: DMAR 7F7EF000, 0068 (r1 IBM    FOXHOLLW        1 IBM   1000013)
(XEN) System RAM: 4085MB (4183536kB)
(XEN) Domain heap initialised
(XEN) Processor #0 7:14 APIC version 21
(XEN) Processor #2 7:14 APIC version 21
(XEN) Processor #4 7:14 APIC version 21
(XEN) Processor #6 7:14 APIC version 21
(XEN) IOAPIC[0]: apic_id 8, version 32, address 0xfec00000, GSI 0-23
(XEN) Enabling APIC mode:  Flat.  Using 1 I/O APICs
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Detected 2527.012 MHz processor.
(XEN) Initing memory sharing.
(XEN) VMX: Supported advanced features:
(XEN)  - APIC MMIO access virtualisation
(XEN)  - APIC TPR shadow
(XEN)  - Extended Page Tables (EPT)
(XEN)  - Virtual-Processor Identifiers (VPID)
(XEN)  - Virtual NMI
(XEN)  - MSR direct-access bitmap
(XEN) EPT supports 2MB super page.
(XEN) HVM: ASIDs enabled.
(XEN) HVM: VMX enabled
(XEN) HVM: Hardware Assisted Paging detected.
(XEN) Intel VT-d Snoop Control supported.
(XEN) Intel VT-d DMA Passthrough not supported.
(XEN) Intel VT-d Queued Invalidation supported.
(XEN) Intel VT-d Interrupt Remapping not supported.
(XEN) I/O virtualisation enabled
(XEN)  - Dom0 mode: Relaxed
(XEN) Total of 4 processors activated.
(XEN) ENABLING IO-APIC IRQs
(XEN)  -> Using new ACK method
(XEN) TSC is reliable, synchronization unnecessary
(XEN) Platform timer appears to have unexpectedly wrapped 1 times.
(XEN) Platform timer is 14.318MHz HPET
(XEN) Allocated console ring of 16 KiB.
(XEN) Brought up 4 CPUs
(XEN) *** LOADING DOMAIN 0 ***
(XEN)  Xen  kernel: 64-bit, lsb, compat32
(XEN)  Dom0 kernel: 32-bit, PAE, lsb, paddr 0x1000000 -> 0x164c000
(XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN)  Dom0 alloc.:   0000000178000000->000000017c000000 (984443 pages to be
allocated)
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN)  Loaded kernel: 00000000c1000000->00000000c164c000
(XEN)  Init. ramdisk: 00000000c164c000->00000000c29fae00
(XEN)  Phys-Mach map: 00000000c29fb000->00000000c2dcc5ec
(XEN)  Start info:    00000000c2dcd000->00000000c2dcd4b4
(XEN)  Page tables:   00000000c2dce000->00000000c2dec000
(XEN)  Boot stack:    00000000c2dec000->00000000c2ded000
(XEN)  TOTAL:         00000000c0000000->00000000c3000000
(XEN)  ENTRY ADDRESS: 00000000c13fd000
(XEN) Dom0 has maximum 4 VCPUs
(XEN) Scrubbing Free RAM: .done.
(XEN) Xen trace buffers: disabled
(XEN) Std. Loglevel: Errors and warnings
(XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)
(XEN) Xen is relinquishing VGA console.
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to
Xen)
(XEN) Freed 176kB init memory.



xenpm get-cpufreq-para
cpu id               : 0
affected_cpus        : 0
cpuinfo frequency    : max [2528000] min [1197000] cur [1197000]
scaling_driver       : acpi-cpufreq
scaling_avail_gov    : userspace performance powersave ondemand
current_governor     : ondemand
  ondemand specific  :
    sampling_rate    : max [10000000] min [10000] cur [20000]
    up_threshold     : 80
    turbo mode       : enabled
scaling_avail_freq   : 2528000 2527000 2394000 2261000 2128000 1995000 1862000
1729000 1596000 1463000 1330000 *1197000
scaling frequency    : max [2528000] min [1197000] cur [1197000]

cpu id               : 1
affected_cpus        : 1
cpuinfo frequency    : max [2528000] min [1197000] cur [1197000]
scaling_driver       : acpi-cpufreq
scaling_avail_gov    : userspace performance powersave ondemand
current_governor     : powersave
scaling_avail_freq   : 2528000 2527000 2394000 2261000 2128000 1995000 1862000
1729000 1596000 1463000 1330000 *1197000
scaling frequency    : max [2528000] min [1197000] cur [1197000]

cpu id               : 2
affected_cpus        : 2
cpuinfo frequency    : max [2528000] min [1197000] cur [1197000]
scaling_driver       : acpi-cpufreq
scaling_avail_gov    : userspace performance powersave ondemand
current_governor     : powersave
scaling_avail_freq   : 2528000 2527000 2394000 2261000 2128000 1995000 1862000
1729000 1596000 1463000 1330000 *1197000
scaling frequency    : max [2528000] min [1197000] cur [1197000]

cpu id               : 3
affected_cpus        : 3
cpuinfo frequency    : max [2528000] min [1197000] cur [1197000]
scaling_driver       : acpi-cpufreq
scaling_avail_gov    : userspace performance powersave ondemand
current_governor     : powersave
scaling_avail_freq   : 2528000 2527000 2394000 2261000 2128000 1995000 1862000
1729000 1596000 1463000 1330000 *1197000
scaling frequency    : max [2528000] min [1197000] cur [1197000]


-- 
Configure bugmail: 
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-bugs] [Bug 1672] New: xenpm start, statistics displayed incorrectly., bugzilla-daemon <=