Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753751Ab1FXIFo (ORCPT ); Fri, 24 Jun 2011 04:05:44 -0400 Received: from openfortress.nl ([213.189.19.244]:37392 "EHLO fame.vanrein.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752990Ab1FXIFk (ORCPT ); Fri, 24 Jun 2011 04:05:40 -0400 Date: Fri, 24 Jun 2011 08:05:35 +0000 From: Rick van Rein To: Craig Bergstrom Cc: "Luck, Tony" , Andi Kleen , Stefan Assmann , Matthew Garrett , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "akpm@linux-foundation.org" , "mingo@elte.hu" , "hpa@zytor.com" , "rick@vanrein.org" , "rdunlap@xenotime.net" Subject: Re: [PATCH v2 0/3] support for broken memory modules (BadRAM) Message-ID: <20110624080535.GA19966@phantom.vanrein.org> References: <1308741534-6846-1-git-send-email-sassmann@kpanic.de> <20110623133950.GB28333@srcf.ucam.org> <4E0348E0.7050808@kpanic.de> <20110623141222.GA30003@srcf.ucam.org> <4E035DD1.1030603@kpanic.de> <20110623170014.GN3263@one.firstfloor.org> <987664A83D2D224EAE907B061CE93D5301E938F2FD@orsmsx505.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-My-Coolest-Hack: http://rick.vanrein.org/linux/badram -> Exploit broken RAM User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1288 Lines: 33 Hi Craig, > We (Google) are working on a data-driven answer for this question. I know > that there has been some analysis on this topic on the past, but I don't > want to speculate until we've had some time to put all the pieces together. The easiest way to do this could be to take the algorithm from Memtest86 and apply it to your data, to see if it finds suitable patterns for the cases tried. By counting bits set to zero in the masks, you could then determine how 'tight' they are. A mask with all-ones covers one memory page; each zero bit in the mask (outside of the CPU's page size) doubles the number of pages covered. You can ignore the address over which the mask is applied, although you would then be assuming that all the pages covered by the mask are indeed filled with RAM. You would want to add the figures for the different masks. I am very curious about your findings. Independently of those, I am in favour of a patch that enables longer e820 tables if it has no further impact on speed or space. Cheers, -Rick -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/