From: "Martin J. Bligh" <Martin.Bligh@us.ibm.com>
To: Mel <mel@csn.ul.ie>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Documenation/vm/numa
Date: Thu, 18 Apr 2002 22:18:43 -0700 [thread overview]
Message-ID: <2809819807.1019168322@[10.10.2.3]> (raw)
In-Reply-To: <Pine.LNX.4.44.0204190448070.8173-100000@skynet>
> Below is a small extension of the numa file in the vm Documenation branch
> which tries to give a brief explanation about pg_data_t and zone_t
> structs. Patch is against 2.4.19pre7 but I think it'll apply to any 2.4.x
> or 2.5.x kernel. No change of code etc etc etc. Comments, corrections and
> opinions very welcome
Nice job. Thanks for doing this.
> + node_start_paddr The starting physical addres of the node?
Yes. Note that it's an unsigned long, which doesn't work for ia32
with PAE (just as a for instance). Using a pfn (page frame number)
would be a better choice here, IMHO (see my definition of pfn below).
Same comment for zone_start_paddr.
> + node_start_mapnr This appears to be a "nice" place to put the zone
> inside + the larger mem_map. It's set during
> + free_page_init_core. Presumably there is some
> architecture + dependant way of defining nice.
Nice would be a strange term to use in this context - it's an ugly
hack ;-) It's the offset of the lmem_map array for that node within
the global mem_map array, which doesn't really exist (I'm calling
them arrays, though they're really just pointers - we use them like
arrays though). mem_map is some arbitrary constant, set to point to
PAGE_OFFSET or something similar.
> + zone_start_mapnr Address inside mem_map ?
Yes. Same comment as above ;-)
Note that there are two possible ways to define a pfn, in my mind.
One would be page_phys_addr >> PAGE_SHIFT. The other would be the
offset of the struct page for that page within the mythical mem_map
array. I prefer the former, though it probably contradicts everyone
else ;-) It's useful to have some way to pass around a 36 bit address
inside a 32 bit field.
M.
next prev parent reply other threads:[~2002-04-19 5:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-19 3:56 Mel
2002-04-19 5:18 ` Martin J. Bligh [this message]
2002-04-19 20:25 ` Eric W. Biederman
2002-04-19 21:37 ` Martin J. Bligh
2002-04-20 16:05 ` Mel
2002-04-20 19:47 ` Martin J. Bligh
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='2809819807.1019168322@[10.10.2.3]' \
--to=martin.bligh@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mel@csn.ul.ie \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®