Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933623AbYBBK4y (ORCPT ); Sat, 2 Feb 2008 05:56:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1763565AbYBBK4P (ORCPT ); Sat, 2 Feb 2008 05:56:15 -0500 Received: from one.firstfloor.org ([213.235.205.2]:43631 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763551AbYBBK4L (ORCPT ); Sat, 2 Feb 2008 05:56:11 -0500 Date: Sat, 2 Feb 2008 12:30:45 +0100 From: Andi Kleen To: KOSAKI Motohiro Cc: Andi Kleen , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Christoph Lameter , Lee.Schermerhorn@hp.com Subject: Re: [2.6.24-rc8-mm1][regression?] numactl --interleave=all doesn't works on memoryless node. Message-ID: <20080202113045.GA29441@one.firstfloor.org> References: <20080202165054.F491.KOSAKI.MOTOHIRO@jp.fujitsu.com> <20080202090914.GA27723@one.firstfloor.org> <20080202180536.F494.KOSAKI.MOTOHIRO@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080202180536.F494.KOSAKI.MOTOHIRO@jp.fujitsu.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 Content-Length: 1154 Lines: 31 > I have 1 simple question. > Why do libnuma generate bitpattern of all bit on instead > check /sys/devices/system/node/has_high_memory nor > check /sys/devices/system/node/online? > > Do you know it? It's far simpler and cheaper (sysfs is expensive) to do this in the kernel and besides the kernel can do more easily keep up with dynamic topology changes. > > and I made simple patch that has_high_memory exposed however CONFIG_HIGHMEM disabled. > if CONFIG_HIGHMEM disabled, the has_high_memory file show > the same as the has_normal_memory. > > may be, userland process should check has_high_memory file. To be honest I've never tried seriously to make 32bit NUMA policy (with highmem) work well; just kept it at a "should not break" level. That is because with highmem the kernel's choices at placing memory are seriously limited anyways so I doubt 32bit NUMA will ever work very well. -Andi -- 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/