From: Keir Fraser Subject: Re: [PATCH] permute with 2MB chunk Date: Wed, 19 Mar 2008 10:08:44 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Cui, Dexuan" , Jean Guyader , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 19/3/08 09:42, "Cui, Dexuan" wrote: > However, I still have questions: > For the bug, I remember the slowness > 1) Only happens to HVM guest (PV-guest has not this issue); -- any > difference between HVM and PV here?? > 2) Only happens to S/R and local non-live migration, but doesn't happen to > local live migration. -- any difference between live and non-live here?? > And when we suffer from the slowness, "local live migrating" the HVM guest can > make the performance back to normal! > > Can you reproduce these in your side? If so, can you help to explain them? We also tested building an HVM guest with the permuted ordering of pages, versus reverse ordering, versus normal ordering. Only the permuted ordering showed the problem. We assume that the permute() function has an unfortunate interaction with the memory allocator in certain HVM guest OSes, causing poor cache utilisation. The fact that live migration made the bug go away can perhaps be explained by the fact that multiple rounds of page transmission add an extra layer of randomisation to page allocations at the receiver? -- Keir