From: Keir Fraser Subject: Re: RFC: cpu frequency scaling Date: Thu, 26 Oct 2006 15:09:05 +0100 Message-ID: References: <907625E08839C4409CE5768403633E0B018E167E@sefsexmb1.amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <907625E08839C4409CE5768403633E0B018E167E@sefsexmb1.amd.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: "Petersson, Mats" , Rik van Riel Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 26/10/06 1:35 pm, "Petersson, Mats" wrote: > So you need to get the actual load of each physical CPU, then sort them > "per socket" and do any changes based on the highest (or lowest) load of > the actual socket. I'm not sure if all the necessary information is > available in Dom0 unless it's also running on all available cores - > however, neither am I sure if there's much point in pursuing the case > where all CPU's are NOT in Dom0... Allowing those cores that are not > Dom0-cores to have a driver-domain to control the speed would be > sensible solution - interesting things happen, however, if someone puts > core0 of a socket to Dom0, and Core1 of the same socket as DomU - you > can't really control that one even with a driver domain... We should state that as an assumption of the cpufreq domain (that it has a one-to-one correspondence between VCPUs and PCPUs). We liekly also need an interface to allow a domain to find out the 'topology' of its VCPUs, so that the cpufreq drivers know which VCPUs share a socket, etc. They could also work this out from cpuid in most cases I expect, but it's probably a better fit with the Linux code to provide a generic 'topology info' interface and people experimenting with NUMA will appreciate it too. -- Keir