From owner-freebsd-xen@FreeBSD.ORG Fri Dec 30 19:02:42 2011 Return-Path: Delivered-To: xen@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 677C61065687 for ; Fri, 30 Dec 2011 19:02:42 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout1-b.corp.bf1.yahoo.com (mrout1-b.corp.bf1.yahoo.com [98.139.253.104]) by mx1.freebsd.org (Postfix) with ESMTP id 1862F8FC0A for ; Fri, 30 Dec 2011 19:02:41 +0000 (UTC) Received: from [127.0.0.1] (proxy7.corp.yahoo.com [216.145.48.98]) by mrout1-b.corp.bf1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id pBUJ1HLj053628; Fri, 30 Dec 2011 11:01:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1325271678; bh=OMvKU6NnvKAXF+FvlUA3pDVQUjAO8d1UN5p3ZInK+1w=; h=Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date: Message-ID:Mime-Version:Content-Transfer-Encoding; b=JZtHAtzMXZuzAIlpf34tfrMjKQsSg/fvXwRmiTLswLk0hnp/Le8N425zYHISoYjAu 1dreXmubgZZK6VJA492JxqQmM9AYf5554HayU0C8T5BjJP7UvclPTGE05iVqWZpb8B kbwb5KFgIVj4pzJ62eB/bSiBcXXraHlvIWqpo0Yc= From: Sean Bruno To: Alan Cox In-Reply-To: <4EFCEF2D.4080007@rice.edu> References: <4EEB9CCE.6090701@rice.edu> <1324169806.3093.3.camel@hitfishpass-lx.corp.yahoo.com> <4EED4982.3080208@freebsd.org> <1324339762.3093.14.camel@hitfishpass-lx.corp.yahoo.com> <4EF04F3C.9010309@rice.edu> <1324387685.3093.28.camel@hitfishpass-lx.corp.yahoo.com> <4EF0D8D7.2060503@rice.edu> <4EF0EC1A.4010604@freebsd.org> <1324412718.12783.10.camel@hitfishpass-lx.corp.yahoo.com> <4EF245D1.2050503@rice.edu> <1324679157.17645.6.camel@hitfishpass-lx.corp.yahoo.com> <4EFA0313.6030105@rice.edu> <1325028241.17645.10.camel@hitfishpass-lx.corp.yahoo.com> <4EFCCC06.4020001@rice.edu> <1325197722.17645.14.camel@hitfishpass-lx.corp.yahoo.com> <4EFCEF2D.4080007@rice.edu> Content-Type: text/plain; charset="UTF-8" Date: Fri, 30 Dec 2011 11:01:17 -0800 Message-ID: <1325271677.17645.18.camel@hitfishpass-lx.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 (2.32.3-1.fc14) Content-Transfer-Encoding: 7bit Cc: Alan Cox , "xen@freebsd.org" Subject: Re: PV i386 patch X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2011 19:02:42 -0000 On Thu, 2011-12-29 at 14:52 -0800, Alan Cox wrote: > On 12/29/2011 16:28, Sean Bruno wrote: > > On Thu, 2011-12-29 at 12:22 -0800, Alan Cox wrote: > >> Please try this patch. It eliminates a race condition that might > >> actually account for some of the crashes in FreeBSD>= 9 on Xen. > >> > >> Alan > >> > > ref10-xen32.freebsd.org has this applied now. Looks ok to me? > > > > > I know that lmbench's bw_pipe program exercises the code path that I > changed if you want to give it a bit more testing. > > Alan > Ok, I ran "a thing" ... I have a lot of poking around to do in lmbench now. Thanks for pointing me at this. Cursory run with patch "xen-pmap.c" [sbruno@ref10-xen32 /usr/local/lib/lmbench/bin/i386-freebsd10.0]$ ./bw_pipe Pipe bandwidth: 892.52 MB/sec [sbruno@ref10-xen32 /usr/local/lib/lmbench/bin/i386-freebsd10.0]$ ./bw_pipe -N 5 Pipe bandwidth: 982.46 MB/sec [sbruno@ref10-xen32 /usr/local/lib/lmbench/bin/i386-freebsd10.0]$ ./bw_pipe -N 5 -P 2 Pipe bandwidth: 899.34 MB/sec Cursory run of vanilla-current: [sbruno@ref10-xen32 /usr/local/lib/lmbench/bin/i386-freebsd10.0]$ ./bw_pipe Pipe bandwidth: 984.37 MB/sec [sbruno@ref10-xen32 /usr/local/lib/lmbench/bin/i386-freebsd10.0]$ ./bw_pipe -N 5 Pipe bandwidth: 977.54 MB/sec [sbruno@ref10-xen32 /usr/local/lib/lmbench/bin/i386-freebsd10.0]$ ./bw_pipe -N 5 -P 2 Pipe bandwidth: 887.26 MB/sec [sbruno@ref10-xen32 /usr/local/lib/lmbench/bin/i386-freebsd10.0]$ uname -a FreeBSD ref10-xen32.freebsd.org 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r228971: Fri Dec 30 18:27:01 UTC 2011 sbruno@ref10-xen32.freebsd.org:/var/tmp/dumpster/scratch/sbruno-scratch/head/sys/XEN i386