linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Xianghua Xiao <xiaoxianghua@gmail.com>
To: Venkatram Tummala <venkatram867@gmail.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>,
	Youngwhan Song <breadncup@gmail.com>,
	Joel Fernandes <agnel.joel@gmail.com>,
	Frank Hu <frank.hu.2001@gmail.com>,
	hayfeng Lee <teklife.kernel@gmail.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-kernel@zh-kernel.org" <linux-kernel@zh-kernel.org>,
	"kernelnewbies@nl.linux.org" <kernelnewbies@nl.linux.org>
Subject: Re: why choose 896MB to the start point of ZONE_HIGHMEM
Date: Wed, 7 Apr 2010 07:10:02 -0500	[thread overview]
Message-ID: <m2me6bf505b1004070510q63926780uac2807ca0ab22db6@mail.gmail.com> (raw)
In-Reply-To: <n2jacff6c2b1004062248w311d8482w6c64a7bdfded8385@mail.gmail.com>

On Wed, Apr 7, 2010 at 12:48 AM, Venkatram Tummala
<venkatram867@gmail.com> wrote:
> I completely agree with you. I was just trying to clarify Xianghua's
> statement "last 128 MB is used for HIGHMEM". I got the feeling that he
> thought that last 128MB can be used for vmalloc, IO and for HIGHMEM. So, i
> was clarifying that last 128MB is not "used for highmem" but it is used to
> support highmem.(among many other things). That was what i intended.
>
> On Tue, Apr 6, 2010 at 7:09 PM, H. Peter Anvin <hpa@zytor.com> wrote:
>>
>> On 04/06/2010 07:04 PM, Venkatram Tummala wrote:
>> > Hey Xiao,
>> >
>> > last 128MB is not used for highmem. last 128MB is used for data
>> > structures(page tables etc.) to support highmem .  Highmem is not
>> > something which is "INSIDE" Kernel's Virtual Address space. Highmem
>> > refers to a region of "Physical memory" which can be mapped into
>> > kernel's virtual address space through page tables.
>> >
>> > Regards,
>> > Venkatram Tummala
>> >
>>
>> Not quite.
>>
>> The vmalloc region is for *anything which is dynamically mapped*, which
>> includes I/O, vmalloc, and HIGHMEM (kmap).
>>
>>        -hpa
>>
>> --
>> H. Peter Anvin, Intel Open Source Technology Center
>> I work for Intel.  I don't speak on their behalf.
>>
>
>

Thanks Venkatram, do these sound right:

1. All HIGHMEM(physical address beyond 896MB) are kmapped back into
the last 128MB kernel "virtual" address space(using page tables stored
in the last 128MB physical address). That also implies it's a very
limited virtual space for large memory system and need do kunmap when
you're done with it(so you can kmap other physical memories in).
I'm not familiar with large-memory systems, not sure how kmap cope
with that using this limited 128M window assuming kernel is 1:3 split.

2. The last 128MB physical address can be used for page tables(kmap),
vmalloc, IO,etc

Regards,
Xianghua

  parent reply	other threads:[~2010-04-07 12:10 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-06 14:37 why choose 896MB to the start point of ZONE_HIGHMEM hayfeng Lee
2010-04-06 15:02 ` Joel Fernandes
2010-04-06 18:17   ` H. Peter Anvin
2010-04-06 19:20     ` Frank Hu
2010-04-06 19:44       ` H. Peter Anvin
2010-04-06 20:01         ` Joel Fernandes
2010-04-06 20:04           ` H. Peter Anvin
     [not found]           ` <q2iacff6c2b1004061528t28f1337eq977aabf8fe71bc22@mail.gmail.com>
     [not found]             ` <3715922601579231267@unknownmsgid>
2010-04-06 23:32               ` H. Peter Anvin
2010-04-07  1:47                 ` Xianghua Xiao
     [not found]                   ` <n2uacff6c2b1004061904v5d290fa6v909e2e5fe32ff910@mail.gmail.com>
2010-04-07  2:09                     ` H. Peter Anvin
     [not found]                       ` <n2jacff6c2b1004062248w311d8482w6c64a7bdfded8385@mail.gmail.com>
2010-04-07 12:10                         ` Xianghua Xiao [this message]
     [not found]                           ` <k2z7f245da81004070550u5324f6ffyba3e996a3e292a0a@mail.gmail.com>
     [not found]                             ` <n2kb114f3281004070948hb510b9b1o80126e2411a98c8d@mail.gmail.com>
2010-04-07 17:14                               ` H. Peter Anvin
2010-04-08  2:23                                 ` Nobin Mathew
     [not found]             ` <u2o7f245da81004062105w1f7d3416n7855472d28e8bcfd@mail.gmail.com>
2010-04-07  5:28               ` H. Peter Anvin
     [not found]                 ` <h2pacff6c2b1004062257mc8552d81u33322c43e47502c9@mail.gmail.com>
2010-04-07  6:04                   ` H. Peter Anvin
     [not found]             ` <q2oc58e39921004062208z6410b031o8d5654a582cc2783@mail.gmail.com>
     [not found]               ` <t2yacff6c2b1004062309t89b6bddfy3b0cf5970846fbb0@mail.gmail.com>
2010-04-07 14:11                 ` tek-life
2010-04-06 20:15         ` Frank Hu
2010-04-06 20:18           ` H. Peter Anvin
2010-04-07 12:16           ` Krzysztof Halasa

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=m2me6bf505b1004070510q63926780uac2807ca0ab22db6@mail.gmail.com \
    --to=xiaoxianghua@gmail.com \
    --cc=agnel.joel@gmail.com \
    --cc=breadncup@gmail.com \
    --cc=frank.hu.2001@gmail.com \
    --cc=hpa@zytor.com \
    --cc=kernelnewbies@nl.linux.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kernel@zh-kernel.org \
    --cc=teklife.kernel@gmail.com \
    --cc=venkatram867@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).