From: Dave Hansen <dave.hansen@intel.com>
To: David Rientjes <rientjes@google.com>,
Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: drepper@gmail.com, anatol.pomozov@gmail.com, jkosina@suse.cz,
akpm@linux-foundation.org, xemul@parallels.com,
paul.gortmaker@windriver.com, linux-kernel@vger.kernel.org,
linux-mm@kvack.org
Subject: Re: [PATCH] drivers/base/node.c: export physical address range of given node (Re: NUMA node information for pages)
Date: Fri, 11 Apr 2014 09:24:04 -0700 [thread overview]
Message-ID: <53481724.8020304@intel.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1404110325210.30610@chino.kir.corp.google.com>
On 04/11/2014 04:00 AM, David Rientjes wrote:
> On Thu, 10 Apr 2014, Naoya Horiguchi wrote:
>> > Yes, that's right, but it seems to me that just node_start_pfn and node_end_pfn
>> > is not enough because there can be holes (without any page struct backed) inside
>> > [node_start_pfn, node_end_pfn), and it's not aware of memory hotplug.
>> >
> So? Who cares if there are non-addressable holes in part of the span?
> Ulrich, correct me if I'm wrong, but it seems you're looking for just a
> address-to-nodeid mapping (or pfn-to-nodeid mapping) and aren't actually
> expecting that there are no holes in a node for things like acpi or I/O or
> reserved memory.
...
> I think trying to represent holes and handling different memory models and
> hotplug in special ways is complete overkill.
This isn't just about memory hotplug or different memory models. There
are systems out there today, in production, that have layouts like this:
|------Node0-----|
|------Node1-----|
and this:
|------Node0-----|
|-Node1-|
For those systems, this interface has no meaning. Given a page in the
shared-span areas, this interface provides no way to figure out which
node it is in.
If you want a non-portable hack that just works on one system, I'd
suggest parsing the existing firmware tables.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
WARNING: multiple messages have this Message-ID (diff)
From: Dave Hansen <dave.hansen@intel.com>
To: David Rientjes <rientjes@google.com>,
Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: drepper@gmail.com, anatol.pomozov@gmail.com, jkosina@suse.cz,
akpm@linux-foundation.org, xemul@parallels.com,
paul.gortmaker@windriver.com, linux-kernel@vger.kernel.org,
linux-mm@kvack.org
Subject: Re: [PATCH] drivers/base/node.c: export physical address range of given node (Re: NUMA node information for pages)
Date: Fri, 11 Apr 2014 09:24:04 -0700 [thread overview]
Message-ID: <53481724.8020304@intel.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1404110325210.30610@chino.kir.corp.google.com>
On 04/11/2014 04:00 AM, David Rientjes wrote:
> On Thu, 10 Apr 2014, Naoya Horiguchi wrote:
>> > Yes, that's right, but it seems to me that just node_start_pfn and node_end_pfn
>> > is not enough because there can be holes (without any page struct backed) inside
>> > [node_start_pfn, node_end_pfn), and it's not aware of memory hotplug.
>> >
> So? Who cares if there are non-addressable holes in part of the span?
> Ulrich, correct me if I'm wrong, but it seems you're looking for just a
> address-to-nodeid mapping (or pfn-to-nodeid mapping) and aren't actually
> expecting that there are no holes in a node for things like acpi or I/O or
> reserved memory.
...
> I think trying to represent holes and handling different memory models and
> hotplug in special ways is complete overkill.
This isn't just about memory hotplug or different memory models. There
are systems out there today, in production, that have layouts like this:
|------Node0-----|
|------Node1-----|
and this:
|------Node0-----|
|-Node1-|
For those systems, this interface has no meaning. Given a page in the
shared-span areas, this interface provides no way to figure out which
node it is in.
If you want a non-portable hack that just works on one system, I'd
suggest parsing the existing firmware tables.
next prev parent reply other threads:[~2014-04-11 16:24 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-31 23:41 NUMA node information for pages Ulrich Drepper
[not found] ` <533a1566.540db40a.274d.ffff8616SMTPIN_ADDED_BROKEN@mx.google.com>
2014-04-01 4:28 ` David Rientjes
[not found] ` <533a1563.ad318c0a.6a93.182bSMTPIN_ADDED_BROKEN@mx.google.com>
2014-04-08 1:56 ` Ulrich Drepper
[not found] ` <5343806c.100cc30a.0461.ffffc401SMTPIN_ADDED_BROKEN@mx.google.com>
2014-04-10 0:41 ` David Rientjes
[not found] ` <5345fe27.82dab40a.0831.0af9SMTPIN_ADDED_BROKEN@mx.google.com>
2014-04-10 22:06 ` David Rientjes
2014-04-11 1:35 ` [PATCH] drivers/base/node.c: export physical address range of given node (Re: NUMA node information for pages) Naoya Horiguchi
2014-04-11 3:03 ` Naoya Horiguchi
[not found] ` <53474709.e59ec20a.3bd5.3b91SMTPIN_ADDED_BROKEN@mx.google.com>
2014-04-11 11:00 ` David Rientjes
2014-04-11 11:00 ` David Rientjes
2014-04-11 11:43 ` Naoya Horiguchi
2014-04-11 16:24 ` Dave Hansen [this message]
2014-04-11 16:24 ` Dave Hansen
2014-04-11 22:13 ` David Rientjes
2014-04-11 22:13 ` David Rientjes
2014-04-11 22:53 ` Dave Hansen
2014-04-11 22:53 ` Dave Hansen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53481724.8020304@intel.com \
--to=dave.hansen@intel.com \
--cc=akpm@linux-foundation.org \
--cc=anatol.pomozov@gmail.com \
--cc=drepper@gmail.com \
--cc=jkosina@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=n-horiguchi@ah.jp.nec.com \
--cc=paul.gortmaker@windriver.com \
--cc=rientjes@google.com \
--cc=xemul@parallels.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.