From: mobile.parmenides@gmail.com (parmenides)
To: kernelnewbies@lists.kernelnewbies.org
Subject: user space vs kernel space address space
Date: Wed, 08 Jan 2014 02:56:37 +0800 [thread overview]
Message-ID: <52CC4DE5.7000109@gmail.com> (raw)
In-Reply-To: <CAE6Wm-vVuJZBXm1qt9vync6fno6cuiJfQ5rw_00mLAmEszputg@mail.gmail.com>
> But all physical memory/frames are eventually controlled by
> kernel , then how can there ever exist a frame which doesn't
> have mapping with kernel or kernel virtual address ?
The key point is that frames are in physical memory while pages are in
virtual memory. For a 4G Linux system, low 896M physical memory (low
memory) is mapped directly into kernel space(virtual), and the rest is
high memory at all (initally not mapped into any virtual space).
If kernel needs more frames other than those directly mapped, it can map
frames from high memory into its 128M virtaul space.
If a user task needs frames, these frames might be from low memory or
from high memory. In the former case, kernel shares these frames with
user task. While in the latter case, these frames are only used by the
user task.
Therefore, some frames in high memory might not be mapped into kernel
space at all.
In addition, 896M low memory(physical) can be used directly by kernel,
while all physical memory frames are allocated and mapped by kernel.
prev parent reply other threads:[~2014-01-07 18:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-29 9:42 user space vs kernel space address space Pritam Bankar
2013-12-29 13:34 ` Miles MH Chen
2013-12-30 14:28 ` Pritam Bankar
2013-12-30 15:31 ` Miles MH Chen
2013-12-31 12:38 ` Pritam Bankar
2013-12-31 12:51 ` Anders Darander
2014-01-07 18:56 ` parmenides [this message]
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=52CC4DE5.7000109@gmail.com \
--to=mobile.parmenides@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).