linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Hugh Dickins <hugh@veritas.com>
To: Zoltan Menyhart <Zoltan.Menyhart@free.fr>
Cc: Zoltan Menyhart <Zoltan.Menyhart@bull.net>, linux-mm@kvack.org
Subject: Re: Any reason for passing "tlb" to "free_pgtables()" by address?
Date: Tue, 9 May 2006 12:23:00 +0100 (BST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0605091207030.19410@blonde.wat.veritas.com> (raw)
In-Reply-To: <445FBD1B.6080404@free.fr>

On Mon, 8 May 2006, Zoltan Menyhart wrote:
> 
> Could you please explain what your plans are?

Nick already answered, and I agree with his answer;
but I get the feeling you'd like to hear it from me too.

My plan (as his) is to rework the mmu_gather TLB flush batching
so that it can be done without disabling preemption, so that it
does not add to latency.

Nick uses the pagetables themselves as buffering, I allocate a
temporary buffer: in each case we abandon the per-cpu arrays which
need preemption disabled.  But neither patch is good enough yet.

> How much do you think it is worth to optimize "free_pgtables()",
> knowing that:
> - PTE, PMD and PUD pages are freed seldom (wrt. the leaf pages)
> - The number of these pages is much more less than
>   that of the leaf pages.

Not worth much at all in comparison: it just falls automatically
out of the mmu_gathering rework which covers the leaf pages too.

But free_pgtables is where I got caught out inadvertently adding
latency in 2.6.15, so I've a responsibility to correct that case.

Hugh

--
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:"dont@kvack.org"> email@kvack.org </a>

  parent reply	other threads:[~2006-05-09 11:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-05 10:53 Zoltan Menyhart
2006-05-05 12:41 ` Hugh Dickins
2006-05-08 21:50   ` Zoltan Menyhart
2006-05-09  1:40     ` Nick Piggin
2006-05-09 11:23     ` Hugh Dickins [this message]
2006-05-09 19:30       ` Zoltan Menyhart

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.64.0605091207030.19410@blonde.wat.veritas.com \
    --to=hugh@veritas.com \
    --cc=Zoltan.Menyhart@bull.net \
    --cc=Zoltan.Menyhart@free.fr \
    --cc=linux-mm@kvack.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