From: Keir Fraser Subject: Re: Memory allocation in NUMA system Date: Fri, 25 Jul 2008 08:55:33 +0100 Message-ID: References: <4889860A.1040201@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4889860A.1040201@intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Yang, Xiaowei" Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 25/7/08 08:51, "Yang, Xiaowei" wrote: >> How about by default we guarantee no more than 25% of a node's memory is >> classed as 'DMA memory', and we reduce the DMA address width variable in Xen >> to ensure that? >> >> So, in your example, we would reduce dma_bitsize to 30. >> >> -- Keir >> >> > Yes, a good suggestion! Indeed the only reason we still have dma_bitsize is to break the select-NUMA-node-first memory allocation search strategy. So tweaking the dma_bitsize approach further to strike the correct NUMA-vs-DMA balance does seem the right thing to do. Feel free to work up a patch. -- Keir