mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Dong Feng" <middle.fengdong@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: leave_mm() and lazy TLB mode
Date: Sun, 29 Oct 2006 08:18:44 +0800	[thread overview]
Message-ID: <a2ebde260610281718g1d8d8c0cr180196d3ec804e09@mail.gmail.com> (raw)
In-Reply-To: <a2ebde260610281023x65c0bcd2ga34f7e50d0427259@mail.gmail.com>

I read source code more and now I understand that the effect of
leave_mm() is not only

1. bypassing the invocation to local_flush_tlb(), but also
2. prevent the curent CPU from receiving any more INVALIDATE_TLB_VECTOR IPI.

Some material makes me understand the lazy TLB mode this way, that is,
a CPU's TLB will not be flushed since it enters lazy TLB mode till it
return to normal TLB mode.

But according to the source code, it seems that a CPU still has to
undergo at most one time TLB flush, that is, the flush caused by
loading CR3 with swapper_pg_dir.

Could any one confirm whether my original understanding and my
corrective understanding is correct? Thank you very much.




2006/10/29, Dong Feng <middle.fengdong@gmail.com>:
> There are several places where some comments say leave_mm() disables
> TLB flush on CPUs in lazy TLB mode.
>
> My question may be silly, ...
>
> leave_mm() change the value of CR3 register. In my understanding, that
> causes TLB flush. Does this contradict with the definition of lazy TLB
> mode?
>

      reply	other threads:[~2006-10-29  0:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-28 17:23 Dong Feng
2006-10-29  0:18 ` Dong Feng [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=a2ebde260610281718g1d8d8c0cr180196d3ec804e09@mail.gmail.com \
    --to=middle.fengdong@gmail.com \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®