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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Robin Holt <holt@...>
Cc: Christoph Lameter <clameter@...>, <akpm@...>, Nick Piggin <npiggin@...>, Steve Wise <swise@...>, Peter Zijlstra <a.p.zijlstra@...>, <linux-mm@...>, Kanoj Sarcar <kanojsarcar@...>, Roland Dreier <rdreier@...>, Jack Steiner <steiner@...>, <linux-kernel@...>, Avi Kivity <avi@...>, <kvm-devel@...>, <general@...>, Hugh Dickins <hugh@...>
Date: Tuesday, April 22, 2008 - 9:48 am

On Tue, Apr 22, 2008 at 08:36:04AM -0500, Robin Holt wrote:

There's no value for anything but get_user_pages (get_user_pages takes
its own lock internally though). I preferred to explain it as a
seqlock because it was simpler for reading, but I totally agree in the
final implementation it shouldn't be a seqlock. My code was meant to
be pseudo-code only. It doesn't even need to be atomic ;).


1) when armed the time-window where the kvm-page-fault would be
blocked would be a bit larger without invalidate_page for no good
reason

2) if you were to remove invalidate_page when disarmed the VM could
would need two branches instead of one in various places

I don't want to waste cycles if not wasting them improves performance
both when armed and disarmed.


I actually meant for both.


For rmap is sure effective free, for do_wp_page it costs one branch
for no good reason.


Agreed.


Sure, we have that patch now, I'll send it out in a minute, I was just
trying to explain why it makes sense to have an invalidate_page too
(which remains the only difference by now), removing it would be a
regression on all sides, even if a minor one.
--
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, 11:44 am)
Re: [PATCH 0 of 9] mmu notifier #v12, Christoph Lameter, (Mon Apr 14, 7:09 pm)
Re: [PATCH 0 of 9] mmu notifier #v12, Robin Holt, (Wed Apr 9, 9:17 am)
Re: [PATCH 0 of 9] mmu notifier #v12, Andrea Arcangeli, (Wed Apr 9, 10:44 am)
Re: [PATCH 0 of 9] mmu notifier #v12, Robin Holt, (Wed Apr 9, 2:55 pm)
Re: [PATCH 0 of 9] mmu notifier #v12, Andrea Arcangeli, (Tue Apr 22, 3:20 am)
Re: [PATCH 0 of 9] mmu notifier #v12, Andrea Arcangeli, (Tue Apr 22, 8:00 am)
Re: [PATCH 0 of 9] mmu notifier #v12, Robin Holt, (Tue Apr 22, 9:01 am)
Re: [PATCH 0 of 9] mmu notifier #v12, Andrea Arcangeli, (Tue Apr 22, 9:21 am)
Re: [PATCH 0 of 9] mmu notifier #v12, Robin Holt, (Tue Apr 22, 9:36 am)
Re: [PATCH 0 of 9] mmu notifier #v12, Andrea Arcangeli, (Tue Apr 22, 9:48 am)
Re: [PATCH 0 of 9] mmu notifier #v12, Robin Holt, (Tue Apr 22, 11:26 am)
Re: [PATCH 0 of 9] mmu notifier #v12, Avi Kivity, (Tue Apr 8, 5:46 pm)
Re: [PATCH 0 of 9] mmu notifier #v12, Andrea Arcangeli, (Tue Apr 8, 6:06 pm)
Re: [PATCH 3 of 9] Moves all mmu notifier methods outside th..., Christoph Lameter, (Mon Apr 14, 3:57 pm)
[PATCH 2 of 9] Core of mmu notifiers, Andrea Arcangeli, (Tue Apr 8, 11:44 am)
Re: [PATCH 2 of 9] Core of mmu notifiers, Christoph Lameter, (Mon Apr 14, 3:59 pm)
Re: [PATCH 2 of 9] Core of mmu notifiers, Christoph Lameter, (Mon Apr 14, 3:57 pm)
Re: [PATCH 2 of 9] Core of mmu notifiers, Robin Holt, (Tue Apr 8, 12:26 pm)
Re: [PATCH 2 of 9] Core of mmu notifiers, Andrea Arcangeli, (Tue Apr 8, 1:05 pm)
Re: [PATCH 1 of 9] Lock the entire mm to prevent any mmu rel..., Andrea Arcangeli, (Fri Apr 25, 12:56 pm)
Re: [PATCH 1 of 9] Lock the entire mm to prevent any mmu rel..., Christoph Lameter, (Wed Apr 16, 2:35 pm)
Re: [PATCH 1 of 9] Lock the entire mm to prevent any mmu rel..., Andrea Arcangeli, (Thu Apr 17, 11:51 am)
Re: [PATCH 1 of 9] Lock the entire mm to prevent any mmu rel..., Christoph Lameter, (Thu Apr 17, 3:10 pm)
Re: [PATCH 1 of 9] Lock the entire mm to prevent any mmu rel..., Christoph Lameter, (Wed Apr 16, 3:15 pm)