From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753633AbZJ1RP6 (ORCPT ); Wed, 28 Oct 2009 13:15:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752945AbZJ1RP5 (ORCPT ); Wed, 28 Oct 2009 13:15:57 -0400 Received: from g6t0184.atlanta.hp.com ([15.193.32.61]:33096 "EHLO g6t0184.atlanta.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752762AbZJ1RP4 (ORCPT ); Wed, 28 Oct 2009 13:15:56 -0400 Date: Wed, 28 Oct 2009 11:15:58 -0600 From: Alex Chiang To: David Rientjes Cc: Heiko Carstens , Andrew Morton , Gary Hade , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Badari Pulavarty , Martin Schwidefsky , Ingo Molnar Subject: Re: [PATCH v2 1/5] mm: add numa node symlink for memory section in sysfs Message-ID: <20091028171558.GB22743@ldl.fc.hp.com> References: <20091022040814.15705.95572.stgit@bob.kio> <20091022041510.15705.5410.stgit@bob.kio> <20091027195907.GJ14102@ldl.fc.hp.com> <20091028083137.GA24140@osiris.boeblingen.de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * David Rientjes : > On Wed, 28 Oct 2009, Heiko Carstens wrote: > > > The short answer is: s390 doesn't support NUMA, because the hardware doesn't > > tell us to which node (book in s390 terms) a memory range belongs to. > > > > Memory layout for a logical partition is striped: first x mbyte belong to > > node 0, next x mbyte belong to node 1, etc... > > > > Also, since there is always a hypervisor running below Linux I don't think > > it would make too much sense if we would know to which node a piece of > > memory belongs to: if the hypervisor decides to schedule a virtual cpu of > > a logical partition to a different node then what? > > > > Ok, so the patchset is a no-op for s390 since it only utilizes the > !CONFIG_NUMA code. Sounds good. > Alex, I think the safest thing to do in unregister_mem_sect_under_nodes() > is to iterate though the section pfns and remove links to the node_device > kobjs for all the distinct pfn_to_nid()'s that it encounters. Ok, I will respin. Thanks! /ac