Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756994Ab1FXWXe (ORCPT ); Fri, 24 Jun 2011 18:23:34 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:36205 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754705Ab1FXWXd (ORCPT ); Fri, 24 Jun 2011 18:23:33 -0400 Date: Fri, 24 Jun 2011 15:23:10 -0700 From: Randy Dunlap To: pomac@vapor.com, linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, akpm , KAMEZAWA Hiroyuki Subject: Re: [BUG?] numa required on x86_64? Message-Id: <20110624152310.10803ffa.randy.dunlap@oracle.com> In-Reply-To: <1308952859.25830.8.camel@pi> References: <1308952859.25830.8.camel@pi> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Source-IP: rtcsinet21.oracle.com [66.248.204.29] X-CT-RefId: str=0001.0A090206.4E050E5B.003E:SCFSTAT5015188,ss=1,re=-4.000,fgs=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2263 Lines: 56 On Sat, 25 Jun 2011 00:00:58 +0200 Ian Kumlien wrote: > Hi all, > > Just found this when wanting to play with development kernels again. > Since there is no -gitXX snapshots anymore, I cloned the git =)... > > But, it failed to build properly with my config: > > mm/page_cgroup.c line 308: node_start_pfn and node_end_pfn is only > defined under NUMA on x86_64. > > The commit that changed the use of this was introduced recently while > the mmzone_64.h hasn't been changed since april. You should have cc-ed the commit Author (I did so). > commit 37573e8c718277103f61f03741bdc5606d31b07e > Author: KAMEZAWA Hiroyuki > Date: Wed Jun 15 15:08:42 2011 -0700 > > memcg: fix init_page_cgroup nid with sparsemem > > Commit 21a3c9646873 ("memcg: allocate memory cgroup structures in local > nodes") makes page_cgroup allocation as NUMA aware. But that caused a > problem https://bugzilla.kernel.org/show_bug.cgi?id=36192. > > The problem was getting a NID from invalid struct pages, which was not > initialized because it was out-of-node, out of [node_start_pfn, > node_end_pfn) > > Now, with sparsemem, page_cgroup_init scans pfn from 0 to max_pfn. But > this may scan a pfn which is not on any node and can access memmap which > is not initialized. > > This makes page_cgroup_init() for SPARSEMEM node aware and remove a code > to get nid from page->flags. (Then, we'll use valid NID always.) > > [akpm@linux-foundation.org: try to fix up comments] > Signed-off-by: KAMEZAWA Hiroyuki > Signed-off-by: Andrew Morton > Signed-off-by: Linus Torvalds A patch for this has been posted at least 2 times. It's here: http://marc.info/?l=linux-mm&m=130827204306775&w=2 Andrew, please merge this (^that^) patch. --- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** -- 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/