Re: [PATCH 0 of 9] mmu notifier #v12

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Robin Holt
Date: Tuesday, April 22, 2008 - 6:36 am

On Tue, Apr 22, 2008 at 03:21:43PM +0200, Andrea Arcangeli wrote:

I am a little confused about the value of the seq_lock versus a simple
atomic, but I assumed there is a reason and left it at that.


I don't know what you mean by "it'd" run slower and what you mean by
"armed and disarmed".

For the sake of this discussion, I will assume "it'd" means the kernel in
general and not KVM.  With the two call sites for range_begin/range_end,
I would agree we have more call sites, but the second is extremely likely
to be cache hot.

By disarmed, I will assume you mean no notifiers registered for a
particular mm.  In that case, the cache will make the second call
effectively free.  So, for the disarmed case, I see no measurable
difference.

For the case where there is a notifier registered, I certainly can see
a difference.  I am not certain how to quantify the difference as it
depends on the callee.  In the case of xpmem, our callout is always very
expensive for the _start case.  Our _end case is very light, but it is
essentially the exact same steps we would perform for the _page callout.

When I was discussing this difference with Jack, he reminded me that
the GRU, due to its hardware, does not have any race issues with the
invalidate_page callout simply doing the tlb shootdown and not modifying
any of its internal structures.  He then put a caveat on the discussion
that _either_ method was acceptable as far as he was concerned.  The real
issue is getting a patch in that satisfies all needs and not whether
there is a seperate invalidate_page callout.

Thanks,
Robin
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0 of 9] mmu notifier #v12, Andrea Arcangeli, (Tue Apr 8, 8:44 am)
[PATCH 2 of 9] Core of mmu notifiers, Andrea Arcangeli, (Tue Apr 8, 8:44 am)
Re: [PATCH 2 of 9] Core of mmu notifiers, Robin Holt, (Tue Apr 8, 9:26 am)
Re: [PATCH 2 of 9] Core of mmu notifiers, Andrea Arcangeli, (Tue Apr 8, 10:05 am)
Re: [PATCH 0 of 9] mmu notifier #v12, Avi Kivity, (Tue Apr 8, 2:46 pm)
Re: [PATCH 0 of 9] mmu notifier #v12, Andrea Arcangeli, (Tue Apr 8, 3:06 pm)
Re: [PATCH 0 of 9] mmu notifier #v12, Robin Holt, (Wed Apr 9, 6:17 am)
Re: [PATCH 0 of 9] mmu notifier #v12, Andrea Arcangeli, (Wed Apr 9, 7:44 am)
Re: [PATCH 0 of 9] mmu notifier #v12, Robin Holt, (Wed Apr 9, 11:55 am)
Re: [PATCH 2 of 9] Core of mmu notifiers, Christoph Lameter, (Mon Apr 14, 12:57 pm)
Re: [PATCH 3 of 9] Moves all mmu notifier methods outside ..., Christoph Lameter, (Mon Apr 14, 12:57 pm)
Re: [PATCH 2 of 9] Core of mmu notifiers, Christoph Lameter, (Mon Apr 14, 12:59 pm)
Re: [PATCH 0 of 9] mmu notifier #v12, Christoph Lameter, (Mon Apr 14, 4:09 pm)
Re: [PATCH 1 of 9] Lock the entire mm to prevent any mmu r ..., Christoph Lameter, (Wed Apr 16, 11:35 am)
Re: [PATCH 1 of 9] Lock the entire mm to prevent any mmu r ..., Christoph Lameter, (Wed Apr 16, 12:15 pm)
Re: [PATCH 1 of 9] Lock the entire mm to prevent any mmu r ..., Andrea Arcangeli, (Thu Apr 17, 10:14 am)
Re: [PATCH 1 of 9] Lock the entire mm to prevent any mmu r ..., Christoph Lameter, (Thu Apr 17, 12:10 pm)
Re: [PATCH 0 of 9] mmu notifier #v12, Andrea Arcangeli, (Tue Apr 22, 12:20 am)
Re: [PATCH 0 of 9] mmu notifier #v12, Andrea Arcangeli, (Tue Apr 22, 5:00 am)
Re: [PATCH 0 of 9] mmu notifier #v12, Robin Holt, (Tue Apr 22, 6:01 am)
Re: [PATCH 0 of 9] mmu notifier #v12, Andrea Arcangeli, (Tue Apr 22, 6:21 am)
Re: [PATCH 0 of 9] mmu notifier #v12, Robin Holt, (Tue Apr 22, 6:36 am)
Re: [PATCH 0 of 9] mmu notifier #v12, Andrea Arcangeli, (Tue Apr 22, 6:48 am)
Re: [PATCH 0 of 9] mmu notifier #v12, Robin Holt, (Tue Apr 22, 8:26 am)
Re: [PATCH 1 of 9] Lock the entire mm to prevent any mmu r ..., Andrea Arcangeli, (Fri Apr 25, 10:04 am)