From: "Mika Penttilä" <mpenttil@redhat.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Jason Gunthorpe <jgg@nvidia.com>,
Alexandru Elisei <alexandru.elisei@arm.com>,
linux-mm@kvack.org, dri-devel@lists.freedesktop.org,
intel-xe@lists.freedesktop.org, linux-kernel@vger.kernel.org,
David Hildenbrand <david@kernel.org>,
Leon Romanovsky <leonro@nvidia.com>,
Alistair Popple <apopple@nvidia.com>,
Balbir Singh <balbirs@nvidia.com>, Zi Yan <ziy@nvidia.com>,
Matthew Brost <matthew.brost@intel.com>,
Lorenzo Stoakes <ljs@kernel.org>,
"Liam R. Howlett" <liam@infradead.org>,
Vlastimil Babka <vbabka@suse.cz>, Mike Rapoport <rppt@kernel.org>,
Suren Baghdasaryan <surenb@google.com>,
Michal Hocko <mhocko@suse.com>, Lyude Paul <lyude@redhat.com>,
Danilo Krummrich <dakr@kernel.org>
Subject: Re: [PATCH v17 00/12] migrate on fault for device pages
Date: Fri, 13 Nov 2026 11:11:57 +0200 [thread overview]
Message-ID: <2ad4f730-0656-4b2e-8cbb-4aaae44de1cd@redhat.com> (raw)
In-Reply-To: <20261112162738.d689b46268e077ac06f41d91@linux-foundation.org>
On 11/13/26 02:27, Andrew Morton wrote:
> On Thu, 12 Nov 2026 19:01:58 +0200 Mika Penttilä <mpenttil@redhat.com> wrote:
>
>> On 11/12/26 18:47, Jason Gunthorpe wrote:
>>> On Thu, Nov 12, 2026 at 04:24:05PM +0000, Alexandru Elisei wrote:
>>>> Hi Mika,
>>>>
>>>> On Thu, Nov 12, 2026 at 04:00:09PM +0200, Mika Penttilä wrote:
>>>>> Hi Alexandru!
>>>>>
>>>>> On 11/12/26 13:56, Alexandru Elisei wrote:
>>>>>> Hi Mika,
>>>>>>
>>>>>> I want to help getting this series merged, and I've been familiarizing myself
>>>>>> with hmm and device migration, please bare with me if the questions I'm asking
>>>>>> are obvious or downright silly.
>>>>> Thanks for the interest and willing to help! I am preparing a v18 of the
>>>>> series and plan to post it early next week.
>>>> The series is big, and as far as I can tell the MM people are hard at work
>>>> reviewing bug fixes. It might be better to wait a while, to give people a
>>>> chance to have a look? I know that if I see a series being reposted often,
>>>> I am less inclined to review the patches since probably a new iteration
>>>> will be posted soon. But I can only speak for myself, you know best.
>>> It is at v17 and it is still getting high severity sashiko errors
>> v14 was first that sashiko managed to review. There was a regression in
>> last posting, but also false potsitives, and sashiko reports same issue
>> then 3-4 times, so the reality is not that bad.
> Pining for the days when all we had to deal with was checkpatch.
Yeah.. running sashiko locally now. Interesting enough, refactoring the
series (end result being the same) made most of the "high errors" disappear.
> Mika, afaict the entire patchset is a performance optimization, yet you
> say "I don't have a benchmark showing a gain".
No not a performance optimization as is, in the latest cover I explain it:
"The main goal of this patchset is to provide a new feature,
migrate efficiently on fault, and not directly improve performance
of current migrate_vma_setup() (which is now routed thru
hmm_range_fault()) callers."
The "efficiently" is wrong word, I should say "in one walk". In the
beginning of the cover, I explain the benefits of having one walk. Also,
I think it is sensible to have one implementation for it in HMM, instead
of each driver trying to do something similar.
We don't currently have in kernel the capability to do migrate on fault
in one walk, so I can't show a performance gain with a simple apples to
apples test.
Also :
"the selftests show that there is at least no regression for
current migrate_vma_setup() callers."
So the test is to show there is no regression still for current callers
(X86-64), not to show if there would be gains.
>
> Recipients look at patchsets wondering "why should I spend time on
> this", especially in these times. It's best to answer this question
> right there in the first sentence of the [0/N]. That means numbers,
> and the better they are, the more attention the patchset will get.
>
>> Documentation/mm/hmm.rst | 45 +
>> drivers/gpu/drm/nouveau/nouveau_dmem.c | 402 ++++++++-
>> drivers/gpu/drm/nouveau/nouveau_dmem.h | 12 +
>> drivers/gpu/drm/nouveau/nouveau_svm.c | 155 ++--
>> drivers/gpu/drm/nouveau/nouveau_svm.h | 5 +
>> include/linux/hmm.h | 51 +-
>> include/linux/migrate.h | 59 +-
>> lib/test_hmm.c | 174 +++-
>> lib/test_hmm_uapi.h | 21 +-
>> mm/Kconfig | 1 +
>> mm/hmm.c | 1075 ++++++++++++++++++++++--
>> mm/migrate_device.c | 618 +++-----------
>> tools/testing/selftests/mm/hmm-tests.c | 56 ++
>> 13 files changed, 1984 insertions(+), 690 deletions(-)
> also, yikes!
Yeah, the nouveau made the numbers bigger - but we have a real user!
--Mika
prev parent reply other threads:[~2026-11-13 9:12 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-03 6:16 mpenttil
2026-11-03 6:16 ` [PATCH v17 01/12] mm/Kconfig: changes for " mpenttil
2026-11-03 6:16 ` [PATCH v17 02/12] mm: add helper to convert HMM pfn to migrate pfn mpenttil
2026-11-03 6:16 ` [PATCH v17 03/12] mm/hmm: preparations for HMM to participate in migration mpenttil
2026-11-03 6:16 ` [PATCH v17 04/12] mm/hmm: do the plumbing " mpenttil
2026-11-03 6:16 ` [PATCH v17 05/12] mm/hmm: migrate collection in HMM pagewalk - pte level mpenttil
2026-11-03 6:16 ` [PATCH v17 06/12] mm/hmm: migrate collection in HMM pagewalk - pmd level mpenttil
2026-11-03 6:16 ` [PATCH v17 07/12] mm/hmm: add lazy MMU mode support for migration in HMM pagewalk mpenttil
2026-11-03 6:16 ` [PATCH v17 08/12] mm/hmm: implement rollback for device page " mpenttil
2026-11-03 6:16 ` [PATCH v17 09/12] mm: enable device page migration from " mpenttil
2026-11-03 6:16 ` [PATCH v17 10/12] lib/test_hmm: add a new testcase for the migrate on fault mpenttil
2026-11-03 6:16 ` [PATCH v17 11/12] Documentation/mm/hmm: document migration through hmm_range_fault() mpenttil
2026-11-03 6:16 ` [PATCH v17 12/12] drm/nouveau/svm: add support for migrate on fault mpenttil
2026-11-12 11:56 ` [PATCH v17 00/12] migrate on fault for device pages Alexandru Elisei
2026-11-12 14:00 ` Mika Penttilä
2026-11-12 14:47 ` Mika Penttilä
2026-11-12 16:24 ` Alexandru Elisei
2026-11-12 16:33 ` Zi Yan
2026-11-12 16:44 ` Mika Penttilä
2026-11-12 16:46 ` Zi Yan
2026-11-12 16:35 ` Mika Penttilä
2026-11-12 16:47 ` Jason Gunthorpe
2026-11-12 17:01 ` Mika Penttilä
2026-11-13 0:27 ` Andrew Morton
2026-11-13 9:11 ` Mika Penttilä [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=2ad4f730-0656-4b2e-8cbb-4aaae44de1cd@redhat.com \
--to=mpenttil@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=alexandru.elisei@arm.com \
--cc=apopple@nvidia.com \
--cc=balbirs@nvidia.com \
--cc=dakr@kernel.org \
--cc=david@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jgg@nvidia.com \
--cc=leonro@nvidia.com \
--cc=liam@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=ljs@kernel.org \
--cc=lyude@redhat.com \
--cc=matthew.brost@intel.com \
--cc=mhocko@suse.com \
--cc=rppt@kernel.org \
--cc=surenb@google.com \
--cc=vbabka@suse.cz \
--cc=ziy@nvidia.com \
/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®