From: Niraj Tolia Subject: Re: Impact of P/C-states on server power with xen-unstable Date: Tue, 10 Feb 2009 21:15:26 -0800 Message-ID: <7e45e2ac0902102115h36ad0797xef27b1306b3c6707@mail.gmail.com> References: <7e45e2ac0902101824n489976b1j7f17080b2f0f9bb6@mail.gmail.com> <0A882F4D99BBF6449D58E61AAFD7EDD606C4EBC7@pdsmsx502.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0479590667==" Return-path: In-Reply-To: <0A882F4D99BBF6449D58E61AAFD7EDD606C4EBC7@pdsmsx502.ccr.corp.intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Tian, Kevin" Cc: xen-devel List-Id: xen-devel@lists.xenproject.org --===============0479590667== Content-Type: multipart/alternative; boundary=000e0cd1518e0a6a6f04629db199 --000e0cd1518e0a6a6f04629db199 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Tue, Feb 10, 2009 at 6:40 PM, Tian, Kevin wrote: > Hi, Niraj > C1, i.e 'hlt', is always enabled regardless of cpuidle cmdline option > which is about other states deeper than C1. In your box, only C0 and C1 are > available as reported and thus it's reasonable for you to observe no > difference here. Try other box with more C-states available. :-) > > Ah. I was working under the assumption that C1 not showing up in xenpm's output meant that hlt wasn't being used but your explanation makes sense. Let me see if I can find other machines to experiment with. Cheers, Niraj > Thanks, > Kevin > > ------------------------------ > *From:* xen-devel-bounces@lists.xensource.com [mailto: > xen-devel-bounces@lists.xensource.com] *On Behalf Of *Niraj Tolia > *Sent:* Wednesday, February 11, 2009 10:24 AM > *To:* xen-devel > *Subject:* [Xen-devel] Impact of P/C-states on server power with > xen-unstable > > Hi, > > So, I was playing with C-states (with and without cpuidle on the xen > command line) on Intel Xeons and I discovered that turning C-state support > on/off makes no difference in terms of the power used by an idle server. > > The processor in question is a Xeon X5355 and, when cpuidle is enabled, > xenpm reports a C1 state and will show that the server is ~99.96% resident > in C1 when idle. However, the power consumed by a idle server in C1 is > virtually identical to that consumed by the server when C-state support is > disabled and the idle server is in either P1 or even P0 (both set manually > using the userspace governor and xenpm set-scaling-speed). Is the processor > doing something that is not exposed to Xen/xenpm? For what it's worth, the > power used by the server does show a significant difference between 100% > busy CPUs at P0 and P1. > > The relevant 'xm dmesg' output for the first core is included below. I am > running xen-unstable changeset 19104/31983c30c460. > > Cheers, > Niraj > > > (XEN) cpu0 cx acpi info: > (XEN) count = 1 > (XEN) flags: bm_cntl[0], bm_chk[0], has_cst[0], > (XEN) pwr_setup_done[1], bm_rld_set[0] > (XEN) states[0]: > (XEN) reg.space_id = 0x0 > (XEN) reg.bit_width = 0x0 > (XEN) reg.bit_offset = 0x0 > (XEN) reg.access_size = 0x0 > (XEN) reg.address = 0x0 > (XEN) type = 1 > (XEN) latency = 0 > (XEN) power = 0 > (XEN) dp(@0x00000000) > (XEN) ==cpu0== > (XEN) active state: C-1 > (XEN) max_cstate: C7 > (XEN) states: > (XEN) C1: type[C1] latency[000] usage[00000000] duration[0] > (XEN) C0: usage[00000000] duration[5708043748] > (XEN) xen_pminfo: @acpi_cpufreq_cpu_init,SYSTEM IO addr space > (XEN) CPU 0 initialization completed > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > > --000e0cd1518e0a6a6f04629db199 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Tue, Feb 10, 2009 at 6:40 PM, Tian, K= evin <kevin.ti= an@intel.com> wrote:
Hi, Niraj
    C1, i.e 'hlt', is always enabled re= gardless of=20 cpuidle cmdline option which is about other states deeper than C1. In your = box,=20 only C0 and C1 are available as reported and thus it's reasonable for y= ou to=20 observe no difference here. Try other box with more C-states available.=20 :-)
 

Ah. I wa= s working under the assumption that C1 not showing up in xenpm's output= meant that hlt wasn't being used but your explanation makes sense. Let= me see if I can find other machines to experiment with.

Cheers,
Niraj

 
Thanks,
Kevin


From: xen-devel-bounces@lists.xen= source.com=20 [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of = Niraj=20 Tolia
Sent: Wednesday, February 11, 2009 10:24 AM
To:= =20 xen-devel
Subject: [Xen-devel] Impact of P/C-states on server p= ower=20 with xen-unstable

Hi,

So, I was playing with C-states (with and without= =20 cpuidle on the xen command line) on Intel Xeons and I discovered that tur= ning=20 C-state support on/off makes no difference in terms of the power used by = an=20 idle server.

The processor in question is a Xeon X5355 and, when= =20 cpuidle is enabled, xenpm reports a C1 state and will show that the serve= r is=20 ~99.96% resident in C1 when idle. However, the power consumed by a idle s= erver=20 in C1 is virtually identical to that consumed by the server when C-state= =20 support is disabled and the idle server is in either P1 or even P0 (both = set=20 manually using the userspace governor and xenpm set-scaling-speed). Is th= e=20 processor doing something that is not exposed to Xen/xenpm? For what it&#= 39;s=20 worth, the power used by the server does show a significant difference be= tween=20 100% busy CPUs at P0 and P1.

The relevant 'xm dmesg' outpu= t for the=20 first core is included below. I am running xen-unstable changeset=20 19104/31983c30c460.

Cheers,
Niraj


(XEN= ) cpu0 cx=20 acpi info:
(XEN)     count =3D 1
(XEN)   &= nbsp;=20 flags: bm_cntl[0], bm_chk[0], has_cst[0],
(XEN)    =20        pwr_setup_done[1], bm_rld_set[0]
= (XEN)=20     states[0]:
(XEN)       &nb= sp;=20 reg.space_id =3D 0x0
(XEN)        =20 reg.bit_width =3D 0x0
(XEN)        =20 reg.bit_offset =3D 0x0
(XEN)        =20 reg.access_size =3D 0x0
(XEN)        =20 reg.address =3D 0x0
(XEN)        =20 type    =3D 1
(XEN)       &nbs= p;=20 latency =3D 0
(XEN)         power &= nbsp; =3D=20 0
(XEN)         dp(@0x00000000)
(XEN)= =20 =3D=3Dcpu0=3D=3D
(XEN) active state:      &nb= sp;=20 C-1
(XEN) max_cstate:        C7
(XEN)= =20 states:
(XEN)     C1:    type[C1]= =20 latency[000] usage[00000000] duration[0]
(XEN)    = =20 C0:    usage[00000000] duration[5708043748]
(XEN)=20 xen_pminfo: @acpi_cpufreq_cpu_init,SYSTEM IO addr space
(XEN) CPU 0=20 initialization completed


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.= com
http://l= ists.xensource.com/xen-devel

--000e0cd1518e0a6a6f04629db199-- --===============0479590667== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0479590667==--