WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

Re: [XenPPC] [PATCH] Flush the ERAT early for secondary CPUs

To: Amos Waterland <apw@xxxxxxxxxx>
Subject: Re: [XenPPC] [PATCH] Flush the ERAT early for secondary CPUs
From: Segher Boessenkool <segher@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 10 Nov 2006 03:55:26 +0100
Cc: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 09 Nov 2006 18:55:38 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20061109213538.GA32246@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20061109213538.GA32246@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
 p = probability of success = .997 (897 / 900)
 q = probability of failure = .003 (1.0 - .997)
 n = number of trials       = 2323
 X = number of successes    = 2323

Applying these to the binomial probability formula, we get:

P(2323) = 2323! / ((2323 - 2323)! * 2323!) * .997**2323 * .003** (2323-2323)
         = .0009307922

So we conclude that the probability that our trials with this patch
applied achieved exactly 2323 successes because of chance alone is . 0009.

Not prematurely rounding p to a useless precision gives you

        p**2323 ~ 0.000428

even.  And that just calculates the chance that 2323 tries all
succeed given that the chance for one to succeed is 897/900; it
doesn't compare two hypotheses at all.


Segher


_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel

<Prev in Thread] Current Thread [Next in Thread>