From: "Niraj Tolia" Subject: Re: Problems with enabling hypervisor C and P-state control Date: Thu, 23 Oct 2008 16:49:56 -0700 Message-ID: <7e45e2ac0810231649o7fd82c81ha09912cfa6a92b76@mail.gmail.com> References: <7e45e2ac0810220057w26b1ab45l8410c54346211d3f@mail.gmail.com> <49582C73AC36CC4C8C6C42390304E81C092722CF78@pdsmsx502.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <49582C73AC36CC4C8C6C42390304E81C092722CF78@pdsmsx502.ccr.corp.intel.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Yu, Ke" Cc: Xen Developers List-Id: xen-devel@lists.xenproject.org On Wed, Oct 22, 2008 at 1:16 AM, Yu, Ke wrote: > You can simply add xen grub option "cpufreq=xen cpuidle" to enable C and P state, like the following: > kernel /boot/xen.gz dom0_mem=256M console=com1 cpufreq=xen cpuidle. > Hi Ke, This seems to "work" but xenpm doesn't seem to be giving me the right data. On a completely idle system, the residency time of state C1 is 0ms. xentrace does report a large number of transitions though but they seem to be in rapid succession. Is this correct? CPU4 320429115477 (+24006897) cpu_idle_exit [ C1 -> C0 ] CPU4 320429118141 (+ 2664) cpu_idle_entry [ C0 -> C1 ] CPU4 320437500021 (+ 8381880) cpu_idle_exit [ C1 -> C0 ] CPU4 320437505493 (+ 5472) cpu_idle_entry [ C0 -> C1 ] CPU4 320453123229 (+15617736) cpu_idle_exit [ C1 -> C0 ] CPU4 320453125992 (+ 2763) cpu_idle_entry [ C0 -> C1 ] CPU4 320477132295 (+24006303) cpu_idle_exit [ C1 -> C0 ] CPU4 320477134968 (+ 2673) cpu_idle_entry [ C0 -> C1 ] Second, when I look at the P-state output (shown below), xenpm shows that the lowest P-state is only set on the first socket (this is a quad-core, quad-socket system). However, I have a feeling that this might be a problem with displaying the data rather than the underlying logic. Any ideas? # xenpm | grep '*' *P3 : freq [1599 MHz] *P3 : freq [1599 MHz] *P3 : freq [1599 MHz] *P3 : freq [1599 MHz] *P0 : freq [2398 MHz] *P0 : freq [2398 MHz] *P0 : freq [2398 MHz] *P0 : freq [2398 MHz] *P0 : freq [2398 MHz] *P0 : freq [2398 MHz] *P0 : freq [2398 MHz] *P0 : freq [2398 MHz] *P0 : freq [2398 MHz] *P0 : freq [2398 MHz] *P0 : freq [2398 MHz] *P0 : freq [2398 MHz] Cheers, Niraj