From: Rik van Riel <riel@redhat.com>
To: "Raghu R. Arur" <rra2002@aria.ncl.cs.columbia.edu>
Cc: linux-mm@kvack.org
Subject: Re: flushing tlb in try_to_swap_out
Date: Mon, 1 Sep 2003 22:13:59 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.44.0309012213320.25149-100000@chimarrao.boston.redhat.com> (raw)
In-Reply-To: <Pine.GSO.4.51.0309011437050.15065@aria.ncl.cs.columbia.edu>
On Mon, 1 Sep 2003, Raghu R. Arur wrote:
> I see that in try_to_swap_out() (linux 2.4.19), the page that is being
> unmapped from a process is flushed out. But try_to_swap_out() is executed
> in the context of kswapd. And also whenever a context switch takes place
> the whole tlb is flushed out. So is this flushing done just becuase linux
> uses lazy_tlb_flush during process context switch ?
Think about SMP systems, where the task that's being swapped
out could be running simultaneously with the pageout code, on
another CPU.
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
prev parent reply other threads:[~2003-09-02 2:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-01 18:37 Raghu R. Arur
2003-09-02 2:13 ` Rik van Riel [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=Pine.LNX.4.44.0309012213320.25149-100000@chimarrao.boston.redhat.com \
--to=riel@redhat.com \
--cc=linux-mm@kvack.org \
--cc=rra2002@aria.ncl.cs.columbia.edu \
/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