From: Keir Fraser Subject: Re: [PATCH/RFC] Wrong account for cpus other than 0 on hotplug Date: Fri, 13 Oct 2006 21:33:53 +0100 Message-ID: References: <20061013175025.GA13539@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20061013175025.GA13539@redhat.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: Glauber de Oliveira Costa , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 13/10/06 6:50 pm, "Glauber de Oliveira Costa" wrote: > Is a x86_64 system with multiple CPUs, process accounting is done wrong after > one cpu goes off and on again (i.e.: a CPU bounded process is running > but gets 0% cpu for a time, until situation becomes normal again). > > The following patch is a first attempt to fix it. The struct keeps > zeroed after HYPERVISOR_vcpu_op() is called, thus leading to wrong > results. Accounting seems to be done right without it. However, I'm not > 100 % sure we can just poke it out. Comments on this are very welcome. This patch turns off the missing ticks accounting entirely, as the runstate_info structure will never be updated. Are you sure this appears to be an x86_64-specific issue? -- Keir