From: "Niraj Tolia" Subject: Re: Problems with enabling hypervisor C and P-state control Date: Mon, 27 Oct 2008 11:01:04 -0700 Message-ID: <7e45e2ac0810271101h2a0177easea102be815888578@mail.gmail.com> References: <7e45e2ac0810220057w26b1ab45l8410c54346211d3f@mail.gmail.com> <49582C73AC36CC4C8C6C42390304E81C092722CF78@pdsmsx502.ccr.corp.intel.com> <7e45e2ac0810231649o7fd82c81ha09912cfa6a92b76@mail.gmail.com> <49582C73AC36CC4C8C6C42390304E81C092722D967@pdsmsx502.ccr.corp.intel.com> <7e45e2ac0810232145ob5f84bcs5c2aeb3e0b5de695@mail.gmail.com> <49582C73AC36CC4C8C6C42390304E81C0927508EC9@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: <49582C73AC36CC4C8C6C42390304E81C0927508EC9@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: "Liu, Jinsong" , "Tian, Kevin" , Xen Developers List-Id: xen-devel@lists.xenproject.org On Thu, Oct 23, 2008 at 10:59 PM, Yu, Ke wrote: > After discussing with Jinsong, we got the root cause. You are right, this is xen pm statistics logic issue. when the coordination type is SW_ANY, we only record the first CPU cpufreq change, the other 3 cores within the same dependency domain is ignored, so you only see one core changes every dependency domain. > > The attached patch fix this issue. could you please have a try? If it works in your platform, we will send out for applying in upstream. I just applied the patch and while xenpm might be doing the right thing, I am not completely sure. For example, if I launch a single VCPU VM, pin it to a core, and launch a CPU intensive task on it, ALL four cores on the socket are reported to switch into P0. However, from what I understand about this processor (Xeon E7330), only two of them should. Like vanilla Linux, the other two should be able to operate at independent voltage/frequency settings. Once again, I am not sure if this is xenpm's fault or if the underlying frequency control code isn't able to determine what CPUs need to switch frequency at the same time. Cheers, Niraj -- Niraj Tolia, Researcher, HP Labs http://www.hpl.hp.com/personal/Niraj_Tolia/