From: kirill@shutemov.name (Kirill A. Shutemov)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Why page fault handler behaved this way? Please help!
Date: Wed, 5 Nov 2014 16:58:29 +0200 [thread overview]
Message-ID: <20141105145829.GA7633@node.dhcp.inet.fi> (raw)
In-Reply-To: <eca8dab.d86c.1497f08b102.Coremail.michaelbest002@126.com>
On Wed, Nov 05, 2014 at 04:18:36PM +0800, ??? wrote:
> Hello,
>
>
> Thank you very much for helping me. Before I see your reply, I enlarged
> my program and I saw more page faults in code segment. Now I know there
> is something called fault-around.
>
>
> I read the Chapter 16 of the ULK which introduces file access. I started
> to know a technique called read-ahead from this chapter. So what's the
> difference or relationship between fault-around and read-ahead? I think
> they are used in different areas (layers) but have the same idea. Am I
> right?
readahead reads data from backing storage to page-cache, but it doesn't
map it to process' address space. fault-around maps pages which already in
page cache: via readahead or not.
--
Kirill A. Shutemov
prev parent reply other threads:[~2014-11-05 14:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-30 7:10 Why page fault handler behaved this way? Please help! 秦弋戈
2014-11-04 12:41 ` Mulyadi Santosa
2014-11-04 13:13 ` Kirill A. Shutemov
2014-11-05 8:18 ` 秦弋戈
2014-11-05 14:58 ` Kirill A. Shutemov [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=20141105145829.GA7633@node.dhcp.inet.fi \
--to=kirill@shutemov.name \
--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).