From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752988AbZEIJzZ (ORCPT ); Sat, 9 May 2009 05:55:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751139AbZEIJzM (ORCPT ); Sat, 9 May 2009 05:55:12 -0400 Received: from one.firstfloor.org ([213.235.205.2]:54233 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751137AbZEIJzK (ORCPT ); Sat, 9 May 2009 05:55:10 -0400 Date: Sat, 9 May 2009 12:00:08 +0200 From: Andi Kleen To: "H. Peter Anvin" Cc: Andi Kleen , Jan Beulich , mingo@elte.hu, tglx@linutronix.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86-64: improve e820_search_gap() Message-ID: <20090509100008.GD23223@one.firstfloor.org> References: <4A0199B8.76EA.0078.0@novell.com> <4A03BC1A.9060605@zytor.com> <4A03F016.76EA.0078.0@novell.com> <874ovvo0wo.fsf@basil.nowhere.org> <4A0492EA.6080403@zytor.com> <20090508205347.GC23223@one.firstfloor.org> <4A049B99.4000402@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A049B99.4000402@zytor.com> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > However, as far as querying SRAT, I don't like the idea of spreading the > knowledge of the system memory map out between a bunch of different > places, each of which have a little piece of the puzzle. It puts a huge > onus on the user to know what mechanisms are actually available, and > really makes a shitty interface. AFAIK another popular OS always combines mappings from all sources (e820, SRAT, PCI, PNP, ACPI etc.) in the query before allocating anything. Something like that might be a reasonable long term direction for Linux too, but it's probably also a can of worms to handle the conflicts between the various sources (e.g. e820 reserves a lot of things in other sources too). It would be a rather large change. Maybe that would handle the systems I thought of above. -Andi -- ak@linux.intel.com -- Speaking for myself only.