kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: orca.chen@gmail.com (Min-Hua Chen)
To: kernelnewbies@lists.kernelnewbies.org
Subject: physical memory userspace/kernel split on Linux x86-64
Date: Wed, 27 May 2015 22:23:01 +0800	[thread overview]
Message-ID: <20150527142301.GA4358@debian777.Home> (raw)
In-Reply-To: <CACrq+iLS7cPyNb7qLKmQYdkZP2XcQ67ZtV7ne=PmBcCvwJ7VbQ@mail.gmail.com>

Hi,

Linux kernel basically manages all available physical memory pages.
If user-space need a page, kernel allocates a page for it. Hence a
physical page may be in mapped to user-space virtual address or 
kernel-space virtual address or both.

The user-space and kernel-space exist in virtual address space, not
physical.

Thanks,
Min-Hua

On Wed, May 27, 2015 at 09:12:11AM +0800, Le Tan wrote:
> Hi,
> Is there an explict split between userspace and kernel in physical
> memory on Linux x86-64? That is, given a physical address, can I tell
> whether this address is from userspace or not?
> As far as I know, in virtual address space, the kernel will use the
> upper half and the userspace will use the lower half. But what about
> in physical address space?
> 
> Thanks very much!
> 
> Le
> 
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

  parent reply	other threads:[~2015-05-27 14:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-27  1:12 physical memory userspace/kernel split on Linux x86-64 Le Tan
2015-05-27 13:54 ` Karaoui mohamed lamine
2015-05-28  0:16   ` Le Tan
2015-05-27 14:23 ` Min-Hua Chen [this message]
2015-05-28  0:19   ` Le Tan

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=20150527142301.GA4358@debian777.Home \
    --to=orca.chen@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /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).