From: Keir Fraser Subject: Re: [PATCH] scrub pages on guest termination Date: Fri, 23 May 2008 17:04:58 +0100 Message-ID: References: <4836DC02.3050407@virtualiron.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0415512615==" Return-path: In-Reply-To: <4836DC02.3050407@virtualiron.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ben Guthro , xen-devel Cc: Robert Phillips List-Id: xen-devel@lists.xenproject.org > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --===============0415512615== Content-type: multipart/alternative; boundary="B_3294407135_26195233" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3294407135_26195233 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable The aim of the loop was to scrub enough pages in a batch that lock contention is kept tolerably low. Even if 16 pages is not sufficient for that, I=B9m surprised a =8Cnode=B9 (you mean a whole system, presumably?) would appear to lock up. Maybe pages would be scrubbed slower than we=B9d like, but still CPUs should be able to get the spinlock often enough to evaluate whether they have spent 1ms in the loop and hence get out of there. What sort of system were you seeing the lockup on? Does it have very many physical CPUs? -- Keir On 23/5/08 16:00, "Ben Guthro" wrote: > This patch solves the following problem. When a large VS terminates, the= node > locks > up. The node locks up because the page_scrub_kick routine sends a softirq= to > all processors instructing them to run the page scrub code. There they > interfere > with each other as they serialize behind the page_scrub_lock. --B_3294407135_26195233 Content-type: text/html; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Re: [Xen-devel] [PATCH] scrub pages on guest termination The a= im of the loop was to scrub enough pages in a batch that lock contention is = kept tolerably low. Even if 16 pages is not sufficient for that, I’m s= urprised a ‘node’ (you mean a whole system, presumably?) would a= ppear to lock up. Maybe pages would be scrubbed slower than we’d like,= but still CPUs should be able to get the spinlock often enough to evaluate = whether they have spent 1ms in the loop and hence get out of there.

What sort of system were you seeing the lockup on? Does it have very many p= hysical CPUs?

 -- Keir

On 23/5/08 16:00, "Ben Guthro" <bguthro@virtualiron.com> wr= ote:

This patch solves the following problem.  When a large VS terminates, = the node locks
up. The node locks up because the page_scrub_kick routine sends a softirq t= o
all processors instructing them to run the page scrub code.  There the= y interfere
with each other as they serialize behind the page_scrub_lock.

--B_3294407135_26195233-- --===============0415512615== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0415512615==--